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.

@composio/[email protected]发布于 2026-11-09 15:42 UTC31,009star +43 / 7 天4,934fork同步于 2026-11-10 11:21 UTC

怎么上手

由 README 提炼,执行前请确认
npm install @composio/core @composio/openai-agents @openai/agents
pip install composio composio-openai-agents openai-agents
curl -fsSL https://composio.dev/install | sh
硬件要求按 README 说明

README 未说明,仅提及 TypeScript SDK 需 Node 22+、Python SDK 需 Python 3.11+

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

给 AI Agent 接入 1000+ 预认证工具包、会话与沙箱的 SDK 与 CLI

提供 1000+ 工具包、工具检索、上下文管理、鉴权和沙箱工作台,帮开发者快速搭建能把意图变成行动的 AI Agent。

核心能力

  • 提供 1000+ 预认证工具包,按用户创建会话
  • 默认下发元工具,运行时发现并执行应用工具
  • 支持 OpenAI、Claude、LangChain 等多家 Provider 适配
  • 每个会话可暴露托管 MCP 端点供 MCP 客户端接入
  • CLI 支持搜索、执行、连接账号与脚本化工作流

容易踩的坑

需先从 dashboard 获取 COMPOSIO_API_KEY 才能创建会话;CLI 安装后需新开终端并执行 composio login;@composio/core 打包了源码与文档体积较大,可用 @composio/slim 替代

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

5 个版本@composio/[email protected]
  1. @composio/[email protected]CLI Beta @composio/[email protected]pre-release最新正式版2026-11-09 · 2026-11-09 15:42 UTC

    What's Changed

    Full Changelog: https://github.com/ComposioHQ/composio/compare/@composio/[email protected]...@composio/[email protected]

  2. @composio/[email protected]CLI Beta @composio/[email protected]pre-release2026-11-06 · 2026-11-06 11:29 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/ComposioHQ/composio/compare/@composio/[email protected]...@composio/[email protected]

  3. @composio/[email protected]CLI Beta @composio/[email protected]pre-release2026-11-04 · 2026-11-04 15:00 UTC
    查看更新说明

    What's Changed

    New Contributors

    Full Changelog: https://github.com/ComposioHQ/composio/compare/@composio/[email protected]...@composio/[email protected]

  4. @composio/[email protected]CLI Beta @composio/[email protected]pre-release2026-11-03 · 2026-11-03 09:51 UTC
    查看更新说明
  5. @composio/[email protected]CLI Beta @composio/[email protected]pre-release2026-11-03 · 2026-11-03 09:42 UTC
    查看更新说明

    What's Changed

    Full Changelog: https://github.com/ComposioHQ/composio/compare/@composio/[email protected]...@composio/[email protected]

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    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 SDK
    • composio: Python SDK
    • composio CLI: 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/core intentionally 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:

    ProviderTypeScriptPython
    OpenAI@composio/openaicomposio-openai
    OpenAI Agents@composio/openai-agentscomposio-openai-agents
    Anthropic@composio/anthropiccomposio-anthropic
    Claude Agent SDK@composio/claude-agent-sdkcomposio-claude-agent-sdk
    Vercel AI SDK@composio/vercel—
    Google GenAI@composio/googlecomposio-gemini, composio-google
    Google ADK—composio-google-adk
    LangChain@composio/langchaincomposio-langchain
    LangGraphvia @composio/langchaincomposio-langgraph
    LlamaIndex@composio/llamaindexcomposio-llamaindex
    Mastra@composio/mastra—
    Pi@composio/experimental*—
    Cloudflare Workers AI@composio/cloudflare—
    TypeSafe (Jev)@composio/typesafecomposio-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:

    PackageDescription
    @composio/coreTypeScript SDK
    @composio/slim@composio/core without packaged source or docs; same API, smaller install
    composio CLIStandalone CLI binary: curl -fsSL https://composio.dev/install | sh
    @composio/experimentalExperimental integrations, including the Pi provider
    @composio/json-schema-to-zodJSON Schema to Zod conversion
    @composio/* provider adaptersOpenAI, OpenAI Agents, Anthropic, Claude Agent SDK, Vercel, Google, LangChain, LlamaIndex, Mastra, Cloudflare, TypeSafe
    composioPython SDK
    composio-* provider adaptersOpenAI, 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.