If you’re using the Composio CLI, you can easily retrieve your API key by running the following command in your terminal: composio whoami

Login on composio.dev and Get the API Key

Open app.composio.dev and log in to your account. Then go to app.composio.dev/settings.
Navigate to the API Keys -> generate a new API key. intro

Keep the API key in a secure location, it will be used to authenticate your requests to the Composio API.

If you are using the CLI, you don’t need to manually set the API key as the CLI manages authentication automatically.

Export to your environment

export COMPOSIO_API_KEY="your_api_key"

or you can also pass it while invoking composio toolset or client.