Key takeaways

  • Thread context remaining and session tokens reset on a new chat; account five-hour and weekly windows do not.
  • Calibrate remaining percentage into rough tokens by dividing session tokens consumed by percentage points lost.
  • UsageAtlas displays local Codex token history alongside supported window percentages and reset countdowns without reading prompts.

Understanding the Codex context limit vs usage window solves why developers sometimes think their quota just vanished, or wonder why opening a fresh terminal thread did not restore their weekly allowance. They are two independent meters governed by completely different resets.

Two clocks, two behaviors

As detailed in UsageAtlas's Codex documentation, every active session tracks conversation context separately from your account's subscription usage windows:

Meter Resets when What fills it Scope
Context remaining You open a new session Prompt history, pasted files and tool outputs in one thread Single CLI/TUI conversation
Session tokens (/status) You open a new session Work completed inside that single thread Single CLI/TUI conversation
Window allowance Five-hour or weekly reset timer All Codex requests at model and cached rates Whole account across sessions

Filling a thread's context makes replies slower or triggers truncation/compaction, yet costs nothing to fix: start a new thread and context resets immediately. Depleting the short or weekly window allowance pauses subscription usage until OpenAI's timer resets.

Turning window percentages into token estimates

Because OpenAI reports subscription window headroom as a percentage rather than a token counter (and exposes no public endpoint for an exact remaining token balance), developers estimate tokens left from real usage:

  1. Check the window percentage on the Codex usage panel or UsageAtlas before coding.
  2. Run a normal session and read tokens consumed from /status or UsageAtlas.
  3. Check the percentage after finishing and divide tokens spent by points dropped.
  4. Multiply that tokens-per-point figure by remaining points (for example, 12,000 tokens over 4 points gives ~3,000 tokens per point).

Treat this strictly as a working baseline. Model switches alter how quickly percentage points drop, and cached inputs count at OpenAI's cached rate rather than matching raw token totals directly.

Tracking context, tokens and alerts in one local place

Keeping tabs on both meters manually means flipping between /status in the terminal and chatgpt.com/codex/settings/usage in a browser. UsageAtlas brings Codex token history, model breakdowns, cost estimates and supported remaining window percentages with reset countdowns into one free, open source desktop app.

It tracks locally without an account (an optional free account saves cross-machine history), never reads your prompts or responses, and covers other coding tools like Claude Code, Cursor, OpenCode and GitHub Copilot alongside Codex. Setting a 20% threshold warning lets you finish work gracefully before either window hits zero.

FAQ

Does /clear or starting a new Codex chat reset my 5-hour limit?

No. A new session only clears conversation context. Your five-hour and weekly usage windows reflect all account activity and reset only on OpenAI's schedule.

Why does UsageAtlas call its dollar numbers cost estimates?

Local trackers calculate rough equivalent spend from observed token counts and list rates; OpenAI's billing page remains the system of record for invoices and credits.

What should I do if my short window has room left but work still pauses?

Check your weekly window percentage. On plans with both windows, the weekly cap overrides remaining headroom in the shorter five-hour window.

Frequently asked questions

Does /clear or starting a new Codex chat reset my 5-hour limit?

No. A new session only clears conversation context. Your five-hour and weekly usage windows reflect all account activity and reset only on OpenAI's schedule.

Why does UsageAtlas call its dollar numbers cost estimates?

Local trackers calculate rough equivalent spend from observed token counts and list rates; OpenAI's billing page remains the system of record for invoices and credits.

What should I do if my short window has room left but work still pauses?

Check your weekly window percentage. On plans with both windows, the weekly cap overrides remaining headroom in the shorter five-hour window.

Sources

  1. How to see remaining Codex tokensUsageAtlas
  2. UsageAtlasUsageAtlas