Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By BayramAnnakovv0.1.0MITIn 1 marketplace
Shows where your Claude Code tokens and dollars are leaking, ranked by estimated savings, with one fix to make first.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Find where your Claude Code tokens are leaking — and what to fix first.
A Claude Code skill that audits your local Claude Code usage, surfaces the highest-$-impact leaks, and tells you which one to fix this week. All analysis is local — transcripts never leave the machine.
| Leak | Typical impact |
|---|---|
| Opus on simple turns | Up to 5× overspend on short lookups |
| Context rot | Turns past 400k tokens waste dollars + quality |
| CLAUDE.md bloat | Every turn pays for every extra token; target <2k tokens |
| Hook output re-injection | Big SessionStart hooks re-feed on every session |
| Skill description overhead | 149 installed skills = 149 descriptions × every turn |
| Bash anti-patterns | cat/head/find/grep dump full output; native tools stream |
| Tool-schema dumping | With tool search OFF, all MCP schemas load every turn (~20k tok) |
| Cache miss storms | Mid-session CLAUDE.md edits kill cache |
| Redundant file reads | Same file Read 3+ times = rewind candidate |
Each detection comes with a ballpark weekly $ saving so you can prioritize. Heuristics are grounded in:
In Claude Code:
/plugin marketplace add BayramAnnakov/token-audit-skill
/plugin install token-audit@token-audit-skill
Then:
/token-audit
git clone https://github.com/BayramAnnakov/token-audit-skill
cp -r token-audit-skill/skills/token-audit ~/.claude/skills/
Invoke in Claude Code with /token-audit.
git clone https://github.com/BayramAnnakov/token-audit-skill
cd token-audit-skill
python3 skills/token-audit/scripts/audit.py --days 7
Outputs a JSON report.
ccusage (fetched automatically via npx, no global install required)~/.claude/projects/ and ~/.claude/settings.json (yours)If ccusage is unavailable, the audit proceeds without baseline spend totals; detectors still work.
Token Audit — last 7 days
Spend (ccusage)
Total: $N at API list pricing (reference only — you're on a flat subscription)
Models: Opus 80% · Sonnet 19% · Haiku 1%
Top bottlenecks (where to look first)
🔴 Single session: <project>/<session-id> → ~27% of this week's waste
• 1,500+ turns past the 400k context-rot threshold, peak ~800k
• 2,000+ Opus turns with <1k output (Sonnet would suffice)
• FIX: compact proactively every ~2h with a scope hint
🔴 Project: <project> → ~48% of this week's waste
• Add `"model": "claude-sonnet-4"` to this project's .claude/settings.json
• Escalate to Opus only for planning / hard reasoning
🔴 File: <project>/CLAUDE.md → 19% of this week's waste
• ~9k tokens, paid on every turn. Target: ≤2k (Anthropic's 200-line recommendation)
• Move command recipes and playbooks into @-referenced files
Top category leaks
🟡 Skill descriptions total ~9k tok (per-turn tax)
🟡 Hundreds of Bash calls using cat/head/find/grep where native tools exist
🟢 Same file Read 3+ times in several sessions (rewind candidate)
One fix this week: add Sonnet default to the top project's settings.json.
Numbers in the example are illustrative. Your report uses your real data from ~/.claude/projects/ and ccusage.
npx ccusage@latest fetch.They're ballparks, not invoices. Rankings are reliable; absolute dollar figures have two known sources of inflation:
Use the estimates to prioritize, not to predict your next invoice. For authoritative spend, run ccusage daily.
7-day copy clicks
npx claudepluginhub bayramannakov/token-audit-skill --plugin token-auditBuilt from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
Plugins from other owners that cover similar ground