Configuration Overview
The CLI uses a two-tier configuration system:- Environment variables - Runtime configuration (highest precedence)
- User config file - Persistent storage (
~/.composio/user-config.json)
Core Configuration
COMPOSIO_API_KEY
Your Composio backend API key (starts with
uak_ for user API keys or ak_ for account keys).User config key: api_keyDefault: NoneWhen set, this overrides the API key stored from
composio login.COMPOSIO_BASE_URL
The base URL of the Composio backend API.User config key:
base_url- Testing against staging environments
- Using a self-hosted Composio instance
- Development/debugging
COMPOSIO_WEB_URL
The base URL of the Composio web app (used during login flow).User config key:
web_urlCOMPOSIO_CACHE_DIR
Directory where the CLI stores cache files and user configuration.
user-config.json- User authentication and settingstoolkits.json- Toolkit metadatatools.json- Tool definitionstools-as-enums.json- Tool name enumstrigger-types.json- Trigger type definitions
COMPOSIO_LOG_LEVEL
Log verbosity level for the CLI.Accepted values:
all, trace, debug, info, warning, error, fatal, noneDefault: None (minimal output)The
--log-level flag takes precedence over the environment variable.Cache Control
FORCE_USE_CACHE
Force the CLI to use cached API responses when available.Default:
false- CLI checks cache first before making API calls
- Works offline if cache is available
- Useful for CI/CD with pre-warmed cache
Toolkit Version Overrides
COMPOSIO_TOOLKIT_VERSION_<TOOLKIT>
Override the version for a specific toolkit.Format:
COMPOSIO_TOOLKIT_VERSION_<TOOLKIT_SLUG>=<version>Values:- Specific version (e.g.,
20250901_00) latest(use the latest available version)- Unset (defaults to
latest)
GitHub Integration (Upgrade)
COMPOSIO_GITHUB_API_BASE_URL
GitHub API base URL for fetching releases.
COMPOSIO_GITHUB_OWNER
GitHub repository owner.
COMPOSIO_GITHUB_REPO
GitHub repository name.
COMPOSIO_GITHUB_TAG
Specific release tag to upgrade to.
COMPOSIO_GITHUB_ACCESS_TOKEN
GitHub access token for API requests (avoids rate limiting).
Terminal Configuration
NO_COLOR
Disable colored output in the CLI.Standard: no-color.org
Development/Debugging
DEBUG_OVERRIDE_VERSION
Override the CLI version for debugging upgrade behavior.Development use only.
User Config File
The CLI stores persistent configuration in~/.composio/user-config.json:
composio login- Stores API key and org/project IDscomposio logout- Clears API keycomposio orgs switch- Updates default org/project
Configuration Precedence
When the same setting is defined in multiple places:- CLI flags (highest precedence)
- Environment variables
- User config file (
~/.composio/user-config.json) - Default values (lowest precedence)
Examples
CI/CD Configuration
Staging Environment
Offline Development
Custom Cache Location
Related Pages
Toolkit Versions
Pin toolkit versions
Login
Authentication guide