选项

通过 Composio 使用 1000 多个外部应用——既可以直接通过命令行界面(CLI)操作,也可以使用 SDK 构建 AI 代理和应用

...展开全部
58
更新时间 2026-06-29

关于composio

Composio 是一款人工智能技能,旨在通过命令行界面(CLI)或软件开发工具包(SDK),实现与1,000多个外部应用程序的无缝访问和交互。 它通过充当统一的工具路由器,将用户和 AI 代理连接到 Gmail、Slack、GitHub 和 Notion 等广泛的服务,从而解决了管理多个应用和自动化任务的问题。通过整合这些交互,Composio 简化了工作流程,并降低了处理不同平台间各种 API 和身份验证流程的复杂性。

该技能提供两项主要功能:通过Composio CLI 直接与应用交互,以及使用 SDK 构建集成应用或 AI 代理。CLI 允许用户无需编写代码即可搜索工具、执行操作、关联账户并监听实时事件。 与此同时,SDK 允许开发者创建能够通过编程方式与外部工具集成的 AI 代理或后端服务,为构建自定义工作流提供了更大的灵活性。其关键功能包括基于 OAuth 的身份验证、实时事件监听,以及对交互式和非交互式登录流程的支持,从而确保对外部服务的安全且可扩展的访问。

Composio 对于希望自动化重复性任务、管理具有用户级连接的多用户应用,或构建需要访问多个服务的 AI 代理的用户而言,该工具尤为实用。 目标用户包括希望通过自动化和集成来提高生产力的开发者、技术团队和 AI 从业者。常见用例包括发送电子邮件、在 GitHub 中创建问题、在协作平台中发布消息,或协调复杂的多应用工作流,而无需手动处理每个服务的 API 细节。

常见问题

如何开始使用Composio 与外部应用交互?

首先,如果尚未安装,请使用提供的安装脚本安装 CLI,然后通过 'composio login' 进行身份验证。之后,您就可以直接通过 CLI 搜索工具、关联账户并执行操作。

我可以在无头或非交互式环境中使用Composio 吗?

可以,对于无法直接访问浏览器的代理,您可以使用 '--no-wait' 参数和 CLI 密钥进行身份验证,并在非交互模式下操作。

支持哪些类型的外部应用?

Composio 支持超过 1,000 款应用,包括 Gmail、Slack、GitHub、Notion 等,既支持执行操作,也支持监听事件。

使用Composio 需要编写代码吗?

不需要,您可以直接使用 CLI 进行交互,无需编写代码。只有当您想使用 SDK 构建自定义代理或应用时,才需要编写代码。

如何验证我当前登录的是哪个组织或项目?

身份验证后,运行 'composio whoami' 即可查看您的 org_id、project_id 和 user_id。

在 GitHub 上查看

When to Apply

  • User wants to access or interact with external apps (Gmail, Slack, GitHub, Notion, etc.)
  • User wants to automate a task using an external service (send email, create issue, post message)
  • Building an AI agent or app that integrates with external tools
  • Multi-user apps that need per-user connections to external services

Setup

Check if the CLI is installed; if not, install it:

curl -fsSL https://composio.dev/install | bash

After installation, restart your terminal or source your shell config, then authenticate:

composio login       # OAuth; interactive org/project picker (use -y to skip)composio whoami      # verify org_id, project_id, user_id

For agents without direct browser access: composio login --no-wait | jq to get URL/key, share URL with user, then composio login --key <cli_key> --no-wait once they complete login.

1. Use Apps via Composio CLI

Use this when: The user wants to take action on an external app directly — no code writing needed. The agent uses the CLI to search, connect, and execute tools on behalf of the user.

Key commands (new top-level aliases):

  • composio search "<query>" — find tools by use case
  • composio execute "<TOOL_SLUG>" -d '{...<input params>}' — execute a tool
  • composio link [toolkit] — connect a user account to an app (agents: always use --no-wait for non-interactive mode)
  • composio listen — listen for real-time trigger events

Typical workflow: search → link (if needed) → execute

Full reference: Composio CLI Guide

2. Building Apps and Agents with Composio

Use this when: Writing code — an AI agent, app, or backend service that integrates with external tools via the Composio SDK.

Run this first inside the project directory to set up the API key:

composio init

Full reference: Building with Composio

安装 composio

下载技能文件并将其解压到 .claude/skills/ 目录中。

下载ZIP

克隆仓库并复制技能文件到您的项目中。

git clone https://github.com/ComposioHQ/skills/blob/main/skills/composio/SKILL.md # Copy SKILL.md to your .claude/skills/ directory

复制 复制
快速设置: 将技能文件夹复制到 .claude/skills/ 目录下,Claude 会自动检测并使用该技能

相关技能

office-mcp
更新时间 2026-07-13
mcpgraph
更新时间 2026-06-29
connect-mcp-server
更新时间 2026-06-29
browser-devtools-mcp
更新时间 2026-06-29
OR