token-dashboard-claude-analytics — Claude Code skill: install & setup
Inspects session logs on your computer to map token consumption per prompt. Useful for spotting heavy prompts and managing API expenses.
npx skills add reason-machines/trending-skills --skill token-dashboard-claude-analytics -a claude-codeWhat token-dashboard-claude-analytics does
This skill guides the assistant to inspect project logs written to ~/.claude/projects/. It scans raw JSONL records, measures prompt expenditure, and indexes details into a local SQLite database at ~/.claude/token-dashboard.db. Network access is unnecessary because every query runs strictly on the host.
The tool spins up a browser UI on port 8080 and provides CLI commands for quick terminal summaries. It highlights repetitive file reads, cache performance, and project comparisons based on rates defined in pricing.json. Running the dashboard requires Python 3.8+; without the runtime, the server fails to launch.
What it helps with
- track token expenses for individual prompts
- identify heavy tool invocations across sessions
- check prompt cache hit percentages
- aggregate spend comparisons across multiple codebases
Example prompts for the agent
- show me my Claude Code token usage
- find expensive prompts in Claude Code
- set up the local cost interface for my sessions
How to install token-dashboard-claude-analytics
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill token-dashboard-claude-analytics -a claude-code2Manually: put the files in place
~/.claude/skills/token-dashboard-claude-analytics/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/token-dashboard-claude-analytics/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill token-dashboard-claude-analytics -a codex2Manually: put the files in place
.agents/skills/token-dashboard-claude-analytics/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill token-dashboard-claude-analytics -a cursor2Manually: put the files in place
.cursor/skills/token-dashboard-claude-analytics/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install reason-machines/trending-skills token-dashboard-claude-analytics2Manually: put the files in place
.github/skills/token-dashboard-claude-analytics/SKILL.md1Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill token-dashboard-claude-analytics -a gemini-cli2Platform CLI
gemini skills install https://github.com/reason-machines/trending-skills --path skills/token-dashboard-claude-analyticsManually: put the files in place
.devin/skills/token-dashboard-claude-analytics/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add reason-machines/trending-skills --skill token-dashboard-claude-analytics -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about token-dashboard-claude-analytics
How to install token-dashboard-claude-analytics in Claude Code?
Run npx skills add reason-machines/trending-skills --skill token-dashboard-claude-analytics -a claude-code. The skill file installs to ~/.claude/skills/token-dashboard-claude-analytics/SKILL.md.
What does token-dashboard-claude-analytics do?
It teaches the agent how to launch and query an offline analytics UI that reads session transcripts directly from disk.
Does the dashboard require pip packages or Node.js?
No, it relies solely on Python 3.8+ and standard library modules without extra dependencies or build steps.