How to check Codex usage: the dashboard, /status, and tokens per session

Dmitriy Solodukha · Updated · 6 min read

Checked against Caprock v0.190.1

How to check Codex usage: the usage dashboard, /status and /usage in the CLI, the tokens Codex writes to ~/.codex, and Caprock for cost per project.

To check your Codex usage, open the usage dashboard at chatgpt.com/codex/settings/usage: it shows which allowance is used, your credit balance and the reset times. In a Codex CLI session, /status shows the session's token usage and /usage your account's token activity by day, week or in total. Tokens per session, and per project, are in the files Codex writes under ~/.codex, which ccusage and Caprock read.

How much a plan costs and which plans include Codex is on Codex pricing; how big each window is, by plan, is on Codex usage limits. This page is about reading what you have used.

Caprock keeps the record of every coding agent you run. Free and open source. Install Caprock ↓

The Codex usage dashboard

The dashboard is chatgpt.com/codex/settings/usage, for the whole account, whichever app or CLI did the work. OpenAI's help centre, read on 23 November 2026, says to open Settings or the usage dashboard and "Check which allowance is exhausted, your credit balance, and any reset time shown", and to go to Settings > Usage for an updated reset time.

What it measures is your plan's allowance, not tokens:

  • A five-hour period, on Plus and a standard Business seat. OpenAI gives an estimated number of local messages per five hours for each model and calls the figures estimates, not fixed limits. "Pro plans currently have no five-hour limit."
  • A weekly limit. "Weekly limits may also apply", without a figure.
  • Credits. "After you reach your included limits, available credits let you continue working." The dashboard shows the balance.
  • Local and cloud together. "Local messages and cloud chats share your plan's usage allowance."

The help centre also describes banked resets: using one "refreshes your 5-hour and weekly Codex usage windows and changes your weekly reset date". Each window by plan, and what to do at the limit: Codex usage limits.

Check Codex usage in the CLI: /status, /usage and /statusline

Three slash commands, as the Codex CLI docs describe them on 23 November 2026:

  • /status — "Display session configuration and token usage": the model, approval policy, writable roots and current token usage. The pricing page also names it for "your remaining limits during an active Codex CLI session".
  • /usage — "View account token usage or use a rate-limit reset". Type /usage daily, /usage weekly or /usage cumulative to open your ChatGPT token activity directly. Without Codex sign-in, Codex shows a sign-in requirement.
  • /statusline — picks the footer items, rate limits, context and tokens among them, and saves them in config.toml, so the figures stay on screen.

/status is about the session you are in and /usage about the account. Neither breaks usage down by project.

Codex token usage per session, from ~/.codex

Codex writes every session to a JSONL file under $CODEX_HOME (~/.codex by default): sessions/YYYY/MM/DD/rollout-<time>-<id>.jsonl, moved to archived_sessions/ when you archive the thread. The CLI and the desktop app both write there. Each token_count record holds the session's running total, and often the plan windows as they stood.

The total for one session is its last token_count. On my machine, a Codex CLI 0.163.0 session from 21 November 2026 (command typed by hand, output as it printed):

$ jq -c 'select(.payload.type == "token_count" and .payload.info != null) | .payload.info.total_token_usage' rollout-2026-11-21T07-05-14-….jsonl | tail -1
{"input_tokens":1246731,"cached_input_tokens":1182976,"cache_write_input_tokens":0,"output_tokens":4934,"reasoning_output_tokens":921,"total_tokens":1251665}

cached_input_tokens is part of input_tokens, not added to it: 1,246,731 input plus 4,934 output is the 1,251,665 total. So this session sent 63,755 fresh input tokens; the rest were cache reads.

The windows are in the same records, under rate_limits. The newest one across your recent sessions:

$ ls -t ~/.codex/sessions/*/*/*/rollout-*.jsonl | head -200 | xargs jq -c 'select(.payload.type == "token_count" and .payload.rate_limits != null) | [.timestamp, .payload.rate_limits.primary, .payload.rate_limits.secondary]' | sort | tail -1
["2026-11-21T23:14:50.279Z",{"used_percent":8,"window_minutes":10080,"resets_at":1795792148},null]

A window is named by its length, not its slot: window_minutes 300 is the five-hour period and 10080 the week. On this account (plan_type prolite in the same record) Codex writes only the weekly window, in primary, at 8% used; resets_at is a Unix time, 27 November 2026, 15:09 UTC. On Plus, primary is the five-hour window and secondary the week. Some records carry "rate_limits": null, which is why the command looks for the newest one that does not.

Two things these files leave out: the price of the tokens, since Codex records no cost, and the reading as of now. The windows are as old as the last Codex session that wrote them.

Codex usage per session and project, in Caprock

Caprock, a free desktop app for macOS, Windows and Linux, reads those same files: sessions/ and archived_sessions/ under $CODEX_HOME, compressed .jsonl.zst rollouts included, from the CLI and the desktop app. No hook, nothing written into Codex's config. Then it adds them up beside Claude Code and the other agents you run.

The Plan limits panel, on the demo data Caprock's screenshots are taken from: Codex under its own heading, "as of" the last thing Codex wrote.
  • Plan limits. Codex's 5-hour and weekly windows sit under a Codex heading on the Now and Cost screens, with the time Codex wrote them and when each resets. A window Codex did not report is an empty ring marked "not reported by Codex". With more than one Codex sign-in, each one is listed with what is left of its windows.
  • Per session. Every session's tokens and cost, CLI and desktop app alike, titled by the name Codex gave the thread.
  • Per project and per model. The Cost screen adds Codex and Claude Code work on the same repository into one row, and puts every GPT model beside Claude's in the model mix.
  • Background usage. Codex's automatic approval reviewer, codex-auto-review, is counted in tokens on a line of its own and kept out of your totals. OpenAI publishes no price for it, so Caprock shows none.
  • Export. caprock export --agent codex writes the Codex rows out as TSV, CSV or JSON lines.

The dollar figure is each turn's tokens at OpenAI's API list prices, from Caprock's own pricing table. On a ChatGPT plan that is an equivalent, not a charge: the screen says "At API list prices", and OpenAI's pricing page says "API prices don't estimate included tasks". Install Caprock to see Codex beside your other agents.

Where the numbers stop

  • The windows are as old as the last session. Codex writes them into its transcripts, not to a live feed. With no session running, the "as of" time can be hours back; the dashboard is the live figure.
  • Credits are not shown. Codex's records carry a credit balance, but Caprock does not read it. Use the dashboard.
  • Some turns report only a total. Codex sometimes writes total_tokens with input, cached and output at zero. Caprock counts that total as input, so for those turns the cost is an upper bound.

Codex usage trackers compared

Codex usage trackers, each from its own page, read 23 November 2026.
Tool What it shows for Codex Where it runs Licence
Usage dashboard and /status allowance used, credits, reset times; the session's tokens browser, Codex CLI OpenAI's
Usage Desk five-hour and weekly quotas, a countdown to each reset, earned resets macOS 14+ menu bar, built from source MIT
CodexBar session and weekly windows, credit balance and history, local cost scans macOS 14+ menu bar, Linux app and CLI MIT
ccusage (ccusage codex) token and cost tables by day, week, month and session, marked Beta; no plan limits terminal MIT
Caprock tokens and cost per session, project and model beside other agents; plan windows "as of" desktop app for macOS, Windows, Linux Apache-2.0
  • The dashboard and /status are the official word on your limits. If "how much is left" is the only question, you need nothing else.
  • Usage Desk or CodexBar keep the windows in the menu bar. Use one if you want the countdown in sight while you work; CodexBar also covers Claude and other providers.
  • ccusage prints tables when you ask: ccusage codex daily, monthly or session. It reads CODEX_HOME, archived and compressed sessions included, and prices tokens from LiteLLM's dataset as "an API-equivalent estimate". Use it for a report in the terminal.
  • Caprock keeps every agent's usage in one record on your machine, by repository, with the session's chat beside its cost. Use it when Codex is one of several agents and you want them added up.

Questions people ask

How do I check my Codex usage?
Open the usage dashboard at chatgpt.com/codex/settings/usage, or Settings > Usage in ChatGPT: it shows which allowance is used, your credit balance and the reset times. In a Codex CLI session, /status shows the session's token usage and /usage your account's token activity by day, week or in total.
Where is the Codex usage dashboard?
At chatgpt.com/codex/settings/usage. It covers the whole account, CLI, IDE extension, desktop app and cloud alike, since local messages and cloud chats share one allowance.
How do I see Codex token usage per session?
Each session is a JSONL file under ~/.codex/sessions (or $CODEX_HOME). Its last token_count record holds the session's total input, cached input, output and reasoning tokens; cached tokens are part of the input figure. ccusage codex session and Caprock add these up for you.
Does ccusage work with Codex?
Yes, as a data source marked Beta: ccusage codex daily, weekly, monthly and session print token and cost tables from your Codex session files. The cost is an API-equivalent estimate, not your ChatGPT credit balance, and the page says nothing about plan limits.

Sources

Try it

The record of every coding agent you run, the sessions it did not start included. Free, open source; nothing leaves your machine.

Caprock is a desktop app: it installs on your computer, not your phone.

Or email yourself the link:

macOS, Windows and Linux. Your phone pairs with it by QR code. Install options →

Download on the App StoreDownload on the App Store

On an iPhone, pair it with the app.

Download for Mac

Notarized by Apple. One file for Apple silicon and Intel, macOS 13 or later.

Download for Windows

Windows 10 22H2 or later, x64. Windows may ask once whether to run it: click More info, then Run anyway.

Paste it into Claude Code, Codex or any coding agent.

See what it says ▾
Install the Caprock desktop app for me. It is open source (Apache-2.0), a local
app for my coding agents: https://github.com/dspv/caprock

What the install does and how to remove it:
https://github.com/dspv/caprock/blob/master/docs/install-agent.md

Run the install script for my system: https://caprock.dev/mac.sh, /win.ps1 or
/linux.sh. Read it before you run it if you like. Leave my Claude Code settings
alone; the app asks me itself. Tell me when it's open.

Or run it yourself:

curl -fsSL https://caprock.dev/mac.sh | sh

Paste in Terminal: it installs Caprock and opens it.Or with Homebrew: brew install --cask dspv/tap/caprock-app

Or run it yourself:

irm https://caprock.dev/win.ps1 | iex

Paste in PowerShell: it installs Caprock for you and opens it.

Or run it yourself:

curl -fsSL https://caprock.dev/linux.sh | sh

Paste in a terminal: it installs Caprock for you, no sudo. Or download the AppImage