claude-dashboard-0.1.2 is not a library.
Claude Code Dashboard
A Rust TUI tool that reads your Claude Code .claude data directory and renders monthly/yearly usage reports right in your terminal.
Features
- Overview — all-time project count, total sessions, messages, token consumption, model usage breakdown, programming language distribution
- Monthly report — daily activity histogram, per-model tokens, per-project token table for any month
- Yearly report — monthly aggregated activity, yearly token breakdown by model and project
- Language detection — scans project directories (up to depth 3) to show your programming language mix
- Keyboard-driven — navigate with tabs, arrow keys, and vim-style scrolling
Installation
The binary will be at target/release/claude-dashboard (or .exe on Windows).
Usage
# Uses %USERPROFILE%\.claude (Windows) or ~/.claude (Unix) by default
# Override the data directory
Controls
| Key | Action |
|---|---|
1 2 3 or Tab |
Switch between Overview / Monthly / Yearly |
← → |
Previous / next month or year |
↑ ↓ or j k |
Scroll tables |
PgUp PgDn |
Page scroll |
r |
Refresh data from disk |
q or Esc |
Quit |
How it works
Reads three data sources from your .claude directory:
stats-cache.json— aggregate stats (daily activity, model tokens, session counts)history.jsonl— user message history, used to map session IDs to real project pathsprojects/<encoded>/— per-project session JSONL files with detailed token usage per assistant message
Language detection runs in a background thread using walkdir to scan project directories for file extensions.
Requirements
- Rust 1.70+
- A
.claudedirectory with Claude Code usage data (generated automatically by Claude Code)