What it is
Tokendoctor answers a plain question: where did my Claude Code tokens go? It reads your session history, shows the spending and proposes settings changes, with an undo command if a change makes things worse. The honest detail is in the benchmarks. The headline says up to 38% less, but on a week of test work the medians were 11 to 21% lower and single runs went from 40% lower to 17% higher, so the result depends on the task. Treat it as a tool for measuring your own usage rather than a promised saving. It has limits you should know about: it cannot see managed settings, and its deny rules are best-effort for search tools. The MIT repo is small, with 44 stars on November 6, 2026.
Who it's for
- Claude Code users who keep hitting usage limits
- Developers paying per token who want to find waste
- Anyone curious what their sessions actually spend tokens on
Requirements
Requirements
- Claude Code
- Session history on your machine to analyse
Setup
Step 1
bashclaude plugin marketplace add rsaryev/tokendoctorStep 2
bashclaude plugin install tokendoctor@tokendoctor
إضافة لـ Claude Code تقرأ جلساتك وتبيّن أين تذهب الرموز وتقترح تغييرات في الإعدادات يمكن التراجع عنها.
Examples
Audit your setup
Prompt/tokendoctor:auditExpected output: Checks your setup for token waste.
Open the dashboard
Prompt/tokendoctor:dashboard [days]Expected output: Shows spending over a chosen number of days.
Apply optimizations
Prompt/tokendoctor:optimize [focus]Expected output: Proposes changes, optionally for one focus area.
Pros & cons
Pros
- Pro:Changes can be undone
- Pro:Publishes mixed benchmark results instead of only the best one
- Pro:MIT licence
Cons
- Con:The up to 38% saving is the author's own measure
- Con:Single benchmark runs range from 40% lower to 17% higher cost
- Con:Cannot see managed settings, and deny rules are best-effort for search tools