Sandbox
@ComposioHQ/composio

SDK and CLI for agent tool connectors

Composio gives agents access to 1000+ app toolkits with per-user sessions, authentication, triggers, and a sandbox. The SDKs and provider packages let you hand those tools to agent frameworks, while the CLI gives shell access for search, execute, link, and scripted workflows.

30,127 stars4.8k forksTypeScriptUpdated 6d ago
Who it's for

Builders who want to connect Claude Code, Cursor, Codex, or other agents to real app actions.

What it delivers

You can let an agent authenticate, find tools, and act across apps without wiring each integration by hand.

What it does

Pre-authenticated toolkits

Provides 1000+ app toolkits that can be scoped to a user session.

Session-based tool access

Creates reusable sessions so you can store `session.session_id` and continue across turns.

Hosted MCP sessions

Exposes a hosted MCP endpoint from a session for any MCP client, including Claude and Cursor.

CLI tool surface

Lets you search tools, execute them, link accounts, and script workflows from the terminal with `composio`.

Framework adapters

Includes adapters for OpenAI Agents, Claude Agent SDK, Vercel AI SDK, LangChain, Google GenAI, LlamaIndex, and others.

Python and TypeScript SDKs

Ships both `@composio/core` and `composio` so builders can use the same tool layer in either language.

How to get it

  1. 1Run
    npm install @composio/core @composio/openai-agents @openai/agents
  2. 2Run
    pip install composio composio-openai-agents openai-agents

README

Composio logoComposio logo

composio.devDocumentationQuickstartChangelog

GitHub stars npm PyPI Discord HVTrust

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 ADKcomposio-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
CrewAIcomposio-crewai
AutoGencomposio-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
composioPython SDK
composio-* provider adaptersOpenAI, OpenAI Agents, Anthropic, Claude Agent SDK, Gemini, Google, Google ADK, LangChain, LangGraph, LlamaIndex, CrewAI, AutoGen

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.10+.

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.

Files in the repo

Repository payload46 top-level entries
  • .agents
  • .changeset
  • .claude
  • .github
  • .husky
  • docs
  • harness
  • install
  • public
  • python
  • scripts
  • skills
  • test
  • ts
  • .gitattributes
  • .gitignore
  • .gitleaks.toml
  • .gitleaksignore
  • .gitmodules
  • .oxlintrc.json
  • .pnpmfile.cjs
  • .prettierrc
  • AGENTS.md
  • CHANGELOG.md
  • CLAUDE.md
  • context7.json
  • CONTRIBUTING.md
  • examples-manifest.json
  • INSTALL.md
  • install.sh
  • knip.json
  • LICENSE
  • mise.lock
  • mise.toml
  • package.json
  • parity-variance.json
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • pyproject.toml
  • README.md
  • skills-lock.json
  • toolchain-versions.json
  • tsconfig.base.json
  • tsdown.config.base.ts
  • turbo.jsonc
  • uv.lock

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More connectors

Real-time global intelligence dashboard. AI-powered news aggregation, geopolitical monitoring, and infrastructure tracking in a unified situational awareness interface

86k

High-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.

43k

Universal provider proxy for OpenAI Codex & Claude Code — use any LLM (Claude, Gemini, Grok, DeepSeek, Ollama…) with Codex CLI, App, SDK, and Claude Code

14k
okf-memory/
okf-agent-memory

Git-native persistent memory for AI coding agents. Implements Google OKF v0.2 with sub-300µs in-memory BM25 search, embedded MCP server, and progressive disclosure. Slashes token bloat by 80% with zero external databases or dependencies. Built in pure Go.

547
tirth8205/
code-review-graph

Local-first code intelligence graph for MCP and CLI. Builds a persistent map of your codebase so AI coding tools read only what matters, with benchmarked context reductions on reviews and large-repo workflows.

31k
2akouwu/
reverify

Stop your AI from making things up — it proposes, deterministic tools decide, every claim checked against ground truth with evidence. Grounded facts and context survive resets. Reverse engineering is the proving ground. MCP server + CLI.

1.1k