Feature: Expose full usage/limits data in CLI (/status command)
Open 💬 6 comments Opened Mar 20, 2026 by milord-x
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
Problem
The current /status command in Codex CLI only shows limited information in the status bar:
- Model name
- Current usage percentage (often inaccurate or stale)
- Working directory
However, users with ChatGPT Plus subscription (which includes Codex CLI) have important usage limits that are NOT visible via CLI:
- 5-hour rolling window limit - resets every 5 hours
- Weekly limit - resets weekly (typically Sunday)
These limits are only visible via the web interface at https://chatgpt.com/codex/settings/usage.
Current workaround limitations
The /status status bar shows something like:
gpt-5.4 high · 100% left · ~
But this data is:
- Often inaccurate/stale
- Doesn't include weekly limits
- Requires manual browser check for real usage data
Feature Request
Add comprehensive usage data to the /status command (or create a new command like /usage):
Proposed Output Format
/codex /status
╭─────────────────────────────────────────────────────────────────────────────────╮
│ >_ OpenAI Codex (v0.116.0) │
│ │
│ Model: gpt-5.4 (reasoning high, summaries auto) │
│ Directory: ~/projects/myapp │
│ Account: user@example.com (Plus) │
│ │
│ 5h limit: [███████████████████░░] 82% left (resets 15:18) │
│ Weekly limit: [███████░░░░░░░░░░░░░░] 36% left (resets 03:08 on 22 Mar) │
╰─────────────────────────────────────────────────────────────────────────────────╯
Technical Implementation Options
- Direct API call: The CLI could make an authenticated request to fetch real-time usage data from OpenAI's internal endpoints (similar to what the web UI uses)
- New
/usagecommand: A dedicated command that shows only usage information
- Enhanced
/statusoutput: Expand the existing status panel with full usage details
Why This Matters
- Users frequently hit usage limits unexpectedly
- No CLI-native way to check remaining quota
- Forces users to open browser just to check limits
- Poor user experience for CLI-focused workflow
References
- Web UI:
https://chatgpt.com/codex/settings/usage - Related: Issue #15272 (usage polling with API keys)
---
Environment:
- Codex CLI version: 0.116.0
- Auth method: ChatGPT Plus subscription
- Platform: Linux (Arch)
6 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
You can configure the CLI to display the usage limits in the status line using the
/statuslinecommand and selectingfive-hour-limitand/orweekly-limit.Люди которые
Thanks @etraut-openai — the
/statuslineitems are useful, and I've been usingfive-hour-limit+weekly-limitmyself. Just wanted to share a few thoughts on why a dedicated/usagesurface might still be worth keeping on the table, alongside the statusline approach.A pane (or
/status --detailed) could cover a few cases that a single statusline row can't easily handle:/usageis self-documenting; statusline items require users to know they exist and opt in.Implementation-wise the data already lives in
rate_limit_snapshot(same payload behind the current statusline items and the JSON shape @alwint3r outlined in #20310), so this is largely a TUI addition rather than new plumbing.For inspiration there's a fairly polished version in Claude Code's
components/Settings/Usage.tsx— the eighth-block Unicode glyphs (▏▎▍▌▋▊▉█) give ~1/8-cell precision in about 30 lines and would port cleanly to a smallratatuiwidget.One open question: would the team prefer a new
/usagecommand or a--detailedflag on/status? Either pattern works; the answer probably depends on cross-surface consistency goals. Happy to also move this to a separate enhancement issue if that fits better — just didn't want to fragment the discussion away from here by default.If the direction looks aligned and you'd welcome a contribution, I'm glad to put together a small prototype gist first (eighth-block widget rendered against mocked snapshot data) so the visual is concrete before any PR discussion. For what it's worth on the process side, I'm an active Linux kernel contributor, so the atomic-commit / patch-series review workflow in the contributing guide is familiar ground.
For the scripted/external slice of this, complementing the
/statuslinepointer above: I builtaistat, which reads the sameaccount/rateLimits/readendpoint. The human view across accounts:and the same data as JSON for the scripted case:
/statuslineitems are still the right answer for in-CLI rendering; this is just for the external case. The same binary covers Claude too.https://github.com/drogers0/aistat
This is about programmatically getting the 5 hour and weekly usage status via the codex CLI so you can get them from lets say a python script and use in a skill or something.
Right now GPT5.5 has no way to know what the current usage limits are for 5 hour or weekly so it makes it horrible to plan orchestration of subagents as you risk having to restart partial work and waste do those tasks over again.
The original request as written is what is requested by the original post I assume, so while its nice people are trying to tell how to use statusline but that will not resolve this issue.
I am surprised that this was not already a thing, and I am surprised that you do not have a tool the AI can use in your harness to read current usage. It would be amazing if it can get this data to better manage subagents and know when to pause.