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.
For Claude Pro, Max and Claude Code
Tokenhog 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”.
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 Tokenhog never spends 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
No. It reads the records Claude Code already writes and works out costs and recommendations with rules. It never calls a model.
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.