Quickstart
This guide walks you through authenticated tool calling—the foundation of how Composio connects your AI agents to real-world actions.
You’ll learn how to:
- Discover and add tools relevant to your use case (e.g., Slack, GitHub, Notion) to your AI agent
- Authenticate tools securely on behalf of a specific user, with fine-grained access control
- Enable your LLM (like OpenAI, Claude, or LangChain) to invoke these tools reliably using structured tool call formats
Composio provides first-class SDKs for both TypeScript and Python, making it easy to integrate no matter what stack you’re building with.
Before you start!
Prerequisites
- Ensure you have created an account on Composio and have Python 3.8+ or NodeJS 18+ installed!
- Get your API key from the developer dashboard and set it as an environment variable.
Note!
Ensure you save the API key in a.env
file and don’t commit it to version control!Install the SDK
First, install the Composio SDK for your preferred language:
Initialize the SDK
You’ll need to initialize the SDK with your Composio API key. This allows you to authenticate requests and access tools on behalf of your users.
Authorize Tools & Run Them with an Agent
Composio supports multiple LLM providers. Here’s how to use Composio with some of the most popular ones:
OpenAI (Python)
Anthropic (Typescript)
Vercel AI SDK (Typescript)
OpenAI Agents (Python)
Composio ships with support for OpenAI provider out of the box.
What just happened?
You just:
- Authorized a user account with Composio
- Passed those tool permissions into an LLM framework
- Let the LLM securely call real tools on the user’s behalf
All OAuth flows and tool execution were automatically handled by Composio.