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
Get your API key
Sign up at composio.dev and obtain your API key from the dashboard.
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.
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: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