Composio — Tool Platform for AI Agents
You are an expert in Composio, the platform that gives AI agents access to 250+ external tools and APIs with managed authentication. You help developers connect agents to GitHub, Slack, Gmail, Jira, Notion, Salesforce, and 200+ more services — handling OAuth flows, API key management, and rate limiting so agents can take real-world actions.
Core Capabilities
from composio_openai import ComposioToolSet, Action
from openai import OpenAI
client = OpenAI()
toolset = ComposioToolSet()
# Get tools for specific actions
tools = toolset.get_tools(actions=[
Action.GITHUB_CREATE_ISSUE,
Action.SLACK_SEND_MESSAGE,
Action.GMAIL_SEND_EMAIL,
Action.NOTION_CREATE_PAGE,
])
# Use with OpenAI function calling
response = client.chat.completions.create(
model="gpt-4o",
tools=tools,
messages=[{"role": "user", "content": "Create a GitHub issue in myorg/myrepo titled 'Fix login bug' and notify #dev-team on Slack"}],
)
# Execute tool calls
toolset.handle_tool_calls(response)
# → Creates GitHub issue AND sends Slack message, with proper auth for both
# With CrewAI
from crewai import Agent
agent = Agent(
role="DevOps Assistant",
tools=toolset.get_tools(apps=["github", "slack", "linear"]),
)
# Auth management
toolset.initiate_connection(app="github", auth_scheme="oauth2")
# Returns OAuth URL → user authorizes → Composio stores tokens → agent uses them
Installation
pip install composio-openai composio-crewai composio-langchain
composio login # Authenticate
composio add github # Connect GitHub account
Best Practices
- Managed auth — Composio handles OAuth, API keys, token refresh; agents don't see credentials
- 250+ integrations — GitHub, Slack, Gmail, Notion, Jira, Linear, Salesforce, HubSpot, etc.
- Framework support — Works with OpenAI, LangChain, CrewAI, Autogen, Mastra; same tool definitions
- Action-level control — Grant specific actions, not full API access;
GITHUB_CREATE_ISSUE not GITHUB_*
- Triggers — Set up event triggers (new email, PR created); agent reacts to real-world events
- Custom tools — Add your own APIs alongside built-in integrations; same auth management
- Rate limiting — Composio handles provider rate limits; queues and retries automatically
- Multi-user — Each user has their own OAuth connections; agents act on behalf of the right user
1---2name: composio3description: >-4 You are an expert in Composio, the platform that gives AI agents access to5 250+ external tools and APIs with managed authentication. You help6 developers connect agents to GitHub, Slack, Gmail, Jira, Notion, Salesforce,7 and 200+ more services — handling OAuth flows, API key management, and rate8 limiting so agents can take real-world actions.9license: Apache-2.010compatibility: ''11metadata:12 source: https://skillmd.com/skills/eliferjunior/composio13 author: terminal-skills14 version: 1.0.015 category: AI & Machine Learning16 tags:17 - agent18 - tools19 - integrations20 - api21 - oauth22 - actions23 - 250-apps24---2526# Composio — Tool Platform for AI Agents2728You are an expert in Composio, the platform that gives AI agents access to 250+ external tools and APIs with managed authentication. You help developers connect agents to GitHub, Slack, Gmail, Jira, Notion, Salesforce, and 200+ more services — handling OAuth flows, API key management, and rate limiting so agents can take real-world actions.2930## Core Capabilities3132```python33from composio_openai import ComposioToolSet, Action34from openai import OpenAI3536client = OpenAI()37toolset = ComposioToolSet()3839# Get tools for specific actions40tools = toolset.get_tools(actions=[41 Action.GITHUB_CREATE_ISSUE,42 Action.SLACK_SEND_MESSAGE,43 Action.GMAIL_SEND_EMAIL,44 Action.NOTION_CREATE_PAGE,45])4647# Use with OpenAI function calling48response = client.chat.completions.create(49 model="gpt-4o",50 tools=tools,51 messages=[{"role": "user", "content": "Create a GitHub issue in myorg/myrepo titled 'Fix login bug' and notify #dev-team on Slack"}],52)5354# Execute tool calls55toolset.handle_tool_calls(response)56# → Creates GitHub issue AND sends Slack message, with proper auth for both5758# With CrewAI59from crewai import Agent60agent = Agent(61 role="DevOps Assistant",62 tools=toolset.get_tools(apps=["github", "slack", "linear"]),63)6465# Auth management66toolset.initiate_connection(app="github", auth_scheme="oauth2")67# Returns OAuth URL → user authorizes → Composio stores tokens → agent uses them68```6970## Installation7172```bash73pip install composio-openai composio-crewai composio-langchain74composio login # Authenticate75composio add github # Connect GitHub account76```7778## Best Practices79801. **Managed auth** — Composio handles OAuth, API keys, token refresh; agents don't see credentials812. **250+ integrations** — GitHub, Slack, Gmail, Notion, Jira, Linear, Salesforce, HubSpot, etc.823. **Framework support** — Works with OpenAI, LangChain, CrewAI, Autogen, Mastra; same tool definitions834. **Action-level control** — Grant specific actions, not full API access; `GITHUB_CREATE_ISSUE` not `GITHUB_*`845. **Triggers** — Set up event triggers (new email, PR created); agent reacts to real-world events856. **Custom tools** — Add your own APIs alongside built-in integrations; same auth management867. **Rate limiting** — Composio handles provider rate limits; queues and retries automatically878. **Multi-user** — Each user has their own OAuth connections; agents act on behalf of the right user