Skip to content

Feature: token burn-rate 'speedometer' per session and overall (rate, not just remaining quota) #45427

Open

Description

@chrisreedbates

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:

  1. Overall gauge: current aggregate burn rate across all active sessions, next to the existing remaining-quota indicator.
  2. 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

  1. added
    enhancement
    app
    rate-limits
    on Sep 14, 2026
  2. github-actions commented on Sep 14, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. Luicono commented on Sep 14, 2026

    @Luicono

    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.

  4. almirsarajcic commented on Sep 18, 2026

    @almirsarajcic

    That would be nice.

  5. chrisreedbates commented on Sep 21, 2026

    @chrisreedbates
    Author

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

    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.

  6. yagcioglutoprak commented on Sep 29, 2026

    @yagcioglutoprak

    Today Codex only exposes the fuel-gauge side: /status in the CLI (or the five-hour-limit/weekly-limit items 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/AIQuotaBar

  7. lowkeybuilds commented on Oct 14, 2026

    @lowkeybuilds

    Until something like this ships natively, the data is already in the rollout files. Every token_count event carries the call's tokens and the server's rate_limits snapshot. So a burn-rate view can be computed outside Codex by tailing ~/.codex/sessions/**/rollout-*.jsonl.

    I added that as a live mode to a free local tool I maintain (disclosure: mine). It makes no network requests and has zero dependencies:

    npx github:lowkey-studio/quotatrace live
    
    QUOTA WINDOW    USED   PTS/HOUR  EMPTY IN
    codex 5h        58%    36.0      1.2 h
    codex week      66%    12.0      2.8 h
    
    SESSION   TOOL    MODEL                 TOK/MIN  CALLS  CONTEXT  CACHE HIT
    01a1f3c2  codex   gpt-6.1-sol/high      420k     9      188k     97%
    

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appenhancementrate-limits

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions