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

*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.*

Dmitriy Solodukha, checked 2026-11-23 · https://caprock.dev/guides/check-codex-usage/

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.

**In short**
- **Account:** `chatgpt.com/codex/settings/usage`, or Settings > Usage in ChatGPT: allowance used, credit balance, reset time.
- **In the CLI:** `/status` for this session, `/usage daily`, `weekly` or `cumulative` for the account.
- **Per session:** every `token_count` record in `~/.codex/sessions` carries the session's running total and, often, your plan windows.
- **Caprock** adds every session up by project and model, beside Claude Code, with Codex's 5-hour and weekly windows.

How much a plan costs and which plans include Codex is on
[Codex pricing](https://caprock.dev/guides/codex-usage-and-cost/); how big each window is, by
plan, is on [Codex usage limits](https://caprock.dev/guides/codex-usage-limits/). This page is
about reading what you have used.

## 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](https://caprock.dev/guides/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.

![Caprock's Plan limits panel: Claude's five-hour and weekly rings, and Codex's weekly ring with its five-hour row marked not reported by Codex](https://caprock.dev/shots/feat-limits.png)

*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](https://caprock.dev/install/) 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.

## Sources

- [Codex docs — Pricing and usage limits (the usage dashboard, /status, five-hour and weekly limits, credits), read 23 November 2026](https://learn.chatgpt.com/docs/pricing)
- [Codex docs — CLI slash commands (/status, /usage, /statusline), read 23 November 2026](https://learn.chatgpt.com/docs/cli/slash-commands/)
- [OpenAI Help — Using Codex with your ChatGPT plan (Settings > Usage, credit balance, reset times, banked resets), read 23 November 2026](https://help.openai.com/en/articles/11369540-using-codex-with-your-chatgpt-plan)
- [Codex docs — Environment variables (CODEX_HOME)](https://learn.chatgpt.com/docs/config-file/environment-variables)
- [ccusage — Codex data source (Beta), read 23 November 2026](https://ccusage.com/guide/codex)
- [Usage Desk — Codex usage and reset tracker for macOS, read 23 November 2026](https://usage-desk.nikhilkr.in)
- [CodexBar — usage limits and reset times per provider, macOS and Linux, read 23 November 2026](https://github.com/steipete/CodexBar)
- [Caprock — Codex support: where the transcripts are, plan limits, totals with no breakdown (.ai/19-codex.md)](https://github.com/dspv/caprock/blob/master/.ai/19-codex.md)
- [Caprock source — internal/codex/codex.go ($CODEX_HOME, sessions/ and archived_sessions/, .jsonl.zst)](https://github.com/dspv/caprock/blob/master/internal/codex/codex.go)
- [Caprock source — internal/codex/ingest.go (a total with no breakdown, tokens_total_only)](https://github.com/dspv/caprock/blob/master/internal/codex/ingest.go)
- [Caprock source — internal/modelclass/modelclass.go (codex-auto-review as background usage)](https://github.com/dspv/caprock/blob/master/internal/modelclass/modelclass.go)
- [Caprock source — cmd/caprock/export.go (caprock export --agent codex)](https://github.com/dspv/caprock/blob/master/cmd/caprock/export.go)
- [Caprock changelog — Codex plan limits beside Claude's; every sign-in listed in Plan limits (0.183.0)](https://github.com/dspv/caprock/blob/master/CHANGELOG.md)
