Skip to main content
The composio whoami command displays your current authentication status and account information.

Usage

Description

Displays your global user context including:
  • User API key (redacted)
  • Default organization ID
  • Default project ID
  • Test user ID (if configured)

Examples

Check Authentication Status

Output (when logged in):
Output (when not logged in):

Capture API Key in Scripts

Piped output (stdout only):
When piped or redirected, composio whoami outputs only structured JSON to stdout. All decoration (boxes, formatting) is suppressed.

Use in CI/CD

Output Fields

string
Your user API key. In interactive mode, this is redacted (e.g., ak_***aBc123). In piped mode, the full key is output.
string | null
Your default organization ID. Set during composio login.
string | null
Your default project nano ID (starts with pr_). Set during composio login.
string | null
Test user ID for development/testing. Set during composio login if available.

Configuration File

The whoami command reads from ~/.composio/user-config.json:
You can also override these values with environment variables (see Environment Variables).

Interactive vs. Piped Output

The CLI follows Unix conventions for composable output:

Interactive Mode (TTY)

  • stdout: Silent (no data output)
  • stderr: Decorated output with boxes and formatting
  • Human-readable display

Piped Mode (Not TTY)

  • stdout: Structured JSON only
  • stderr: Silent (all decoration suppressed)
  • Machine-readable for scripts
Example:

Next Steps

login

Authenticate with Composio

Environment Variables

Configure the CLI