Composio Client is the official Python library for interacting with the Composio API. It enables developers to integrate and automate actions across various tools and platforms. The library maintains a rapid release cadence, with frequent updates to its API surface to reflect changes and additions in the underlying Composio platform.
pip install composio-clientVerified import paths — ran on the pinned version, not inferred.
Initializes the ComposioClient and fetches a list of currently installed tools. This demonstrates basic connectivity and authentication. Ensure `COMPOSIO_API_KEY` is set in your environment variables.
Always check the latest changelog or GitHub releases when upgrading, especially before deploying to production. Pinning exact minor versions (`composio-client==1.x.y`) can help, but regular updates are recommended for new features and bug fixes.
Set the `COMPOSIO_API_KEY` environment variable (e.g., `export COMPOSIO_API_KEY="your_key"`) or pass it directly: `client = ComposioClient(api_key="your_key")`.
Before using the client to interact with specific tools, ensure they are set up in your Composio dashboard. Use `client.tool.get_installed_tools()` to verify available tools and their IDs.