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
Capture API Key in Scripts
When piped or redirected,
composio whoami outputs only structured JSON to stdout. All decoration (boxes, formatting) is suppressed.Use in CI/CD
Output Fields
Your user API key. In interactive mode, this is redacted (e.g.,
ak_***aBc123). In piped mode, the full key is output.Your default organization ID. Set during
composio login.Your default project nano ID (starts with
pr_). Set during composio login.Test user ID for development/testing. Set during
composio login if available.Configuration File
Thewhoami command reads from ~/.composio/user-config.json:
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
Related Commands
composio login- Authenticate with Composiocomposio version- Display CLI version
Next Steps
login
Authenticate with Composio
Environment Variables
Configure the CLI