Installation
Install the Composio Python SDK using your preferred package manager:Requirements
- Python: Version 3.9 or higher (Python 3.10+ recommended)
- pip: Latest version recommended
Environment Setup
1
Get your API key
Sign up at composio.dev and obtain your API key from the dashboard.
2
Configure environment variables
Create a
.env file in your project root and add your API key:For production applications, use a secure method to manage environment variables such as python-dotenv or your deployment platform’s secret management.
3
Initialize the SDK
Import and initialize the Composio SDK in your application:
Verification
Verify your installation by running a simple test:Provider-Specific Packages
Depending on your AI framework, you may want to install a provider-specific package:Quick Start Example
Here’s a complete example using OpenAI Agents:1
Install dependencies
2
Create your agent
Virtual Environment (Recommended)
It’s recommended to use a virtual environment for your Python projects:Next Steps
- Learn about authentication for connecting external services
- Explore available tools and toolkits
- Build your first AI agent
- Check out Python examples