1

Set the COMPOSIO_API_KEY Environment Variable

Begin by setting the COMPOSIO_API_KEY environment variable, which is crucial for authenticating your application’s requests to Composio services.

First, retrieve your api key from the Composio dashboard

2

Configure the Environment Variable

Depending on your operating system, use the appropriate command to set the environment variable:

Set API_KEY
export COMPOSIO_API_KEY='your_api_key_here'
3

Verify the Environment Variable

Ensure that the COMPOSIO_API_KEY is correctly set by executing the following command:

echo $COMPOSIO_API_KEY
4

Initializing the SDK

Optionally, you can initialize the SDK directly in your code by specifying the API key

from composio import ComposioToolSet
composio_toolset = ComposioToolSet(api_key=*COMPOSIO_API_KEY*)