[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"blog-claude-code-token-usage":3,"blog-related-claude-code-token-usage":42},{"slug":4,"title":5,"description":6,"category":7,"categoryId":8,"keyword":9,"date":10,"minutes":11,"body":12,"html":13,"headings":14},"claude-code-token-usage","Claude Code token usage: what counts and how to measure it","What counts toward Claude Code token usage (input, output, cache reads and writes), where it's logged, and scripts to add it up by day, model and project.","Usage & limits","usage-limits","claude code token usage","2026-11-25",7,"\"How many tokens did I use today?\" sounds like a simple question, and Claude Code doesn't answer it in one place. `\u002Fusage` shows the current session and plan bars, your plan page shows percentages, and neither tells you which project or which habit ate the most. The full answer is on your disk: every request Claude Code makes is logged with its token counts. Once you know what the counters mean and how to add them up without counting twice, you can answer any usage question in a few seconds.\n\n## What counts as a token in Claude Code?\n\nEverything sent to the model and everything it sends back. That's more than your prompts:\n\n- **Sent every request:** the system prompt, the tool definitions (MCP servers included), your `CLAUDE.md` files, the whole conversation so far, every file Claude read and every command output.\n- **Sent back:** Claude's replies, its tool calls, and its thinking.\n\nThe key fact is that Claude Code re-sends the conversation **with every request**, and one prompt from you can trigger dozens of requests, one per tool call. Usage grows with the length of the conversation times the number of requests in it.\n\nEach request is reported in four counters:\n\n| Counter | What it is |\n| --- | --- |\n| `input_tokens` | New input that wasn't read from the prompt cache |\n| `cache_creation_input_tokens` | Input written to the prompt cache for the next requests |\n| `cache_read_input_tokens` | Input read back from the prompt cache |\n| `output_tokens` | Everything generated, thinking included |\n\nPrompt caching is why the first three exist. The start of the conversation doesn't change between requests, so it's stored once (a cache write) and read back cheaply afterwards (cache reads). Only the new part at the end is plain input.\n\n## Where does Claude Code record token usage?\n\nIn the session transcripts:\n\n```text\n~\u002F.claude\u002Fprojects\u002F\u003Cproject>\u002F\u003Csession-id>.jsonl\n~\u002F.claude\u002Fprojects\u002F\u003Cproject>\u002F\u003Csession-id>\u002Fsubagents\u002Fagent-\u003Cid>.jsonl\n```\n\n`\u003Cproject>` is the working directory with every character that isn't a letter or a digit replaced by `-`. If you set `CLAUDE_CONFIG_DIR`, look under that directory instead. Transcripts are deleted after `cleanupPeriodDays` (30 by default), so raise it if you want a longer history.\n\nEach line is one JSON entry. The ones that answer from the model have `\"type\": \"assistant\"` and carry a `usage` object. Trimmed, with illustrative numbers:\n\n```json\n{\n  \"type\": \"assistant\",\n  \"timestamp\": \"2026-11-25T14:02:11.415Z\",\n  \"requestId\": \"req_011C…\",\n  \"isSidechain\": false,\n  \"message\": {\n    \"model\": \"claude-sonnet-5-5\",\n    \"usage\": {\n      \"input_tokens\": 3,\n      \"cache_creation_input_tokens\": 2140,\n      \"cache_read_input_tokens\": 48210,\n      \"output_tokens\": 412,\n      \"cache_creation\": { \"ephemeral_5m_input_tokens\": 0, \"ephemeral_1h_input_tokens\": 2140 }\n    }\n  }\n}\n```\n\n`timestamp` is in UTC. `message.model` is the full model name, not the alias you typed. `cache_creation` splits cache writes by how long the cache is kept (5 minutes or 1 hour), which matters for prices.\n\nAnthropic describes this format as internal: it changes between versions. The fields above have been stable for a long time, but check your script after an update.\n\n## How do you add up your tokens from the transcripts?\n\nThere's one trap first. A single request produces **one line per block** of the reply (a thinking block, a text block, each tool call), and every one of those lines repeats the same `usage`. Add every line and you count most requests two or three times. De-duplicate by `requestId`.\n\nWith `jq`, tokens per day for the last week:\n\n```sh\nfind ~\u002F.claude\u002Fprojects -name '*.jsonl' -mtime -7 -print0 |\n  xargs -0 jq -c 'select(.type == \"assistant\" and .message.usage != null\n                         and .message.model != \"\u003Csynthetic>\")\n    | {id: .requestId, day: .timestamp[0:10], model: .message.model, session: .sessionId,\n       project: (input_filename | split(\"\u002Fprojects\u002F\")[1] | split(\"\u002F\")[0]),\n       u: .message.usage}' > \u002Ftmp\u002Fclaude-usage.jsonl\n\njq -s -r 'unique_by(.id) | group_by(.day)[]\n  | [ .[0].day,\n      (map(.u.input_tokens) | add),\n      (map(.u.cache_creation_input_tokens \u002F\u002F 0) | add),\n      (map(.u.cache_read_input_tokens \u002F\u002F 0) | add),\n      (map(.u.output_tokens) | add) ] | @tsv' \u002Ftmp\u002Fclaude-usage.jsonl\n```\n\nThe columns are day, input, cache write, cache read, output. The first command collects one small record per logged reply into a temporary file; the second de-duplicates and sums. `\u003Csynthetic>` entries are messages Claude Code writes itself, such as errors, with no tokens behind them. `find` goes into the `subagents` folders too, so subagent work is included; filter on `isSidechain` or skip those folders if you want the main conversations only.\n\nDates are UTC days. If you're far from UTC and want local days, convert the timestamp before grouping.\n\n## How do you see usage per model or per project?\n\nSame file, different grouping. Per model, with the number of requests and the total:\n\n```sh\njq -s -r 'unique_by(.id) | group_by(.model)[]\n  | [ .[0].model, length,\n      (map(.u.input_tokens + (.u.cache_creation_input_tokens \u002F\u002F 0)\n           + (.u.cache_read_input_tokens \u002F\u002F 0) + .u.output_tokens) | add) ] | @tsv' \\\n  \u002Ftmp\u002Fclaude-usage.jsonl\n```\n\nPer project, sorted by output:\n\n```sh\njq -s -r 'unique_by(.id) | group_by(.project)\n  | map({project: .[0].project, output: (map(.u.output_tokens) | add)})\n  | sort_by(-.output)[] | [.project, .output] | @tsv' \u002Ftmp\u002Fclaude-usage.jsonl\n```\n\nPer project answers the question people actually have: \"where did my week go?\" It's often one long-running session nobody cleared.\n\n## Why is cache read the biggest number?\n\nBecause the conversation is re-sent with every request. A session at 80,000 tokens of context that makes 50 tool calls reads around four million cached tokens, while you typed maybe 200 words. In a long interactive session, it's normal for cache reads to be well over 90% of all input.\n\nThat ratio is worth watching:\n\n```sh\njq -s -r 'unique_by(.id)\n  | (map(.u.cache_read_input_tokens \u002F\u002F 0) | add) as $read\n  | (map(.u.input_tokens + (.u.cache_creation_input_tokens \u002F\u002F 0)) | add) as $new\n  | \"cache hit: \\($read * 100 \u002F ($read + $new) | floor)%\"' \u002Ftmp\u002Fclaude-usage.jsonl\n```\n\nA low hit rate means the cache keeps being rebuilt: long breaks between messages in a big session, frequent model switches, or a context that changes at the start. A high hit rate with a huge cache-read total means long contexts: `\u002Fclear` between tasks and `\u002Fcompact` in long ones. [Claude Code's context window](\u002Fblog\u002Fclaude-code-context-window) covers both.\n\n## How do you turn tokens into an API-price equivalent?\n\nMultiply each counter by its price per million tokens, per model, and add. On Anthropic's API, prices are set against the model's base input price:\n\n| Counter | Price |\n| --- | --- |\n| Input | Base input price |\n| Cache write, 5 minutes | 1.25 × base input |\n| Cache write, 1 hour | 2 × base input |\n| Cache read | 0.1 × base input |\n| Output | The model's output price, several times the input price |\n\nTake the base prices from Anthropic's pricing page for the exact models in your transcripts. Cache reads are cheap per token but so numerous that they're a large share of the total; output is the opposite. [What your usage would cost at API prices](\u002Fblog\u002Fclaude-code-token-costs) walks through the estimate and what it leaves out, and [API key or subscription](\u002Fblog\u002Fclaude-code-api-key-vs-subscription) shows what to do with the number.\n\n## What do \u002Fusage and \u002Fstatus show instead?\n\n`\u002Fusage` in a session shows the same four counters by model for the current session, with a dollar estimate at list price. On a subscription it adds plan usage bars, activity over the last day or week, and what counted against your limits. Two limits to keep in mind: the figures come from this machine's history, so another computer or claude.ai isn't in the breakdown, and totals restart when `\u002Fclear` starts a new session. `\u002Fstatus` tells you which account and credential the tokens are going to.\n\n## Which numbers are worth tracking?\n\nFour are enough:\n\n1. **Tokens per day, by model.** Your baseline. A day at three times the usual is worth a look.\n2. **Output tokens.** The closest thing to \"work done\". A day with huge input and little output was spent re-reading context.\n3. **Cache hit rate.** Usually above 90% in long sessions; a drop points to breaks or model switches in big ones.\n4. **Your three biggest sessions.** Group by `.session` instead of `.day`. They're usually the ones that should have been cleared or split.\n\nCheck them weekly, not hourly. Usage is lumpy, and the useful signal is the trend.\n\n## In Relais\n\nRelais has a Token burn plugin that does this counting for you. Turn it on in Settings › Plugins: it records the tokens each turn read and wrote, by model, and what they would cost at API prices. Today's total sits in the status bar, and a page shows every day and model. If you like, it makes a public page of your burn at getrelais.app\u002Fu\u002Fyour-name, and puts you on the [leaderboard](\u002Fleaderboard), ranked this week, this month or all time, with a league set by your last 30 days of tokens ([what a page shows and what stays on your Mac](\u002Fblog\u002Fclaude-code-token-leaderboard)). The Session budget plugin sets a budget per session at API prices and tells you when one goes past it. Your Claude plan is still what you pay; these are estimates to understand your usage. See [Token burn](\u002Ffeatures\u002Ftoken-burn).","\u003Cp>&quot;How many tokens did I use today?&quot; sounds like a simple question, and Claude Code doesn&#39;t answer it in one place. \u003Ccode>\u002Fusage\u003C\u002Fcode> shows the current session and plan bars, your plan page shows percentages, and neither tells you which project or which habit ate the most. The full answer is on your disk: every request Claude Code makes is logged with its token counts. Once you know what the counters mean and how to add them up without counting twice, you can answer any usage question in a few seconds.\u003C\u002Fp>\n\u003Ch2 id=\"what-counts-as-a-token-in-claude-code\">\u003Ca class=\"anchor\" href=\"#what-counts-as-a-token-in-claude-code\" aria-label=\"Link to this section\">#\u003C\u002Fa>What counts as a token in Claude Code?\u003C\u002Fh2>\n\u003Cp>Everything sent to the model and everything it sends back. That&#39;s more than your prompts:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Sent every request:\u003C\u002Fstrong> the system prompt, the tool definitions (MCP servers included), your \u003Ccode>CLAUDE.md\u003C\u002Fcode> files, the whole conversation so far, every file Claude read and every command output.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Sent back:\u003C\u002Fstrong> Claude&#39;s replies, its tool calls, and its thinking.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>The key fact is that Claude Code re-sends the conversation \u003Cstrong>with every request\u003C\u002Fstrong>, and one prompt from you can trigger dozens of requests, one per tool call. Usage grows with the length of the conversation times the number of requests in it.\u003C\u002Fp>\n\u003Cp>Each request is reported in four counters:\u003C\u002Fp>\n\u003Cdiv class=\"table-wrap\">\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>Counter\u003C\u002Fth>\u003Cth>What it is\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>\u003Ccode>input_tokens\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>New input that wasn&#39;t read from the prompt cache\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>\u003Ccode>cache_creation_input_tokens\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Input written to the prompt cache for the next requests\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>\u003Ccode>cache_read_input_tokens\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Input read back from the prompt cache\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>\u003Ccode>output_tokens\u003C\u002Fcode>\u003C\u002Ftd>\u003Ctd>Everything generated, thinking included\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Prompt caching is why the first three exist. The start of the conversation doesn&#39;t change between requests, so it&#39;s stored once (a cache write) and read back cheaply afterwards (cache reads). Only the new part at the end is plain input.\u003C\u002Fp>\n\u003Ch2 id=\"where-does-claude-code-record-token-usage\">\u003Ca class=\"anchor\" href=\"#where-does-claude-code-record-token-usage\" aria-label=\"Link to this section\">#\u003C\u002Fa>Where does Claude Code record token usage?\u003C\u002Fh2>\n\u003Cp>In the session transcripts:\u003C\u002Fp>\n\u003Cpre class=\"code\" data-lang=\"text\">\u003Ccode>~\u002F.claude\u002Fprojects\u002F&lt;project&gt;\u002F&lt;session-id&gt;.jsonl\n~\u002F.claude\u002Fprojects\u002F&lt;project&gt;\u002F&lt;session-id&gt;\u002Fsubagents\u002Fagent-&lt;id&gt;.jsonl\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Ccode>&lt;project&gt;\u003C\u002Fcode> is the working directory with every character that isn&#39;t a letter or a digit replaced by \u003Ccode>-\u003C\u002Fcode>. If you set \u003Ccode>CLAUDE_CONFIG_DIR\u003C\u002Fcode>, look under that directory instead. Transcripts are deleted after \u003Ccode>cleanupPeriodDays\u003C\u002Fcode> (30 by default), so raise it if you want a longer history.\u003C\u002Fp>\n\u003Cp>Each line is one JSON entry. The ones that answer from the model have \u003Ccode>&quot;type&quot;: &quot;assistant&quot;\u003C\u002Fcode> and carry a \u003Ccode>usage\u003C\u002Fcode> object. Trimmed, with illustrative numbers:\u003C\u002Fp>\n\u003Cpre class=\"code\" data-lang=\"json\">\u003Ccode>{\n  \u003Cspan class=\"hljs-string\">\"type\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-string\">\"assistant\"\u003C\u002Fspan>,\n  \u003Cspan class=\"hljs-string\">\"timestamp\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-string\">\"2026-11-25T14:02:11.415Z\"\u003C\u002Fspan>,\n  \u003Cspan class=\"hljs-string\">\"requestId\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-string\">\"req_011C…\"\u003C\u002Fspan>,\n  \u003Cspan class=\"hljs-string\">\"isSidechain\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-keyword\">false\u003C\u002Fspan>,\n  \u003Cspan class=\"hljs-string\">\"message\"\u003C\u002Fspan>: {\n    \u003Cspan class=\"hljs-string\">\"model\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-string\">\"claude-sonnet-5-5\"\u003C\u002Fspan>,\n    \u003Cspan class=\"hljs-string\">\"usage\"\u003C\u002Fspan>: {\n      \u003Cspan class=\"hljs-string\">\"input_tokens\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-number\">3\u003C\u002Fspan>,\n      \u003Cspan class=\"hljs-string\">\"cache_creation_input_tokens\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-number\">2140\u003C\u002Fspan>,\n      \u003Cspan class=\"hljs-string\">\"cache_read_input_tokens\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-number\">48210\u003C\u002Fspan>,\n      \u003Cspan class=\"hljs-string\">\"output_tokens\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-number\">412\u003C\u002Fspan>,\n      \u003Cspan class=\"hljs-string\">\"cache_creation\"\u003C\u002Fspan>: { \u003Cspan class=\"hljs-string\">\"ephemeral_5m_input_tokens\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-number\">0\u003C\u002Fspan>, \u003Cspan class=\"hljs-string\">\"ephemeral_1h_input_tokens\"\u003C\u002Fspan>: \u003Cspan class=\"hljs-number\">2140\u003C\u002Fspan> }\n    }\n  }\n}\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Ccode>timestamp\u003C\u002Fcode> is in UTC. \u003Ccode>message.model\u003C\u002Fcode> is the full model name, not the alias you typed. \u003Ccode>cache_creation\u003C\u002Fcode> splits cache writes by how long the cache is kept (5 minutes or 1 hour), which matters for prices.\u003C\u002Fp>\n\u003Cp>Anthropic describes this format as internal: it changes between versions. The fields above have been stable for a long time, but check your script after an update.\u003C\u002Fp>\n\u003Ch2 id=\"how-do-you-add-up-your-tokens-from-the-transcripts\">\u003Ca class=\"anchor\" href=\"#how-do-you-add-up-your-tokens-from-the-transcripts\" aria-label=\"Link to this section\">#\u003C\u002Fa>How do you add up your tokens from the transcripts?\u003C\u002Fh2>\n\u003Cp>There&#39;s one trap first. A single request produces \u003Cstrong>one line per block\u003C\u002Fstrong> of the reply (a thinking block, a text block, each tool call), and every one of those lines repeats the same \u003Ccode>usage\u003C\u002Fcode>. Add every line and you count most requests two or three times. De-duplicate by \u003Ccode>requestId\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>With \u003Ccode>jq\u003C\u002Fcode>, tokens per day for the last week:\u003C\u002Fp>\n\u003Cpre class=\"code\" data-lang=\"sh\">\u003Ccode>find ~\u002F.claude\u002Fprojects -name '*.jsonl' -mtime -7 -print0 |\n  xargs -0 jq -c 'select(.type == &quot;assistant&quot; and .message.usage != null\n                         and .message.model != &quot;&lt;synthetic&gt;&quot;)\n    | {id: .requestId, day: .timestamp[0:10], model: .message.model, session: .sessionId,\n       project: (input_filename | split(&quot;\u002Fprojects\u002F&quot;)[1] | split(&quot;\u002F&quot;)[0]),\n       u: .message.usage}' &gt; \u002Ftmp\u002Fclaude-usage.jsonl\n\njq -s -r 'unique_by(.id) | group_by(.day)[]\n  | [ .[0].day,\n      (map(.u.input_tokens) | add),\n      (map(.u.cache_creation_input_tokens \u002F\u002F 0) | add),\n      (map(.u.cache_read_input_tokens \u002F\u002F 0) | add),\n      (map(.u.output_tokens) | add) ] | @tsv' \u002Ftmp\u002Fclaude-usage.jsonl\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The columns are day, input, cache write, cache read, output. The first command collects one small record per logged reply into a temporary file; the second de-duplicates and sums. \u003Ccode>&lt;synthetic&gt;\u003C\u002Fcode> entries are messages Claude Code writes itself, such as errors, with no tokens behind them. \u003Ccode>find\u003C\u002Fcode> goes into the \u003Ccode>subagents\u003C\u002Fcode> folders too, so subagent work is included; filter on \u003Ccode>isSidechain\u003C\u002Fcode> or skip those folders if you want the main conversations only.\u003C\u002Fp>\n\u003Cp>Dates are UTC days. If you&#39;re far from UTC and want local days, convert the timestamp before grouping.\u003C\u002Fp>\n\u003Ch2 id=\"how-do-you-see-usage-per-model-or-per-project\">\u003Ca class=\"anchor\" href=\"#how-do-you-see-usage-per-model-or-per-project\" aria-label=\"Link to this section\">#\u003C\u002Fa>How do you see usage per model or per project?\u003C\u002Fh2>\n\u003Cp>Same file, different grouping. Per model, with the number of requests and the total:\u003C\u002Fp>\n\u003Cpre class=\"code\" data-lang=\"sh\">\u003Ccode>jq -s -r 'unique_by(.id) | group_by(.model)[]\n  | [ .[0].model, length,\n      (map(.u.input_tokens + (.u.cache_creation_input_tokens \u002F\u002F 0)\n           + (.u.cache_read_input_tokens \u002F\u002F 0) + .u.output_tokens) | add) ] | @tsv' \\\n  \u002Ftmp\u002Fclaude-usage.jsonl\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Per project, sorted by output:\u003C\u002Fp>\n\u003Cpre class=\"code\" data-lang=\"sh\">\u003Ccode>jq -s -r 'unique_by(.id) | group_by(.project)\n  | map({project: .[0].project, output: (map(.u.output_tokens) | add)})\n  | sort_by(-.output)[] | [.project, .output] | @tsv' \u002Ftmp\u002Fclaude-usage.jsonl\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Per project answers the question people actually have: &quot;where did my week go?&quot; It&#39;s often one long-running session nobody cleared.\u003C\u002Fp>\n\u003Ch2 id=\"why-is-cache-read-the-biggest-number\">\u003Ca class=\"anchor\" href=\"#why-is-cache-read-the-biggest-number\" aria-label=\"Link to this section\">#\u003C\u002Fa>Why is cache read the biggest number?\u003C\u002Fh2>\n\u003Cp>Because the conversation is re-sent with every request. A session at 80,000 tokens of context that makes 50 tool calls reads around four million cached tokens, while you typed maybe 200 words. In a long interactive session, it&#39;s normal for cache reads to be well over 90% of all input.\u003C\u002Fp>\n\u003Cp>That ratio is worth watching:\u003C\u002Fp>\n\u003Cpre class=\"code\" data-lang=\"sh\">\u003Ccode>jq -s -r 'unique_by(.id)\n  | (map(.u.cache_read_input_tokens \u002F\u002F 0) | add) as $read\n  | (map(.u.input_tokens + (.u.cache_creation_input_tokens \u002F\u002F 0)) | add) as $new\n  | &quot;cache hit: \\($read * 100 \u002F ($read + $new) | floor)%&quot;' \u002Ftmp\u002Fclaude-usage.jsonl\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>A low hit rate means the cache keeps being rebuilt: long breaks between messages in a big session, frequent model switches, or a context that changes at the start. A high hit rate with a huge cache-read total means long contexts: \u003Ccode>\u002Fclear\u003C\u002Fcode> between tasks and \u003Ccode>\u002Fcompact\u003C\u002Fcode> in long ones. \u003Ca href=\"\u002Fblog\u002Fclaude-code-context-window\">Claude Code&#39;s context window\u003C\u002Fa> covers both.\u003C\u002Fp>\n\u003Ch2 id=\"how-do-you-turn-tokens-into-an-api-price-equivalent\">\u003Ca class=\"anchor\" href=\"#how-do-you-turn-tokens-into-an-api-price-equivalent\" aria-label=\"Link to this section\">#\u003C\u002Fa>How do you turn tokens into an API-price equivalent?\u003C\u002Fh2>\n\u003Cp>Multiply each counter by its price per million tokens, per model, and add. On Anthropic&#39;s API, prices are set against the model&#39;s base input price:\u003C\u002Fp>\n\u003Cdiv class=\"table-wrap\">\u003Ctable>\u003Cthead>\u003Ctr>\u003Cth>Counter\u003C\u002Fth>\u003Cth>Price\u003C\u002Fth>\u003C\u002Ftr>\u003C\u002Fthead>\u003Ctbody>\u003Ctr>\u003Ctd>Input\u003C\u002Ftd>\u003Ctd>Base input price\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Cache write, 5 minutes\u003C\u002Ftd>\u003Ctd>1.25 × base input\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Cache write, 1 hour\u003C\u002Ftd>\u003Ctd>2 × base input\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Cache read\u003C\u002Ftd>\u003Ctd>0.1 × base input\u003C\u002Ftd>\u003C\u002Ftr>\u003Ctr>\u003Ctd>Output\u003C\u002Ftd>\u003Ctd>The model&#39;s output price, several times the input price\u003C\u002Ftd>\u003C\u002Ftr>\u003C\u002Ftbody>\u003C\u002Ftable>\u003C\u002Fdiv>\n\u003Cp>Take the base prices from Anthropic&#39;s pricing page for the exact models in your transcripts. Cache reads are cheap per token but so numerous that they&#39;re a large share of the total; output is the opposite. \u003Ca href=\"\u002Fblog\u002Fclaude-code-token-costs\">What your usage would cost at API prices\u003C\u002Fa> walks through the estimate and what it leaves out, and \u003Ca href=\"\u002Fblog\u002Fclaude-code-api-key-vs-subscription\">API key or subscription\u003C\u002Fa> shows what to do with the number.\u003C\u002Fp>\n\u003Ch2 id=\"what-do-usage-and-status-show-instead\">\u003Ca class=\"anchor\" href=\"#what-do-usage-and-status-show-instead\" aria-label=\"Link to this section\">#\u003C\u002Fa>What do \u002Fusage and \u002Fstatus show instead?\u003C\u002Fh2>\n\u003Cp>\u003Ccode>\u002Fusage\u003C\u002Fcode> in a session shows the same four counters by model for the current session, with a dollar estimate at list price. On a subscription it adds plan usage bars, activity over the last day or week, and what counted against your limits. Two limits to keep in mind: the figures come from this machine&#39;s history, so another computer or claude.ai isn&#39;t in the breakdown, and totals restart when \u003Ccode>\u002Fclear\u003C\u002Fcode> starts a new session. \u003Ccode>\u002Fstatus\u003C\u002Fcode> tells you which account and credential the tokens are going to.\u003C\u002Fp>\n\u003Ch2 id=\"which-numbers-are-worth-tracking\">\u003Ca class=\"anchor\" href=\"#which-numbers-are-worth-tracking\" aria-label=\"Link to this section\">#\u003C\u002Fa>Which numbers are worth tracking?\u003C\u002Fh2>\n\u003Cp>Four are enough:\u003C\u002Fp>\n\u003Col>\n\u003Cli>\u003Cstrong>Tokens per day, by model.\u003C\u002Fstrong> Your baseline. A day at three times the usual is worth a look.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Output tokens.\u003C\u002Fstrong> The closest thing to &quot;work done&quot;. A day with huge input and little output was spent re-reading context.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Cache hit rate.\u003C\u002Fstrong> Usually above 90% in long sessions; a drop points to breaks or model switches in big ones.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Your three biggest sessions.\u003C\u002Fstrong> Group by \u003Ccode>.session\u003C\u002Fcode> instead of \u003Ccode>.day\u003C\u002Fcode>. They&#39;re usually the ones that should have been cleared or split.\u003C\u002Fli>\n\u003C\u002Fol>\n\u003Cp>Check them weekly, not hourly. Usage is lumpy, and the useful signal is the trend.\u003C\u002Fp>\n\u003Ch2 id=\"in-relais\">\u003Ca class=\"anchor\" href=\"#in-relais\" aria-label=\"Link to this section\">#\u003C\u002Fa>In Relais\u003C\u002Fh2>\n\u003Cp>Relais has a Token burn plugin that does this counting for you. Turn it on in Settings › Plugins: it records the tokens each turn read and wrote, by model, and what they would cost at API prices. Today&#39;s total sits in the status bar, and a page shows every day and model. If you like, it makes a public page of your burn at getrelais.app\u002Fu\u002Fyour-name, and puts you on the \u003Ca href=\"\u002Fleaderboard\">leaderboard\u003C\u002Fa>, ranked this week, this month or all time, with a league set by your last 30 days of tokens (\u003Ca href=\"\u002Fblog\u002Fclaude-code-token-leaderboard\">what a page shows and what stays on your Mac\u003C\u002Fa>). The Session budget plugin sets a budget per session at API prices and tells you when one goes past it. Your Claude plan is still what you pay; these are estimates to understand your usage. See \u003Ca href=\"\u002Ffeatures\u002Ftoken-burn\">Token burn\u003C\u002Fa>.\u003C\u002Fp>\n",[15,18,21,24,27,30,33,36,39],{"id":16,"text":17},"what-counts-as-a-token-in-claude-code","What counts as a token in Claude Code?",{"id":19,"text":20},"where-does-claude-code-record-token-usage","Where does Claude Code record token usage?",{"id":22,"text":23},"how-do-you-add-up-your-tokens-from-the-transcripts","How do you add up your tokens from the transcripts?",{"id":25,"text":26},"how-do-you-see-usage-per-model-or-per-project","How do you see usage per model or per project?",{"id":28,"text":29},"why-is-cache-read-the-biggest-number","Why is cache read the biggest number?",{"id":31,"text":32},"how-do-you-turn-tokens-into-an-api-price-equivalent","How do you turn tokens into an API-price equivalent?",{"id":34,"text":35},"what-do-usage-and-status-show-instead","What do \u002Fusage and \u002Fstatus show instead?",{"id":37,"text":38},"which-numbers-are-worth-tracking","Which numbers are worth tracking?",{"id":40,"text":41},"in-relais","In Relais",[43,50,55],{"slug":44,"title":45,"description":46,"category":7,"categoryId":8,"keyword":47,"date":48,"minutes":49},"claude-code-token-leaderboard","A Claude Code token leaderboard: compare your usage, keep the rest private","How Relais's Token burn plugin counts your Claude Code tokens per day and model, what a public page shows, how the leaderboard ranks people, and what never leaves your Mac.","claude code token leaderboard","2026-11-27",6,{"slug":51,"title":52,"description":53,"category":7,"categoryId":8,"keyword":54,"date":10,"minutes":49},"claude-code-api-key-vs-subscription","Claude Code: API key or subscription? How to choose and switch","Claude Code bills either per token on an API key or flat on a Pro, Max or team plan. What changes, when each one fits, and how to switch without paying twice.","claude code api key vs subscription",{"slug":56,"title":57,"description":58,"category":7,"categoryId":8,"keyword":59,"date":60,"minutes":61},"claude-code-usage-limits","Claude Code usage limits: the 5-hour window and weekly cap","How Claude Code's 5-hour window and weekly limit work, what makes you hit them, how to check usage, and what to do the moment Claude Code stops.","claude code usage limits","2026-11-17",5,1795902782593]