Claude Code usage

Token Dashboard

Turns Claude Code JSONL transcripts into local cost analytics and token hotspot views.

761 stars 208 forksUsage & cost trackers Source

Install

From source
git clone https://github.com/nateherkai/token-dashboard.git

From the README

Token Dashboard

A local dashboard that reads the JSONL transcripts Claude Code writes to ~/.claude/projects/ and turns them into per-prompt cost analytics, tool/file heatmaps, subagent attribution, cache analytics, project comparisons, and a rule-based tips engine.

Everything runs locally. No data leaves your machine — no telemetry, no API calls for your data, no login.

What this is useful for

- Seeing which of your prompts are expensive (surprise: they usually involve large tool results).
- Comparing token usage across projects you've worked on.
- Spotting wasteful patterns — the same file read twenty times in a session, a tool call returning 80k tokens.
- Understanding what a "cache hit" actually saves you.
- If you're on Pro or Max, confirming you're getting your money's worth in API-equivalent dollars.

Prerequisites

- Python 3.8 or newer — already installed on macOS and most Linux. On Windows: winget install Python.Python.3.12 or download from python.org.
- Claude Code — installed and with at least one session run. The dashboard reads those sessions. If you just installed Claude Code and haven't used it yet, run at least one prompt first.
- A web browser. Any modern one.

No pip install. No Node.js. No build step.

Quickstart
On Windows, if python3 isn't on your PATH, substitute py -3 for python3 in every command below.

The command:
1. Scans ~/.claude/projects/ (first run can take 20–60 seconds on a heavy user's machine).
2. Starts a local server at http://127.0.0.1:8080.
3. Opens your default browser to that URL.

Leave it running; it re-scans every 30 seconds and pushes updates live. Stop with Ctrl+C.

Where the data comes from

Claude Code writes one JSONL file per session here:

The dashboard never modifies those files — it only reads them and keeps a…
Read the full README on GitHub

Details

Language
Python
License
MIT
Last updated
20 April 2026

FAQ

What is Token Dashboard?

Turns Claude Code JSONL transcripts into local cost analytics and token hotspot views. It is a usage for Claude Code, from nateherkai/token-dashboard on GitHub.

How do I install Token Dashboard?

Clone nateherkai/token-dashboard from GitHub and follow the setup steps in its README.

Is Token Dashboard popular?

nateherkai/token-dashboard has 761 GitHub stars and 208 forks. It was last updated on 20 April 2026.

More usage & cost trackers

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