How usage is counted: new tokens, cache reads and estimates
TokenNibbler counts your usage from the session files Claude Code and Codex already save on your computer, splits it into new tokens and cache reads, and marks every figure it estimates. This week’s usage is on every plan, Free included; the Usage page’s full history, by period, model and project, is part of Pro.
Where the numbers come from
Section titled “Where the numbers come from”Claude Code and Codex record every request in their own session files on your computer:
- Claude Code:
%USERPROFILE%\.claude\projects(Mac:~/.claude/projects) - Codex:
%USERPROFILE%\.codex\sessions(Mac:~/.codex/sessions)
TokenNibbler reads these files and keeps a usage summary of counts only: tokens per 15 minutes and model, and per-session counts such as prompts and compactions. The summary holds no prompts, conversations, file contents or command output. For your sessions from the last 30 days, TokenNibbler also keeps short labels on this computer, such as session titles and the first line of recent prompts, for the session lists and Limit Relay.
Each request is counted once, with its final usage, at the time it started. Days and hours fall in your own time zone.
TokenNibbler keeps its summary for up to 400 days, so your history stays after Claude Code clears old transcripts (after 30 days by default). Choose how long in Settings › Data › Keep history for: 90 days, 180 days, 1 year or 400 days.
New tokens
Section titled “New tokens”New tokens are the work your plan does for you: input the model had not seen in this session, cache writes and output, thinking included. This is the main figure on the plan cards, the Projects page and the Usage page.
Cache reads
Section titled “Cache reads”Cache reads are earlier context the model reads again from its prompt cache on each turn. Each one costs far less than a new token, so TokenNibbler counts them on their own line instead of adding them to new tokens. Anthropic explains how this works in its prompt caching docs.
Counting them apart keeps your totals clear: a long session re-reads its earlier context on every turn, and that is not new work.
Value at API prices
Section titled “Value at API prices”The Value at API prices tile shows what your usage would cost at Anthropic’s and OpenAI’s API list prices. You don’t pay these prices on a subscription: the figure shows the value of the usage your plan covered.
- The prices come from a table in the app, and the tile on the Usage page says which date they are from (“List prices on…”).
- When a model has no list price, the Usage page adds “some models not priced”, and the Projects page shows the figure as a minimum (≥).
Your plan’s percentages and your tokens
Section titled “Your plan’s percentages and your tokens”Plan limits and token counts come from different places, and TokenNibbler keeps them apart:
- Plan percentages (such as “34% used”) are read from your plan through Claude Code and Codex. See How TokenNibbler reads your plan limits.
- Token counts come from your session files on this computer.
When both are available, the THIS WEEK block on each plan card tells you about how many tokens of Claude Code or Codex work you get per 1% of your weekly limit. Other use of the same plan, such as chat in the Claude apps or Codex in the IDE or the cloud, also counts toward that limit.
Estimates, and how they are marked
Section titled “Estimates, and how they are marked”Anything TokenNibbler estimates is marked, with a tilde (~), the word estimated, or a tooltip that says so.
- Tokens saved by shortening are counted from characters: (original characters − returned characters) ÷ 4, including the recovery note the agent sees. They estimate how much less your agent had to read; plan limits stay your plan’s own figures.
- A project’s share of your weekly limit (the ”~…% of Claude week” figure on the Projects list) is an estimate: TokenNibbler splits your plan’s weekly reading by the project’s share of that week’s tokens.
- Skill listing sizes show “Claude Code’s own count” when Claude Code reports them, and “Estimated from the name and description (about 4 characters per token)” otherwise.
- Plan fit comparisons on the Usage page are labelled estimates.
Where each figure comes from
Section titled “Where each figure comes from”| Figure | Source | Label in the app |
|---|---|---|
| 5-hour and weekly limits | Your plan, through Claude Code or Codex | Reported by Claude Code, From Claude Code’s status line or Reported by Codex |
| New tokens and cache reads | Claude Code and Codex session files on your computer | Shown as counts, no estimate mark |
| Tokens saved | Characters removed ÷ 4 | estimated, or ~ |
| Value at API prices | Your tokens × list prices | “List prices on…” |