Getting Your Composio API Key

There are two main ways to obtain your Composio API key:

1. Using the Composio CLI

If you’re using the Composio CLI, you can easily retrieve your API key by running:

composio whoami

2. Through the Composio Web Interface

  1. Log in to your account at app.composio.dev.
  2. Navigate to Settings.
  3. Go to the “API Keys” section.
  4. Click on “Generate new API key”.

Store your API key securely. It’s used to authenticate your requests to the Composio API.

Using Your API Key

With the CLI

When using the Composio CLI, you don’t need to manually set the API key. The CLI manages authentication automatically.

In Your Environment

To use your API key in scripts or applications, you can set it as an environment variable:

export COMPOSIO_API_KEY="your_api_key"

Alternatively, you can pass it directly when invoking Composio tools or clients.