Quickstart
Choose how you want to integrate Tool Router:
Using Tool Router MCP
Claude Agent SDK
OpenAI Agents SDK
Vercel AI SDK
Create session and run agent
Sessions are ephemeral, user-scoped and manage connections and tools for that user.
- Set your
COMPOSIO_API_KEYenvironment variable with your API key from Settings. - Set your
ANTHROPIC_API_KEYenvironment variable with your Anthropic API key. userIdis your user’s unique identifier. See User Management for details.
When the agent needs authentication, it will prompt the user with a link to connect their account. If you want to customise the authentication flow and have more control over the user experience, see Manual Authentication.
What just happened?
When you run this agent, Tool Router:
- Creates an MCP server with your session configuration
- Searches for the right tools based on your request
- Handles authentication if needed
- Executes tools and uses a workbench for processing large responses
Using Tool router as a native tool
OpenAI
Vercel AI SDK
Create session and use as native tool
Tool Router can be added as a single native tool to your agent. This provides a meta-tool that handles search, authentication, and execution across all 1000+ Composio tools.
- Set your
COMPOSIO_API_KEYenvironment variable with your API key from Settings. - Set your
OPENAI_API_KEYenvironment variable with your OpenAI API key. userIdis your user’s unique identifier. See User Management for details.
What just happened?
When you run this agent, Tool Router:
- Provides a single tool to your agent framework
- Interprets requests and searches for the right tools internally
- Handles authentication if needed
- Executes tools and uses a workbench for processing large responses
Next steps
Learn about users, sessions, and how they work.
Learn about tools, toolkits, and how to configure them.
Customise the authentication flow for your users.
Connect Tool Router to any MCP-compatible client.
Use Tool Router as a native tool with any AI framework.