A desktop application for tracking Claude Code usage statistics, built with Tauri, React, and Rust.
Note: The data is parsed from local session files, not from the official Anthropic API. The statistics are for reference only and may differ from official billing data.
- Real-time Usage Tracking: Monitor token usage, costs, and message counts across all your Claude Code projects
- Today's Statistics: View daily usage since local midnight with timezone-aware calculations
- Project-level Analytics: Break down usage by individual projects with detailed statistics
- Burn Rate Monitoring: Track your current session's token consumption rate and projected hourly costs
- Model Distribution: Visualize usage across different Claude models with interactive pie charts
- Usage Trends: View historical usage patterns with 30-day trend charts
- Compact Mode: Minimal floating window for always-on-top monitoring without disrupting your workflow
- Session Window Tracking: Monitor the 5-hour rolling session window with time-to-reset countdown
Download the latest release for your platform from the Releases page.
| Platform | Format |
|---|---|
| Windows | .msi, .exe |
| macOS (Intel) | .dmg |
| macOS (Apple Silicon) | .dmg |
| Linux | .deb, .AppImage |
No installation required - just download and run:
| Platform | Format |
|---|---|
| Windows | *_windows_portable.exe |
| Linux | *_linux_portable.AppImage |
- Node.js 20+
- Rust (stable)
- Tauri CLI
# Clone the repository
git clone https://github.com/LyndonWangWork/Claude-Code-Usage-Tracker.git
cd Claude-Code-Usage-Tracker
# Install frontend dependencies
cd web
npm install
# Run development server
cd ..
npm run tauri devnpm run tauri build- Launch the application - The app will automatically detect your Claude Code data directory
- View Overall Statistics - See total costs, tokens, messages, and session metrics
- Browse Projects - Switch to the Projects tab to see per-project breakdowns
- Toggle Compact Mode - Click the compact button to switch to a compact floating window
- Pin to Top - Use the pin button to keep the window always on top
The application reads usage data from Claude Code's local storage:
- Default location:
~/.claude/projects/ - Custom location: Set via
CLAUDE_CONFIG_DIRenvironment variable
Releases are automated via GitHub Actions. To create a new release:
- Update version in
src-tauri/tauri.conf.jsonandsrc-tauri/Cargo.toml - Commit the version changes
- Create and push a version tag:
git tag v0.1.0 git push origin v0.1.0
- GitHub Actions will automatically build for all platforms
- A draft release will be created with the build artifacts
- Review the draft release and publish when ready
- Frontend: React, TypeScript, Tailwind CSS, Recharts
- Backend: Rust, Tauri v2
- Build: Vite, Cargo
Special thanks to the Claude Code Usage Monitor project by Maciek-roboblog for inspiration and reference implementation.