Claude Code usage

Tokendoctor

Claude Code plugin: see where your tokens go, audit your setup against the docs, and tune settings with an approved diff

45 stars 5 forksUsage & cost trackers Plugin marketplace Source

Install

Install
claude plugin marketplace add rsaryev/tokendoctor

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/rsaryev/tokendoctor.git

From the README

tokendoctor

  The same Claude Code for up to 38% less

  See what your Claude Code use overpays, fix it, undo it any time. Runs on your machine.

  Website ·
  Install ·
  Changelog

There is no one pill. If your sessions rarely pass 400K tokens, the window changes nothing for
you; a summary that lands just before you finish can cost more than it saves; your models, effort
and work all move the number. So tokendoctor shows you yours first: /tokendoctor:sessions replays
your own sessions at smaller windows before anything changes.

      See
      /tokendoctor:sessions replays your own sessions at smaller windows and says what each would have saved, then where the tokens went.

      Fix
      /tokendoctor:optimize runs 31 checks against the docs and applies the changes you pick, each shown as a diff first.

      Slide
      /tokendoctor slide on: where Claude Code would summarize, old tool outputs go instead. No pause, the conversation stays word for word.

      Undo
      /tokendoctor undo lists every change tokendoctor made and puts any one back. No model call, no tokens.

  /tokendoctor:dashboard: every token by day, model, effort, main thread and each subagent, context size and project. One local file; this is the author's own.

Install

Update with claude plugin marketplace update tokendoctor and claude plugin update tokendoctor@tokendoctor, then restart Claude Code. To try it without installing, clone the repository and run claude --plugin-dir /path/to/tokendoctor.

Use

/tokendoctor is answered by the plugin itself, so it costs nothing. Tab completes the names
(window, slide, cache, effort, model, subagents, and /tokendoctor all for the rest) and
their values; /tokendoctor window 400k applies as typed, /tokendoctor window reset goes back to the
default,…
Read the full README on GitHub

Details

Language
TypeScript
License
MIT
Last updated
6 November 2026
Topics
claude-codeclaude-code-hooksclaude-code-plugincost-optimizationdeveloper-toolstoken-usagetokens

FAQ

What is Tokendoctor?

Claude Code plugin: see where your tokens go, audit your setup against the docs, and tune settings with an approved diff It is a usage for Claude Code, from rsaryev/tokendoctor on GitHub.

How do I install Tokendoctor?

Run claude plugin marketplace add rsaryev/tokendoctor, then follow the setup in the README.

Is Tokendoctor popular?

rsaryev/tokendoctor has 45 GitHub stars and 5 forks. It was last updated on 6 November 2026.

More usage & cost trackers

Browse the most popular Claude Code mods, all usage & cost trackers, or the skills and MCP server directories.