Composio

composio: latest (new SDK); composio-openai: 0.11.1 (legacy framework packages) · active · verified Sun Mar 01

Tool integration platform for AI agents. Provides 250+ pre-built tool integrations (GitHub, Gmail, Slack, Notion, etc.) with managed OAuth across frameworks including OpenAI, Anthropic, LangChain, CrewAI, and AutoGen. Has undergone a major v1→v3 SDK rewrite with significant breaking changes — the majority of tutorials and LLM-generated code targets the old v1 API.

Warnings

Install

Imports

Quickstart

New v3 SDK uses unified Composio class with provider injection. Legacy framework-specific toolsets still function but receive no new features.

from composio import Composio
from composio.providers import AnthropicProvider
import anthropic

# New v3 SDK pattern
composio = Composio(provider=AnthropicProvider())

user_id = "user@acme.org"
tools = composio.tools.get(
    user_id=user_id,
    toolkits=["GITHUB"]
)

client = anthropic.Anthropic()
response = client.messages.create(
    model="claude-opus-4-6",
    max_tokens=1024,
    tools=tools,
    messages=[{"role": "user", "content": "Star the composiohq/composio repo"}]
)

# ---

# Legacy v1 pattern (still works but deprecated):
from composio_openai import ComposioToolSet, App
toolset = ComposioToolSet()  # entity_id was set here in v1
actions = toolset.get_tools(apps=[App.GITHUB])

view raw JSON →