You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to see the usage/status information via the CLI. Something akin to /status in the TUI.
Proposed Behavior
codex status
prints the following information in the terminal
Account status
5h limit: 100% left (resets 14:39)
Weekly limit: 91% left (resets 15:28 on 5 May)
Visit https://chatgpt.com/codex/settings/usage for up-to-date rate limits and credits.
codex status --json
prints the JSON so that it can be used in the SDK as well
For the codex status half — I built aistat, which already emits a structurally similar payload from the same account/rateLimits/read endpoint. Human view:
$ aistat -hClaude usage- [email protected] (active) [Max 5x] - 5-hour: 92.0% (resets in 4h 53m) - 7-day: 71.0% (resets in 2d 5h)- [email protected] [Max 20x] - 5-hour: 4.0% (resets in 4h 12m) - 7-day: 12.0% (resets in 5d 9h)Codex usage- [email protected] (active) [Pro] - 5-hour: 25.0% (resets in 5h 16m) - 7-day: 18.0% (resets in 4d 18h)
The shape is slightly normalized (both used_percent and remaining_percent, since the displayed-remaining mismatch flagged in #24080 is a real footgun). Works against Plus/Pro/Business/Enterprise, and useful for SDK-ish consumers today while native codex status is designed.
For the codex status half — I built aistat, which already emits a structurally similar payload from the same account/rateLimits/read endpoint. Human view:
7-day: 18.0% (resets in 4d 18h)
and the JSON payload:
$ aistat usage codex
{
"checked_at": "2026-05-29T18:21:04+00:00",
"providers": {
"codex": {
"accounts": [
{"email": "[email protected]", "plan": "Pro", "active": true,
"limits": {
"five_hour": {"used_percent": 0, "remaining_percent": 100, "resets_at": "2026-05-29T22:39:00+00:00", "reset_after_seconds": 15780},
"seven_day": {"used_percent": 9, "remaining_percent": 91, "resets_at": "2026-06-04T15:28:00+00:00", "reset_after_seconds": 593010}
}}
]
}
}
}
The shape is slightly normalized (both used_percent and remaining_percent, since the displayed-remaining mismatch flagged in #24080 is a real footgun). Works against Plus/Pro/Business/Enterprise, and useful for SDK-ish consumers today while native codex status is designed.
Activity
github-actions commentedon Apr 30, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
drogers0 commentedon Jun 3, 2026
For the
codex statushalf — I builtaistat, which already emits a structurally similar payload from the sameaccount/rateLimits/readendpoint. Human view:and the JSON payload:
The shape is slightly normalized (both
used_percentandremaining_percent, since the displayed-remaining mismatch flagged in #24080 is a real footgun). Works against Plus/Pro/Business/Enterprise, and useful for SDK-ish consumers today while nativecodex statusis designed.https://github.com/drogers0/aistat
alwint3r commentedon Jun 11, 2026
Nice!
But I don't want to use another tool to check Codex usage limits.