Usage
Output Format
The command prints:- Account count and storage path
- Numbered list of accounts with labels
- Status markers (current, disabled, rate-limited, cooldown)
- Last-used timestamp for each account
Example Output
Status Markers
| Marker | Meaning |
|---|---|
[current] | This account is currently active |
[disabled] | Account is disabled (won’t be used for rotation) |
[rate-limited] | Account hit rate limits, cooling down |
[cooldown:2h15m] | Account in cooldown period, shows remaining time |
Account Labels
Accounts are labeled using the first available identifier:- Custom label - If set via dashboard
- Email - Extracted from ID token
- Account ID - From JWT
subclaim - Refresh token prefix - Last resort fallback
Last-Used Timestamps
Shows relative time since last API request:never used- Account added but never usedused 5 minutes ago- Recent usageused 3 days ago- Older usage
- Successful API requests
- Token refresh operations
- Manual account switches
Empty State
If no accounts are configured:codex auth login to add your first account.
Storage Path
The storage path shown depends on your configuration:Global Storage (Default)
Project-Scoped Storage
If running inside a Git repository:Custom Root
IfCODEX_MULTI_AUTH_DIR is set:
Exit Codes
0- Success (accounts found or not found)1- Storage read error
Examples
List all accounts
Check if any accounts exist
Count active accounts
Machine-Readable Output
For scripting, usecodex auth report --json instead:
Related Commands
codex auth login- Add or manage accountscodex auth status- Detailed status summarycodex auth switch- Change active accountcodex auth check- Health check accountscodex auth report --json- Machine-readable output
Troubleshooting
Wrong Account Shows as Current
If the active account marker[current] is incorrect: