Plan meter with pace
Your 5-hour and weekly limits in the menu bar, and a warning when you’re on track to hit one before it resets, not after.
Claude Code usage tracker for Pro and Max
Tokenhog is a free, open-source usage tracker for Claude Code. It shows how close you are to your plan limits, what each session, project and machine costs, and what to change to spend less. It runs on your own machines, needs no account and sends nothing to anyone.
plugin install tokenhog --marketplace Igor-G/tokenhogIn Claude Code. Then ask Claude to “install Tokenhog”.
Most Claude usage trackers read one machine’s logs and add up the cost. Tokenhog starts there and answers the questions that come next.
| Question | A typical usage tracker | Tokenhog |
|---|---|---|
| Which machines? | The one it runs on | All of them, merged into one plan meter, because your limits are per account, not per computer |
| Your limits | How much is used | Who used it, and whether you’ll run out before the reset |
| What to change | Totals to read yourself | Fixes for your own usage, each with a weekly saving, a preview and an undo |
| Did it work? | Hard to tell | Each fix measured against your own baseline, with a verdict |
| Syncing machines | None, or a cloud account | End-to-end encrypted, no account, through a relay that can’t read your data |
Claude Code already writes down every request it makes. Tokenhog reads those records as they happen and turns them into answers.
Your 5-hour and weekly limits in the menu bar, and a warning when you’re on track to hit one before it resets, not after.
Cost per session, project, model, subagent, skill and MCP server, including headless
(claude -p) and SDK runs, from every machine you use.
Which sessions ate the current window, and which ones ate the windows that already reset: you, your subagents, background tasks or a scheduled job.
Rules find what costs tokens without earning them: oversized outputs, big contexts, expired caches, expensive models doing simple work, unused skills and MCP servers. Each one is previewed, backed up and reversible.
Every applied fix is measured against your own baseline, with a range, a verdict and checks that quality didn’t drop.
Recommendations are rule-based, so they never spend your tokens to save them. The agent idles at about 0% CPU and a few MB of memory.
Hit the limit at 2 pm and not sure how? Tokenhog splits every window by where the usage came from, then by session, so the surprise has a name.
Passing tests fill the context and are re-read on every turn. Keep the failures and the summary.
Cost per session −31% (likely between −22% and −38%) against your own baseline. Tests still pass as often as before.
Each recommendation comes with an estimated weekly saving and shows exactly what it would change before you say yes.
tokenhog undo puts it back.Laptop, desktop, a dev box, containers, a cloud sandbox: they all count against the same plan. Pick one main machine and the others send their usage to it.
On the main machine, flip Connect my machines anywhere in Settings › Machines.
Add the invite it makes to your claude.ai account as a skill. Claude Code brings it to every machine you sign in on.
Tokenhog on those machines joins by itself, tells you it did, and tokenhog leave undoes it.
On the same network, a short code like K7QM-4TZP pairs two machines without the relay.
The relay only passes sealed batches it can’t read, and machines can only send, never read.
Tokenhog is a local tool. There is no Tokenhog account, server or dashboard in the cloud.
Free and open source. The installer asks before it changes anything.
Easiest, on any system. In Claude Code, type:
/plugin install tokenhog --marketplace Igor-G/tokenhogThen ask Claude to “install Tokenhog”. It says what will change, asks, and runs the installer.
On every machine you sign in on: at claude.ai, go to Customize › Plugins › Add marketplace,
enter Igor-G/tokenhog and turn the plugin on. A new machine without Tokenhog then suggests it once a day.
One line in a terminal:
curl -fsSL https://github.com/Igor-G/tokenhog/releases/latest/download/install.sh | shIt installs the tokenhog command line and, on macOS, the menu bar app, checks every
download against the release’s checksums, then asks before it sets up Claude Code’s status line
(your settings are backed up first) and a small background agent.
Download tokenhog-x86_64-pc-windows-msvc.zip from the
releases page, put tokenhog.exe on your PATH, then:
tokenhog setup && tokenhog agent installThe command line and agent build for Windows but haven’t been tested on real machines yet.
# what was collected, by session, project and model
tokenhog report
# recommendations, with an estimated weekly saving each
tokenhog advise
# show exactly what a fix would change, then apply it
tokenhog apply 1 --dry-run
tokenhog apply 1
# what's applied, and whether it paid off
tokenhog applied
Tools like ccusage report one machine’s Claude Code logs in the terminal, and do it well. Tokenhog adds one plan meter merged from all your machines, which sessions used each limit window, and fixes you can apply, undo and measure. It runs as a small background agent with a menu bar app, rather than a command you run now and then.
Yes. Pick one main machine and the others send their usage to it, end-to-end encrypted: with a short code on the same network, or through the relay from anywhere. The main machine shows every session from every machine against one plan meter.
Tokenhog shows your 5-hour and weekly limits in the menu bar and in Claude Code’s status line, and warns you when you’re on pace to hit one before it resets.
Yes. It’s open source under MIT or Apache 2.0, with no paid tier and no account.
Not unless you ask it to. It reads the records Claude Code already writes and works out costs and recommendations with rules. One optional feature, smart trim, asks Claude Haiku what to cut from a long conversation, for about $0.002 a call. It’s off until you turn it on.
No. It never reads your credentials. From Claude Code’s config it reads only your account’s ID, to tell whether an invite is yours.
They’re estimated from list prices and your plan meter readings, so they’re close, but they aren’t an invoice.
Claude Code’s own sandbox and ClaudeBox are counted as they are. A dev container or Docker container can share its transcripts folder with the host, and machines elsewhere, like cloud sandboxes or Codespaces, can send through the relay.
Sealed batches it can’t read, their sizes and times. It can’t pose as your main machine, and it can’t add a machine without your invite. You can run your own: it’s a small open-source Cloudflare Worker.
tokenhog agent uninstall stops the agent, tokenhog unsetup restores your
previous status line, and fixes you applied can be undone first with tokenhog undo.