Usage Limit Status both in CLI and SDKs
Open 💬 4 comments Opened Apr 30, 2026 by alwint3r
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What variant of Codex are you using?
CLI
What feature would you like to see?
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
{"rateLimits":{"limitId":"codex","limitName":null,"primary":{"usedPercent":0,"windowDurationMins":300,"resetsAt":1777534802},"secondary":{"usedPercent":9,"windowDurationMins":10080,"resetsAt":1777969707},"credits":{"hasCredits":false,"unlimited":false,"balance":"0"},"planType":"plus","rateLimitReachedType":null},"rateLimitsByLimitId":{"codex":{"limitId":"codex","limitName":null,"primary":{"usedPercent":0,"windowDurationMins":300,"resetsAt":1777534802},"secondary":{"usedPercent":9,"windowDurationMins":10080,"resetsAt":1777969707},"credits":{"hasCredits":false,"unlimited":false,"balance":"0"},"planType":"plus","rateLimitReachedType":null}}}
Additional information
_No response_
4 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
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
Nice!
But I don't want to use another tool to check Codex usage limits.
I did a pretty simple and convenient solution to this problem. Hopefully it helps someone else too: https://t.me/webbuildozer/28