Repository navigation
Description
What variant of Codex are you using?
Codex CLI, Codex desktop app, and the IDE extension (this applies to all of them, most useful in the app / anywhere multiple sessions are visible at once)
What feature would you like to see?
A burn-rate "speedometer" showing how fast tokens / quota are being consumed, overall and per session.
Codex shows how much of the 5-hour and weekly limit is left, which is the fuel gauge. What is missing is any indication of what is burning that quota right now, or how fast. With several sessions running in parallel, the only way to guess which one is expensive is to look for the session with the most subagents active, and that is a poor proxy: one session with a huge context and a long tool loop can out-burn three sessions with subagents.
The painful failure mode is walking away for an hour and coming back to find the weekly quota fried because one session nobody was watching was redlining the whole time. Issues like #45085, #42010 and #39699 show how fast that can happen. There is no signal that would have flagged it in progress, and afterwards there is no way to tell which session did it.
Proposal:
- Overall gauge: current aggregate burn rate across all active sessions, next to the existing remaining-quota indicator.
- Per-session gauge or sparkline: in the session list / sidebar / status bar, so the hottest session is visually obvious at a glance.
Design notes:
- Smooth the rate over a trailing window of roughly the last 10 minutes so the gauge does not flicker with every turn. A sparkline over the same window also shows trend.
- Show a unit that answers "should I be worried?": tokens/min is fine, but "% of 5h limit per hour" or "time to empty at current rate" is better.
- Green / amber / red thresholds relative to a sustainable rate, i.e. the rate at which quota would run out exactly at the reset boundary.
- Include subagent and background task spend in the parent session's rate, since that is where the surprise usually comes from.
- Optional: a notification when any session stays in the red band for more than N minutes, or when projected time-to-empty drops below the time to the next reset.
Additional information
The mental model is a car dashboard. Remaining quota is the fuel gauge. What is missing is the tachometer and a "miles to empty" estimate, so the driver can see they are redlining before the tank is dry. Per-session attribution is what makes it actionable: knowing the account is burning fast without knowing where still leaves the user guessing.
Concrete example: four sessions open, two doing focused edits, one running a QA loop with subagents, one forgotten browser-automation loop with a near-full context. Go to lunch. Today: come back to 4% weekly quota and no idea which session did it. With this feature: the forgotten session's gauge has been pinned in the red for 40 minutes, the overall gauge shows time-to-empty under an hour, and a notification would have prompted killing it before eating.
A lighter-weight alternative that would still help: expose per-session token counts with timestamps in a machine-readable form (status JSON, a hook event, or a local endpoint) so third-party tools can compute the rate.
Activity
github-actions commentedon Sep 14, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Luicono commentedon Sep 14, 2026
Agree — remaining 5h/weekly % is the fuel gauge; without burn rate, time-to-empty, and per-session attribution you only notice a redlining session after the tank is empty (especially with parallel sessions + subagents).
Until first-party UI lands: snapshot both windows (and reset times) at start and after a bounded stretch so you can see which meter moved and roughly how fast; kill forgotten loops early since subagent spend often hides in the parent. Your lighter ask—machine-readable per-session token counts with timestamps—would let third-party tools compute rate without scraping, and feels like the highest-leverage interim if a full tachometer is farther out.
On Mac I keep account-level Codex usage in the menu bar so I don’t dig into Settings → Usage mid-flow (QuoPeek: https://luicono.com/?utm_source=github — glance, refresh, threshold alerts). It does not provide burn rate, time-to-empty, or per-session attribution; those still need first-party signals or the machine-readable surface above.
almirsarajcic commentedon Sep 18, 2026
That would be nice.
chrisreedbates commentedon Sep 21, 2026
Hi guys, similar but different. Here we're talking more about a "speedometer" that shows the burn rate of each session very plainly. It can be something as simple as a little dot, or something as awesome as a speedometer that redlines shakes and smokes.
Obvious question is how to show that because if the session is waiting for the user it will show 0 tokens burning. I think the best way would be something like X% weekly usage used over some previous turns Y makes it appear as low burn to high burn.
Ideally we can see this on the side bar for every session. Best case is to see a sparkline too per session where we can monitor if the burn drops by us taking some actions.
yagcioglutoprak commentedon Sep 29, 2026
Today Codex only exposes the fuel-gauge side:
/statusin the CLI (or thefive-hour-limit/weekly-limititems via/statusline) and the app's Usage view show % left and reset times, but nothing per session. For the overall "time to empty at current rate" part, I built AIQuotaBar (disclosure: I'm the author), a free, open-source macOS menu bar app that tracks the Codex 5-hour and weekly limits, keeps a 24h history, and warns when you're on pace to run out (e.g. "runs out in ~1h at this pace"). It works at the account level, so it can't tell you which of several parallel sessions is burning the quota; that part still needs native support. macOS only: https://github.com/yagcioglutoprak/AIQuotaBarlowkeybuilds commentedon Oct 14, 2026
Until something like this ships natively, the data is already in the rollout files. Every
token_countevent carries the call's tokens and the server'srate_limitssnapshot. So a burn-rate view can be computed outside Codex by tailing~/.codex/sessions/**/rollout-*.jsonl.I added that as a
livemode to a free local tool I maintain (disclosure: mine). It makes no network requests and has zero dependencies:It covers per-session tokens per minute (so you can see which of several parallel sessions is the expensive one), current context size and the last call's cache hit rate, plus quota points per hour over the last 30 minutes and time-to-empty for each window. Rows are per rollout file, so subagents show up as their own rows. https://github.com/lowkey-studio/quotatrace (illustrative numbers above). A native item in the status line would still be better, so +1 to this request.