Codex CLI usage limit
Codex CLI usage limit: the 5-hour and weekly windows on a Mac
Facts first: Codex CLI records rate_limits events in ~/.codex/sessions/ with a 300-minute (5-hour) primary window and a 10,080-minute (7-day) secondary window, plus weekly-only account responses on some plans. Usage HUD parses both windows, validates freshness with codex-usage-doctor, and shows your exact reset countdown in the Mac menu bar.
Codex CLI meters a subscription with two windows: a short one and a weekly one. The CLI tells you when you are close, and by then the choice is made for you. Usage HUD is a free Mac menu-bar meter that reads the rate-limit events Codex already writes to its local session logs and shows both windows, with reset times, before you get there.
Read this first: CodexBar is free, MIT-licensed, and tracks Codex well. If Codex is the only tool you meter and CodexBar already works for you, you do not need Usage HUD. Usage HUD is for people who also run Claude, Gemini, Grok, or Ollama and want one meter with a confidence label on every number.
Download Usage HUD for Mac (Free)
Free · Usage HUD 1.3.6 · macOS 14+ · notarized by Apple · or run curl -fsSL https://hud.thaliabloom.com/install.sh | sh
Where the numbers come from
Codex CLI keeps session logs as JSONL files under ~/.codex/sessions. Among the events in those logs are rate_limits events carrying a primary window and a secondary window. Each window has a used percentage, a reset timestamp, and a window length in minutes. Usage HUD reads the newest of those events. A window of 300 minutes is shown as the 5h window; a window of 10080 minutes is shown as the Weekly window.
This is local telemetry, not a billing API. The HUD labels the Codex reading measured, with the note “Parsed from local Codex rate-limit events; this is not an official billing API.” That label sits next to the number so it is never mistaken for a provider-reported figure.
What the menu bar shows
One bar for Codex next to the bars for your other providers. Click it and the panel lists the 5-hour window and the weekly window, each with its percentage used, the reset time from the event, the time the reading was captured, and the confidence label. When a window passes its reset time, the HUD drops that reading as expired rather than showing a stale percentage as if it were current.
Because the source is the session log, the reading only changes when Codex emits a new rate-limit event, which happens while you use Codex. If you have not run Codex today, the freshness stamp says so.
When the number looks wrong
Run codex-usage-doctor. It checks the state directory permissions, whether the Codex session logs are visible, the newest parseable rate-limit event and its age, the freshness and confidence of the current Codex snapshot, and whether the HUD and its background writers are loaded. It prints none of your prompts, messages, or secrets. If the doctor says no rate-limit event was found, the meter has nothing to show yet, and it says so instead of drawing a bar.
Fair comparison
| Feature | Codex CLI /status | Usage HUD | CodexBar | ccusage |
|---|---|---|---|---|
| Price | Free (built in) | Free (optional tip) | Free (open source) | Free (open source CLI) |
| 300-min (5h) & 10,080-min (weekly) windows | In active terminal | In Mac menu bar + CLI + MCP | In Mac menu bar | Token counts only |
| Handles weekly-only Codex accounts cleanly | Yes | Yes (no false health warning) | Yes | N/A |
| Pace forecast (will I run out before reset?) | No | GO / WATCH / STOP + empty-at time | No | No |
| Requirements | Codex CLI | macOS 14 or later, Apple silicon or Intel | macOS | Node.js 18+ |
Get Usage HUD
Free · no account · signed and notarized by Apple
The download is a notarized disk image. Drag Usage HUD to Applications, open it, then click Set up.
- Your Mac: macOS 14 or later, Apple silicon or Intel.
- Claude and Codex: Claude Code or Codex signed in. Nothing else to install for those two lanes.
- Gemini and Grok: those lanes need Node.js 18 or later. Gemini reads Google’s Antigravity CLI (agy), so sign in there.
- Local models: the local lane reads your Ollama logs.
Tips are optional and go through Stripe. Free first: claude-usage-check shows which number is official. If CodexBar already works for you, you may not need this.
Related
Codex CLI usage meter for the Mac menu bar · Usage HUD vs CodexBar · Claude Code usage limit reached · Usage HUD home