All shelves / Mods / Usage
tokendoctor
By rsaryev
tokendoctor is a Claude Code usage mod by rsaryev.
Shows where your Claude Code tokens went, audits your settings with 33 checks, and changes a setting only after a dialog shows the change and you press Apply.
Draws
Install
The marketplace name is tokendoctor.
claude plugin marketplace add rsaryev/tokendoctor claude plugin install tokendoctor@tokendoctor
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.5.0
- License
- MIT
- Repo stars
- 11
- Last change
- 2026-10-26
What it can reach
- Draws in the session
- Reads usage or context figures
Updates are claude plugin marketplace update tokendoctor, then claude plugin update tokendoctor@tokendoctor, then a restart of Claude Code. To try it without installing, clone the repository and run claude --plugin-dir with its path. /tokendoctor:sessions and /tokendoctor:audit only read; /tokendoctor:optimize and /tokendoctor:apply change a setting. With no one to answer the dialog, as in a -p run, nothing changes, and hooks and permissions are never on the list. It reads user, project, and local settings, the MCP server names in ~/.claude.json, and your skill and agent folders, and cannot see managed settings. Reports speak in shares of cost, not dollars. A command hook appends each finished day's totals to ~/.claude/tokendoctor/history.jsonl. The status line fix needs jq.
The marketplace name is tokendoctor, and it lists this one plugin, from the repository. Where tokens go, and settings that waste them, are why this page files it under usage. leaks ranks the avoidable spend in the last 7 days of transcripts and draws a strip while a leak is happening. context-budget draws the session's context by category and asks before a settings file is written. This one is a doctor's visit rather than a gauge: a report of where tokens went, 33 checks of your settings against Claude Code's documentation, each linked to its page, and up to five proposed changes backed by your own numbers. Each change is shown in a dialog first, and a file it changes is backed up. The hooks module adds the optimize tools, listed behind ToolSearch until /tokendoctor:optimize loads them.
Demo
What it hooks into
session.startWhen a session startstool.checkA Claude Code eventtool.callAround a tool call, where it can hold one
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Hooks 1
SessionStart · startupnode
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- rsaryev
- Category
- Usage
- Marketplace
- tokendoctor
- Version
- 0.5.0
- License
- MIT
- Repo stars
- 11
- Last change
- 2026-10-26
- Language
- JavaScript
- Files
- 97