Usage
Perform live quota probes for each account using actual API requests.
Model to use for live quota probes (only with
--live).How It Works
Quick Check (Default)
- Loads all accounts from storage
- Checks access token expiry times
- For expired tokens, attempts token refresh
- Updates account metadata (email, account ID)
- Saves changes back to storage
Live Check (--live)
- Performs all quick check steps
- Makes a minimal API request per account
- Fetches real-time quota usage (5h and 7d windows)
- Detects rate limits and updates cooldowns
- Caches quota data for dashboard use
Example Output
Quick Check
Live Check
Output Symbols
Account is healthy and working
Warning - account works but has issues (refresh failed, probe timeout)
Error - account needs re-login or is rate-limited
Quota Display Format
When--live is used, quota is shown as:
5h= 5-hour quota window (percentage remaining)7d= 7-day quota window (percentage remaining)
Result Summary
The final line shows:- Working - Accounts with valid tokens and no issues
- Need re-login - Accounts with expired/invalid refresh tokens
- Warnings - Accounts that work now but may fail soon
Exit Codes
All accounts passed checks (or warnings only)
One or more accounts need re-login
When to Use Each Mode
Quick Check
Use for fast daily validation:- Morning health checks
- Pre-session validation
- CI/CD pipelines (fast)
Live Check
Use before long sessions or when quota matters:- Pre-deployment checks
- Quota planning
- Debugging rate limits
- Verifying account rotations
Automatic Repairs
The check command automatically:- Refreshes expired tokens - If access token expired but refresh token valid
- Updates email addresses - Syncs from ID token
- Syncs account IDs - Extracts from JWT
subclaim - Re-enables accounts - If previously disabled but now working
- Updates quota cache - Stores live probe results
Examples
Daily health check
Pre-session quota check
Check with specific model
Check and switch to best account
Automated monitoring
Performance
Quick Check
- Speed: ~1-2 seconds for 10 accounts
- Network: Only for token refresh (if needed)
- Rate limits: No impact (uses refresh endpoint)
Live Check
- Speed: ~2-3 seconds per account
- Network: 1 API request per account
- Rate limits: Minimal impact (single request)
Troubleshooting
All Accounts Fail Quick Check
Live Check Times Out
”Working now” but refresh failed
The account’s access token is still valid, but the refresh token is broken. Re-login soon:Rate-Limited Accounts
Wait for the cooldown to expire:Related Commands
codex auth status- Quick status without validationcodex auth forecast- Predict best accountcodex auth report- Detailed health reportcodex auth fix- Repair broken accountscodex auth doctor- Full diagnostics
Caching Behavior
Live check results are cached in:- Dashboard quota display
- Forecast scoring
- Account rotation decisions