/tokenmeter:tokenmeterfrom tokenmeter
Opens a local dashboard tracking token usage, cost, rate-limit windows, and cache misses for Claude Code, Codex, and Copilot CLI prompts. Answers specific usage questions from API data.
Ships in tokenmeter. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Tokenmeter reads the transcripts Claude Code, Codex and Copilot CLI already write to disk, so no hook or instrumentation is needed. Every completed model turn shows up in the dashboard within a few seconds.
Run the server in the background (it is safe to run repeatedly, a second start just reports the existing URL). Try these in order and use the first that exists:
command -v tokenmeter >/dev/null && tokenmeter start || (nohup python3 ~/.claude/skills/tokenmeter/tokenmeter/server.py --open >/dev/null 2>&1 &) || (nohup python3 ~/.codex/skills/tokenmeter/tokenmeter/server.py --open >/dev/null 2>&1 &)
The tokenmeter command exists when installed with pip, pipx, uv or Homebrew. The two paths are the plugin checkouts for Claude Code and Codex.
Then tell the user the dashboard URL that tokenmeter start printed and stop. It is http://127.0.0.1:7788 unless that port was taken, in which case Tokenmeter uses the next free port up to 7798 or the port saved in ~/.tokenmeter/config.json. Do not paste usage numbers into chat unless asked; the dashboard is the deliverable.
If the user asks a specific question ("how much did I spend today", "which project uses the most tokens", "am I close to my limit"), start the server as above, then read /api/summary on that URL for today, last 5 hours, month, projection and limits, or /api/usage for every turn, and answer from the JSON. Records carry tool, model, project, ts, token fields in, cr (cache read), cw5/cw1h (cache write), out, reason, and cost in USD (null when the model has no entry in pricing.json).
tokenmeter start --port N uses and saves another port (as _port in ~/.tokenmeter/config.json); TOKENMETER_PORT overrides it for one run.~/.tokenmeter/config.json overrides the bundled pricing.json: _plans (what the user pays per month per tool), _budget (alert caps), _context_windows, and model prices. If the user mentions their subscription price, write it there, for example {"_plans": {"claude": 100, "codex": 20}}.--export URL pushes aggregates to a team server; --host 0.0.0.0 runs one.CLAUDE_CONFIG_DIR and CODEX_HOME override the transcript locations.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub serkankorkut/tokenmeter --plugin tokenmeterOther plugins' skills for the same job