codex-multi-auth CLI provides a comprehensive set of commands for managing multiple ChatGPT accounts, monitoring health, and automating account operations.
Command Family
All commands use the canonicalcodex auth ... syntax:
Compatibility Aliases
The following aliases are also supported for backward compatibility:codex multi auth ...codex multi-auth ...codex multiauth ...
Command Categories
Primary Commands
Core operations for daily account management:| Command | Purpose |
|---|---|
codex auth login | Open interactive auth dashboard |
codex auth list | List saved accounts and active account |
codex auth status | Print short runtime/account summary |
codex auth switch | Set active account by index |
codex auth check | Run quick account health check |
codex auth features | Display implemented feature list |
Advanced Commands
Diagnostics, repairs, and operational planning:| Command | Purpose |
|---|---|
codex auth verify-flagged | Verify flagged accounts and optionally restore |
codex auth forecast | Forecast best account by readiness/risk |
codex auth report | Generate full health report |
codex auth fix | Apply safe account storage fixes |
codex auth doctor | Run diagnostics and optional repairs |
Common Flags
Many commands share these flags:Output machine-readable JSON instead of human-friendly text. Available on:
verify-flagged, forecast, report, fix, doctor.Perform live quota probes before decisions/output. Available on:
forecast, report, fix.Preview changes without writing to storage. Available on:
verify-flagged, fix, doctor.Specify model for live probe requests. Available on:
forecast, report, fix.Quick Start Workflows
First-time setup
Daily health monitoring
Repair and recovery
Automation-friendly workflows
Exit Codes
All commands follow standard Unix exit code conventions:0- Success1- General error130- Interrupted (SIGINT)
Storage Locations
Commands read/write these files:- Accounts:
~/.codex/multi-auth/openai-codex-accounts.json - Flagged:
~/.codex/multi-auth/openai-codex-flagged-accounts.json - Quota cache:
~/.codex/multi-auth/quota-cache.json - Settings:
~/.codex/multi-auth/settings.json
CODEX_MULTI_AUTH_DIR.