Discover and explore top open-source AI tools and projects—updated daily.
nateherkaiAnalyze Claude Code token usage and costs locally
New!
Top 94.9% on SourcePulse
This project provides a local dashboard for analyzing Claude Code's token usage and costs. It transforms raw JSONL transcripts into detailed analytics, including per-prompt costs, tool/file heatmaps, and session insights. Designed for Claude Code users, it offers a privacy-first, local-only solution to understand and optimize AI interaction expenses without sending any data externally.
How It Works
The dashboard scans Claude Code's session transcripts stored locally. It processes these logs using Python's standard library, maintaining a local SQLite cache. A built-in HTTP server then serves this data to a frontend built with vanilla JavaScript and ECharts, enabling live updates via server-sent events. This architecture prioritizes privacy and avoids external dependencies or complex build processes, offering a self-contained analytics solution.
Quick Start & Requirements
python3 cli.py dashboard.pip install or Node.js is required.Highlighted Details
Maintenance & Community
The repository includes a CONTRIBUTING.md file outlining development guidelines. No specific details regarding maintainers, sponsorships, or community channels (like Discord/Slack) are provided in the README.
Licensing & Compatibility
The project is released under the MIT license, which generally permits commercial use and integration into closed-source projects without significant restrictions.
Limitations & Caveats
Users should consult docs/KNOWN_LIMITATIONS.md for specific caveats, particularly regarding the "Skills" tab. Running multiple instances concurrently can lead to SQLite database conflicts. The accuracy note highlights potential discrepancies if compared to tools that sum every raw log entry rather than deduping API messages.
5 days ago
Inactive