OpenClaw plugin for Composio's Tool Router. Unlike the official plugin, this one supports multiple accounts (e.g. connecting several Gmail accounts under different user IDs).
Both plugins use plugin id composio, so only run one at a time.
openclaw plugins install @customclaw/composio-
Get an API key from platform.composio.dev/settings
-
Run the guided setup:
openclaw composio setupOr add manually to ~/.openclaw/openclaw.json:
{
"plugins": {
"entries": {
"composio": {
"enabled": true,
"config": {
"apiKey": "your-api-key"
}
}
}
}
}You can also set COMPOSIO_API_KEY as an environment variable.
- Restart the gateway.
The plugin gives your agent three tools:
composio_search_tools— finds relevant Composio actions from natural-language queriescomposio_execute_tool— runs a Composio action (e.g.GMAIL_FETCH_EMAILS,SENTRY_LIST_ISSUES)composio_manage_connections— checks connection status and generates OAuth links for unconnected toolkits
Both composio_search_tools and composio_execute_tool require a user_id so actions are always scoped to a specific user. composio_execute_tool also accepts an optional connected_account_id when multiple accounts exist for the same toolkit.
| Key | Description |
|---|---|
apiKey |
Composio API key (required) |
openclaw composio setup # interactive setup
openclaw composio list --user-id user-123 # list available toolkits
openclaw composio status [toolkit] --user-id user-123 # check connection status
openclaw composio connect gmail --user-id user-123 # open OAuth link
openclaw composio disconnect gmail --user-id user-123 # remove a connection
openclaw composio accounts [toolkit] # inspect connected accountsopenclaw plugins update composio
openclaw gateway restartgit clone https://github.com/customclaw/composio.git
cd composio
npm install
npm run build
npm testSet COMPOSIO_LIVE_TEST=1 and COMPOSIO_API_KEY to run live integration tests with npm run test:live.
Based on openclaw-composio by ComposioHQ. See THIRD-PARTY-NOTICES.