需先从 dashboard 获取 COMPOSIO_API_KEY 才能创建会话;CLI 安装后需新开终端并执行 composio login;@composio/core 打包了源码与文档体积较大,可用 @composio/slim 替代
composio
ComposioHQMIT活跃维护提供 1000+ 工具包、工具检索、上下文管理、鉴权和沙箱工作台,帮开发者快速搭建能把意图变成行动的 AI Agent。
Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
npm install @composio/core @composio/openai-agents @openai/agents
pip install composio composio-openai-agents openai-agents
curl -fsSL https://composio.dev/install | shREADME 未说明,仅提及 TypeScript SDK 需 Node 22+、Python SDK 需 Python 3.11+
给 AI Agent 接入 1000+ 预认证工具包、会话与沙箱的 SDK 与 CLI
提供 1000+ 工具包、工具检索、上下文管理、鉴权和沙箱工作台,帮开发者快速搭建能把意图变成行动的 AI Agent。
核心能力
- 提供 1000+ 预认证工具包,按用户创建会话
- 默认下发元工具,运行时发现并执行应用工具
- 支持 OpenAI、Claude、LangChain 等多家 Provider 适配
- 每个会话可暴露托管 MCP 端点供 MCP 客户端接入
- CLI 支持搜索、执行、连接账号与脚本化工作流
容易踩的坑
- @composio/[email protected]CLI Beta @composio/[email protected]pre-release最新正式版2026-11-09 · 2026-11-09 15:42 UTC
What's Changed
- feat(core)!: custom toolkit create/upsert take mcpUrl (PLEN-4820) by @singhbharath03 in https://github.com/ComposioHQ/composio/pull/5218
- feat(release): plan TypeScript and Python versions from shared changesets by @jkomyno in https://github.com/ComposioHQ/composio/pull/5238
- feat(release): open one release PR from a member request by @jkomyno in https://github.com/ComposioHQ/composio/pull/5239
- feat(release): build and smoke-test release candidates on the PR by @jkomyno in https://github.com/ComposioHQ/composio/pull/5240
- feat(release): tag approved releases and publish their candidates by @jkomyno in https://github.com/ComposioHQ/composio/pull/5241
- feat(release): make release states explicit by @jkomyno in https://github.com/ComposioHQ/composio/pull/5243
- feat(release): publish beta releases to npm and PyPI by @jkomyno in https://github.com/ComposioHQ/composio/pull/5244
- feat(release): verify releases end to end by @jkomyno in https://github.com/ComposioHQ/composio/pull/5245
- chore(release): move stable SDK releases to the unified workflow by @jkomyno in https://github.com/ComposioHQ/composio/pull/5242
- fix(python): clarify missing API key recovery by @olearycrew in https://github.com/ComposioHQ/composio/pull/5226
- chore(release): add Python notes and run the note check on every PR by @jkomyno in https://github.com/ComposioHQ/composio/pull/5259
- docs: clarify TypeScript runtime and verified AI SDK versions by @olearycrew in https://github.com/ComposioHQ/composio/pull/5227
- chore(release): publish SDK packages by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5261
- fix(release): tag merged release PRs under GitHub API 2026-03-10 by @jkomyno in https://github.com/ComposioHQ/composio/pull/5274
- revert: "chore(release): publish SDK packages (#5261)" by @jkomyno in https://github.com/ComposioHQ/composio/pull/5275
- chore(release): publish SDK packages by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5278
- fix(docs): render nested Python annotations in the SDK reference by @jkomyno in https://github.com/ComposioHQ/composio/pull/5262
- docs: pin the SDK packages released in sdk-release/42589989280 by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5279
- fix(docs): bump next to 16.4.5 for RSC RCE advisory by @composio-zen[bot] in https://github.com/ComposioHQ/composio/pull/5271
- docs: rename Custom Tools and Toolkits to Local Tools and Toolkits by @composio-zen[bot] in https://github.com/ComposioHQ/composio/pull/5213
- docs(security): add an audit logs page by @shubham22 in https://github.com/ComposioHQ/composio/pull/5247
- docs(skills): cover Approvals, Firewall, and Custom MCP in the composio skill by @composio-zen[bot] in https://github.com/ComposioHQ/composio/pull/5214
- docs: update TypeScript SDK reference from source by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5224
- docs(kb): refresh public support knowledge by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5207
- fix(release): harden the SDK release workflow after its first run by @jkomyno in https://github.com/ComposioHQ/composio/pull/5281
- docs: update toolkits, API spec, and meta tools data by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5201
- refactor(sdk): share session execution types and result handling by @jkomyno in https://github.com/ComposioHQ/composio/pull/5256
- chore(deps): bump the github-actions group across 1 directory with 4 updates by @dependabot[bot] in https://github.com/ComposioHQ/composio/pull/5285
- chore(cli): refresh baked toolkit slugs by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5273
Full Changelog: https://github.com/ComposioHQ/composio/compare/@composio/[email protected]...@composio/[email protected]
- @composio/[email protected]CLI Beta @composio/[email protected]pre-release2026-11-06 · 2026-11-06 11:29 UTC
查看更新说明
What's Changed
- feat(core): rename custom tools options to localTools and localToolkits by @composio-zen[bot] in https://github.com/ComposioHQ/composio/pull/5215
- feat(python): rename custom tools options to local_tools and local_toolkits by @composio-zen[bot] in https://github.com/ComposioHQ/composio/pull/5216
- docs: private custom toolkits need a Pro plan (PLEN-4830) by @singhbharath03 in https://github.com/ComposioHQ/composio/pull/5231
- docs: add French to the Connect Link locale values by @akram-composio in https://github.com/ComposioHQ/composio/pull/4912
- feat(core,python): handle rate limits in tool execution and connection polling (PLEN-4561) by @angrybayblade in https://github.com/ComposioHQ/composio/pull/5210
- fix(sdk): adopt composio-client 2.1.0 by @jkomyno in https://github.com/ComposioHQ/composio/pull/5236
Full Changelog: https://github.com/ComposioHQ/composio/compare/@composio/[email protected]...@composio/[email protected]
- @composio/[email protected]CLI Beta @composio/[email protected]pre-release2026-11-04 · 2026-11-04 15:00 UTC
查看更新说明
What's Changed
- docs: correct minimum Python version in README by @rbous in https://github.com/ComposioHQ/composio/pull/5178
- docs(kb): refresh public support knowledge by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5172
- feat(core,python): add custom toolkit create/update, deprecate upsert (PLEN-4785) by @singhbharath03 in https://github.com/ComposioHQ/composio/pull/5195
- chore(release): prepare Python 0.31.0 and SDK changelog by @jkomyno in https://github.com/ComposioHQ/composio/pull/5198
- Release: update version by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5070
- chore(ci): automate published client dependency updates by @jkomyno in https://github.com/ComposioHQ/composio/pull/5199
- docs: update TypeScript SDK reference from source by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5170
- docs: update toolkits, API spec, and meta tools data by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5162
- docs: update documentation for new changelog entries by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5143
- docs: clarify Pro self-serve DPA in compliance guides by @abhishekpatil4 in https://github.com/ComposioHQ/composio/pull/4781
- fix(docs): expose supported providers in HTML and Markdown by @olearycrew in https://github.com/ComposioHQ/composio/pull/5177
- docs: use custom toolkit create/update and cover end-user toolkits (PLEN-4800) by @singhbharath03 in https://github.com/ComposioHQ/composio/pull/5202
- docs: custom MCP guide fixes and upsert migration (PLEN-4801) by @singhbharath03 in https://github.com/ComposioHQ/composio/pull/5206
- fix: replace retired claude-3-opus-20240229 with claude-opus-5-5 by @akram-composio in https://github.com/ComposioHQ/composio/pull/5209
- docs: move approvals and tool hints under governance by @olearycrew in https://github.com/ComposioHQ/composio/pull/5203
- perf(py): avoid recursive release cache discovery by @jkomyno in https://github.com/ComposioHQ/composio/pull/5204
- docs(cli): correct the lint and test-clock guidance in agent skills by @jkomyno in https://github.com/ComposioHQ/composio/pull/5205
New Contributors
- @rbous made their first contribution in https://github.com/ComposioHQ/composio/pull/5178
Full Changelog: https://github.com/ComposioHQ/composio/compare/@composio/[email protected]...@composio/[email protected]
- @composio/[email protected]CLI Beta @composio/[email protected]pre-release2026-11-03 · 2026-11-03 09:51 UTC
查看更新说明
What's Changed
- chore(cli): refresh baked toolkit slugs by @sdkrelease[bot] in https://github.com/ComposioHQ/composio/pull/5185
Full Changelog: https://github.com/ComposioHQ/composio/compare/@composio/[email protected]...@composio/[email protected]
- @composio/[email protected]CLI Beta @composio/[email protected]pre-release2026-11-03 · 2026-11-03 09:42 UTC
查看更新说明
What's Changed
- feat: add trigger instance type and polling interval to triggers.create (PLEN-4489) by @anshugarg15 in https://github.com/ComposioHQ/composio/pull/5186
Full Changelog: https://github.com/ComposioHQ/composio/compare/@composio/[email protected]...@composio/[email protected]
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
Composio
Composio gives your AI agents 1000+ pre-authenticated toolkits, per-user sessions, authentication, triggers, and a sandbox, so you can ship agents that turn intent into action.
This is the Composio SDK monorepo. It contains:
@composio/core: TypeScript SDKcomposio: Python SDKcomposioCLI: search, execute, and script tools from your shell- Provider adapters for OpenAI Agents, Claude Agent SDK, Vercel AI SDK, LangChain, and more
Quickstart
Create a session for a user, hand its tools to your agent, and let the agent take action across 1000+ apps. Grab a COMPOSIO_API_KEY from the dashboard first.
TypeScript
npm install @composio/core @composio/openai-agents @openai/agents
@composio/coreintentionally packages its TypeScript source and SDK docs so the installed package is inspectable to coding agents. If you want a smaller install with the same API, use@composio/slim.
import { Composio } from "@composio/core";
import { OpenAIAgentsProvider } from "@composio/openai-agents";
import { Agent, run } from "@openai/agents";
const composio = new Composio({ provider: new OpenAIAgentsProvider() });
// Each session is scoped to one of your users
const session = await composio.create("user_123");
const tools = await session.tools();
const agent = new Agent({
name: "Personal Assistant",
instructions: "You are a helpful assistant. Use Composio tools to take action.",
tools,
});
const result = await run(agent, "Summarize my emails from today");
console.log(result.finalOutput);
Python
pip install composio composio-openai-agents openai-agents
from composio import Composio
from composio_openai_agents import OpenAIAgentsProvider
from agents import Agent, Runner
composio = Composio(provider=OpenAIAgentsProvider())
# Each session is scoped to one of your users
session = composio.create(user_id="user_123")
tools = session.tools()
agent = Agent(
name="Personal Assistant",
instructions="You are a helpful assistant. Use Composio tools to take action.",
tools=tools,
)
result = Runner.run_sync(starting_agent=agent, input="Summarize my emails from today")
print(result.final_output)
By default a session gets meta tools that discover, authenticate, and execute app tools at runtime, so you don't load hundreds of tool definitions into context. Store session.session_id and reuse it with composio.use() across turns. See what a session is and configuring sessions for restricting toolkits, auth configs, and connected accounts.
Prefer MCP? Every session also exposes a hosted MCP endpoint. Pass mcp: true to composio.create() and point Claude, Cursor, or any MCP client at session.mcp.url. See sessions via MCP.
CLI
The composio CLI runs Composio from your shell and gives coding agents like Claude Code a local tool surface.
curl -fsSL https://composio.dev/install | sh
The installer puts composio on your PATH for future terminals. Open a new terminal, then run composio login. See INSTALL.md for shell setup overrides, including COMPOSIO_INSTALL_SHELL=none for install-only runs.
Use composio search to find tools, composio execute to run them, composio link to connect accounts, and composio run to script workflows in TypeScript. See the CLI docs.
Providers
A provider adapts Composio tools to your agent framework's native tool format:
| Provider | TypeScript | Python |
|---|---|---|
| OpenAI | @composio/openai | composio-openai |
| OpenAI Agents | @composio/openai-agents | composio-openai-agents |
| Anthropic | @composio/anthropic | composio-anthropic |
| Claude Agent SDK | @composio/claude-agent-sdk | composio-claude-agent-sdk |
| Vercel AI SDK | @composio/vercel | — |
| Google GenAI | @composio/google | composio-gemini, composio-google |
| Google ADK | — | composio-google-adk |
| LangChain | @composio/langchain | composio-langchain |
| LangGraph | via @composio/langchain | composio-langgraph |
| LlamaIndex | @composio/llamaindex | composio-llamaindex |
| Mastra | @composio/mastra | — |
| Pi | @composio/experimental* | — |
| Cloudflare Workers AI | @composio/cloudflare | — |
| TypeSafe (Jev) | @composio/typesafe | composio-typesafe |
| CrewAI | — | composio-crewai |
| AutoGen | — | composio-autogen |
* The Pi provider is experimental and ships from @composio/experimental.
Don't see your framework? Build a custom provider, or skip providers entirely and connect over MCP.
All packages
Everything published from this repo:
| Package | Description |
|---|---|
@composio/core | TypeScript SDK |
@composio/slim | @composio/core without packaged source or docs; same API, smaller install |
composio CLI | Standalone CLI binary: curl -fsSL https://composio.dev/install | sh |
@composio/experimental | Experimental integrations, including the Pi provider |
@composio/json-schema-to-zod | JSON Schema to Zod conversion |
@composio/* provider adapters | OpenAI, OpenAI Agents, Anthropic, Claude Agent SDK, Vercel, Google, LangChain, LlamaIndex, Mastra, Cloudflare, TypeSafe |
composio | Python SDK |
composio-* provider adapters | OpenAI, OpenAI Agents, Anthropic, Claude Agent SDK, Gemini, Google, Google ADK, LangChain, LangGraph, LlamaIndex, CrewAI, AutoGen, TypeSafe |
Repository layout
ts/ TypeScript SDK workspace
packages/core/ @composio/core
packages/providers/ Provider adapters
packages/cli/ Composio CLI
python/ Python SDK and provider packages
docs/ Documentation site (docs.composio.dev)
The TypeScript SDK is tested against Node 22+; the Python SDK supports Python 3.11+.
Development
mise install # pinned toolchain (Node, Python, pnpm)
pnpm install
pnpm build
pnpm test
Python commands run from python/; see python/README.md. We welcome contributions to both SDKs; read the contribution guidelines before submitting pull requests.
Support
License
MIT. See LICENSE.