Token Pace — Claude Code, Codex & Gemini CLI
Quota, tokens and API cost for Claude Code and Codex, and tokens and API cost for Gemini CLI — permanently
in the VS Code status bar, with a detailed tooltip, a dashboard in the secondary sidebar, and text-only views for the
places a webview cannot go. The project's site, in English and German: token-pace.com.
The bars are coloured by pace, not by level: green while consumption stays at or below the share of the window
that has already elapsed, yellow once it runs ahead of pace, red when the window is spent. A 60 % bar is reassuring an
hour before the reset and alarming five minutes in — a fixed threshold cannot tell those apart.
CC 5h ██┃▁▁▁▁▁ 25% · resets 2h14m CC 7d █████┃▁▁ 69% ▲ · resets 4d 6h
CDX 5h ███┃▁▁▁▁ 33% · resets 1h05m CC Fable 7d █┃▁▁▁▁▁▁ 12% · resets 4d 6h
Σ 4.6M · today ~$1.23 · today






The pictures are rendered from preview data (Token Pace: Preview Status Bar States and a synthetic snapshot), not from anybody's real usage.
Requires VS Code 1.106 or newer. The dashboard lives in the secondary sidebar, whose
contributes.viewsContainers.secondarySidebar became a stable contribution point in 1.106. Editors on an older VS
Code base — Cursor and Windsurf currently — cannot install it until they rebase; VSCodium tracks the VS Code releases
and gets it from Open VSX.
Not affiliated with, endorsed by, or sponsored by Anthropic, OpenAI or Google. “Claude”, “Codex” and “Gemini” are the
trademarks of their respective owners and are used here only to name the tools whose output is read.
What you see
- A status bar entry per tool by default — the quota window that needs attention — and one per window if you like, model-scoped ones included: a pace-coloured bar with the elapsed marker, the percentage and the countdown to the reset.
windowSelect decides how many appear (all shows every window), statusBar.show which kinds exist and in which order, density how much text each one gets. → Status bar, every state it can show
- A tooltip with the whole picture: the window table with used, elapsed, pace and reset, a forecast line per window, the token tables for today / 7 days / 30 days, the freshness
line and a provenance line that names what was measured and what was estimated. When a fetch of Token Pace's own fails — a
429 and its backoff — the old figure stays and says so: Last attempt
at 14:20 failed: HTTP 429 … · next attempt in 1h12m in the tooltip and on the card, and
· $(clock) retry 1h12m after the age of a stale entry. → Quota sources
- Gemini CLI beside Claude Code and Codex (2.0). Its tokens are counted from the chat recordings Gemini CLI writes
itself — per model, hour and day, session and project, with the cache share and the API list price where Google publishes
one —, with nothing to configure, no network and no sign-in. Gemini CLI keeps no quota on the machine and its plans count requests, not tokens, so its card says exactly that: no percentage, reset or pace. → Counting
- A dashboard in the secondary sidebar, a provider switch at the very top —
Claude Code · Codex · Gemini CLI · All — that shows the whole page for one provider or for all: quota cards that explain
their own colour, a seven-day sparkline, the key figures, the daily chart by model with the cost line, the fixed-period
token totals and, off by default, the Records — since 1.11 the most expensive days, the longest and largest Claude Code sessions and the hours with the most cache written. → Dashboard
- A prompt cache that says when it cools. Five minutes before a Claude Code session's one-hour
cache expires, the Claude card says so —
prompt cache cools in 4 m 10 s (1 h TTL) — and what a
cold start would re-write instead of reading it from the cache, measured by the status line or
estimated from the transcript and marked ~. cache in statusBar.show adds $(watch) cache 4m;
the Codex card says ~until 14:52, perhaps longer. → Prompt cache
- Keep-warm, opt-in and off by default. With three minutes or less left of a measured cache and
every check holding, a one-minute countdown you can cancel, then one fixed line typed into the
session's terminal. A draft left in Claude Code's input line is sent along, the Claude Code
extension's panel is out of reach, each line is a real request, and Anthropic's terms do not
explicitly permit it. → Keep-warm in a terminal
- Your own prompts, typed into Claude Code's terminal on a double-click. A
prompts section, off by
default, lists your prompts — Status table, Keep the cache warm and Stop after this task to begin
with. A double-click, the send button or Ctrl+Enter types one into the terminal of this window that runs
Claude Code or Codex and presses Enter, always on your click; where the transcript cannot tell Claude Code
at work from Claude Code waiting for your answer in a dialog, it asks first. → Prompts
- Your Claude Code agents as a tree: the agents running now listed on top, then the active sessions with their
workflow runs and agents, and every other session of the last seven days in one closed row,
Earlier sessions (12)
— closed until you open them, fifty children at a time — each with its state, usage, duration and a tally of what
the agents below came to (427 started · 390 ✓ · 15 ✕ · 10 ↻ · ~11 ● · ~1 ?), live while it runs. A name says its
state in colour as well — green done, yellow unknown, red failed, blue running —, never as the only sign, and guide
lines connect every child to its parent. Failed, stopped, retried and replaced agents are told apart, a run's own
recorded end and a rejected request are named, and a click opens the details under the row — effort, token mix, tool
errors, cache misses, compactions, Claude Code's own run record. A state that is only inferred says so, and nothing
of a prompt or a result is read. The tree is a tree to the keyboard and a screen reader too. → Agents
- Where the agent tokens went: a 7-day block by agent type and model with the five largest agents, and under each
Claude window's bar the subagents' share of what was counted over it — a share of tokens, never of the quota. The
chart can split every day by main session and subagent. → Dashboard
- Running agents in the status bar, opt-in:
agents in statusBar.show shows ~3 running while any runs, with
no colour and no alarm. And, opt-in as well, an agent hook you install into Claude Code yourself marks an agent
that waits for your approval. → Status bar, the agent hook
- What did this project cost? Opt-in: a Projects table for the range — usage, API cost, sessions, last activity — and
a project filter; one folder, one project, for Claude Code, Codex and Gemini CLI, a pseudonym unless you ask for names. → Sessions and projects
- The same figures without a webview: a markdown report, a searchable Quick Pick, a CSV and a JSON export — the
agents included in all of them — and a diagnostics report that is safe to paste into an issue.
→ Export and diagnostics
- Notifications to your phone, a chat or your mail, off by default: Claude Code waiting for you, a long turn
finished, a quota window past your threshold, exhausted, reset or running out before its reset — one short message
to a webhook, Slack, Discord, Microsoft Teams, Mattermost, Rocket.Chat, Telegram, ntfy or e-mail, never a prompt, a
project, a path or a session; the secret in VS Code's secret storage, sent only to the host you allowed. → Notifications
- Quota without the network. Percentages come from the provider and cover every client; out of the box they are
read from local sources somebody else wrote, and an old reading says so. Fetching them ourselves is a separate
decision, asked once; under
auto Fetch Quota Now offers it. → Quota sources, Windows
- Nothing invented. A missing figure is
–, never 0 %; a window without a stated length
gets no pace rather than an invented denominator; estimates carry ~ and lower bounds ⚠.
→ Numbers, words and pace
- Twenty-nine languages. A flag at the top of the dashboard switches the status bar, the dashboard, the Quick Pick,
the report and every dialog at once — to English, Deutsch, Français, Español, Português (Brasil), Italiano, 日本語, 한국어,
简体中文, 繁體中文, Русский, Türkçe, Polski, Čeština, Nederlands, Українська, Svenska, Norsk, Dansk, Suomi, हिन्दी, Bahasa Indonesia,
Tiếng Việt, Ελληνικά, Magyar, Română, العربية (Arabic), עברית (Hebrew) or فارسی (Persian), or to VS Code's display language; in the three written from right to left the dashboard is mirrored. The twenty-seven beyond English and German were translated by AI agents and checked by tests, not by native speakers. → Languages
Install
- Visual Studio Marketplace — search for Token Pace in the Extensions view, or
code --install-extension frederik.token-pace
(store page).
- Open VSX — for VSCodium and everything else on that registry:
codium --install-extension frederik.token-pace (store page).
.vsix — from the GitHub releases:
code --install-extension token-pace-<version>.vsix, or Extensions → … → Install from VSIX…. The
package is platform-independent; there is no native code.
Nothing has to be configured. If Claude Code, Codex or Gemini CLI runs on the other side of a remote —
WSL, SSH, a container — see Windows, WSL and remote development.
Privacy
Out of the box this extension makes no network access at all: token counts are read from local transcript files —
Gemini CLI's chat recordings among them, read for their figures and never for a message, a thought or a tool's input —,
and quota percentages from local sources somebody else wrote — a cache file, Claude Code's own status line,
~/.claude.json, the Codex transcripts. Gemini CLI writes no quota, and no Google host is ever contacted.
Fetching quota ourselves is a separate decision, asked for once, in a dialog that states exactly what is sent where;
the access token is read only then — from CLAUDE_CODE_OAUTH_TOKEN, on macOS the Keychain item Claude Code keeps it
in (after a question of its own), ~/.claude/.credentials.json, on Linux the Secret Service — and only ever sent to
https://api.anthropic.com/api/oauth/usage. The hosts Token Pace ever contacts are that endpoint and, only if you set
one up, the notification channel you chose — at the host you allowed, with a message that holds no prompt, path,
project or session. By default the request names the Claude Code version this machine runs — from claude --version,
on Windows only from a claude.exe on the PATH, never through the .cmd shim or a shell, else the version the
newest Claude Code session wrote into its transcript —, and the extension's own quota.json keeps the last failed
attempt: its time, its kind and the fetch's own words, never a token, a header or an exception's text.
~/.claude/ide/*.lock, ~/.claude/sessions/*.key and the oauthAccount block of
~/.claude.json are never touched, and symlinks are not followed while scanning.
Transcript contents — prompts, responses, tool arguments and tool results — are never stored, logged, exported or
displayed. Nothing is written outside the extension's own storage except the shared quota cache file and the
status-line bridge — which keeps only the fields Token Pace reads —, and nothing is typed anywhere except the
keep-warm line — three opt-ins, each behind its own consent dialog, all three off by default and off in Restricted
Mode — and a prompt of the dashboard's Prompts section, typed only when you double-click it and never in Restricted
Mode; a language you pick in the dashboard goes into your user settings, and a notification channel's secrets into VS
Code's secret storage; with tokenPace.debugLogFile set, the log also goes into the file you name. The agent tree reads identifiers, names, counts and allow-listed words only — an agent's type,
model, ids and outcome, its effort, a rejected request's status, error kind and limit, its last tool's name, its tool
errors, cache misses, Claude Code version, permission mode and compactions, the seven fields of a run record, and,
with the opt-in hook, four keys of a hook call — each field named in Privacy; never a prompt, a
description, a result or a path.
No telemetry of any kind is collected, the webview loads no external resource, and npm run check:privacy fails the
build on any http(s) literal outside a small allow-list, on a network call site outside its table, on any reader of
a Claude Code file that takes a field its read contract does not list, on an agent hook bundle that loads anything but
Node's fs and path, and on a status-line bridge bundle that loads more than child_process, fs and path. The
full account is in Privacy.
Documentation
| Page |
What is in it |
| Numbers, words and pace |
Where every figure comes from, the nine terms used throughout, and the pace rule the colours follow |
| Status bar |
What an entry is made of, the special states, the click, the tooltip, the colours, the preview |
| Status bar states |
Every text the bar can show, which state wins when several apply, and the one thing to check |
| Dashboard |
The provider switch and the language picker, the sections of the panel, the filter bar, the chart, the tables and the heatmap |
| Agents |
The running list, the 7-day block and the session → workflow → agent tree with its earlier sessions, state colours and guide lines: what is read, how every state is derived, the keyboard, the agent hook, what is kept and for how long |
| Quota sources |
The cache file, what auto and cache say beside an old reading and what Fetch Quota Now asks, consent, our own fetch — its user agent, the credentials per platform and a failed attempt beside an old figure —, the standing Codex app-server, the status-line bridge and where its script lives, extra usage |
| Prompts |
The dashboard's Prompts section: your own prompts for Claude Code's and Codex's terminals, the three shipped ones, editing, how a prompt is sent and into which terminal, when Token Pace asks first or does not send, the /loop variant, and where the list is kept |
| Prompt cache |
The cooling warning and what a cold start would cost, which figure is measured and which estimated, the Codex line, the opt-in keep-warm line with every check it makes and what it cannot see, and exactly which fields are read |
| The quota cache file |
The contract for that JSON file, so you can write one yourself |
| The “API cost” column |
The dated price table and the pages it was read from, your own rates and the list price beside them, the family fallback, and what the figure is not |
| Counting |
How the transcripts and Gemini CLI's recordings are read, what a lower bound is, retention and the snapshot |
| History and forecasts |
The stored quota history, burn rate, ETA and the reset retrospective |
| Budgets and alerts |
Limits you state, the thresholds that can fire, and why a budget is not a bill |
| Notifications |
Messages to your phone, a chat or your mail: setting up a channel, the consent per host, the six events, what a message holds, no storm, where the secrets are kept |
| Sessions and projects |
What a project is — one folder, for Claude Code, Codex and Gemini CLI alike —, what attribution stores and never stores, the pseudonym shown by default, the switches and the limits |
| Export and diagnostics |
The CSV and JSON schemas, the clipboard summary, the diagnostics report |
| If the bar says … |
Every problem state with its cause and the repair its click performs, the Codex app-server's, the macOS Keychain's, the notifications', the agent hook's, and why no keep-warm line was sent |
| Privacy |
Every file read, everything never touched, the quota fetch and the notification channels you set up |
| Windows, WSL and remote development |
extensionKind, relocated directories, the Claude Code version on Windows, where the status-line bridge's script lives, restricted and virtual workspaces |
| Settings |
Every tokenPace.* key with its default and what it does |
| Commands and keybindings |
The commands, the one chord, the interface language — a setting and a picker, not a command —, the walkthrough |
| Languages |
The language picker and tokenPace.language, what switches at once and what follows VS Code, the twenty-nine languages and their flags, right to left, the notation that stays the same, and how the translations were made |
| Building and testing |
Build, tests, the smoke test in a real window, and what CI runs |
| Releasing |
The tag-push recipe, the two store secrets, publisher verification |
Changes per version are in CHANGELOG.md.
Licence
AGPL-3.0-or-later. Copyright © 2026 Frederik Marx. The full text is in LICENSE; every source file
carries an SPDX identifier.
Copyleft was chosen deliberately. This extension reads an access token, and the only meaningful assurance about what
it does with it is that you can read the code. That assurance should survive being passed on, by whichever route:
distributed as another extension, a .vsix or inside a product, the complete source of the modified version has
to be published under the same licence; run as a network service, section 13 extends the same duty to people who
only ever reach the software over a network — the difference between the AGPL and the plain GPL, and the reason for
this choice: a quota dashboard is exactly the kind of thing that ends up hosted rather than shipped. Using and
modifying it for yourself carries no obligation whatsoever. The duty begins at distribution or at offering a service,
never at use, and forking this repository is neither.
| |