Professional Claude Code CLI usage monitoring and cost analytics
Features • Installation • Usage • Development • Contributing
CCTracker monitors Claude Code CLI usage and costs in real-time. Built with React and Electron, it provides comprehensive analytics for developers using the Claude Code command-line tool.
Note: This monitors the Claude Code CLI (claude.ai/code), not the Claude.ai web interface.
- 📊 Real-time Monitoring: Live tracking of Claude Code CLI usage and costs
- 💰 Multi-currency Support: View costs in USD, EUR, GBP, JPY, CNY, MYR with live rates
- 📈 Advanced Analytics: Usage patterns, model efficiency, anomaly detection
- 🌍 Internationalization: 6 languages with proper localization
- 🎨 Professional UI: Light/dark themes + 4 Catppuccin variants
- 📤 Data Export: CSV, JSON, Excel export with flexible filtering
- 🔒 Privacy-first: All data stored locally, no cloud sync
Get the latest release from GitHub Releases:
- macOS: Download
.dmg
file - Linux: Download
.deb
or.tar.gz
file
- Claude Code CLI: Must be installed and configured (claude.ai/code)
- Operating System: macOS 10.14+ or Linux (Ubuntu 18.04+)
git clone https://github.com/miwi-fbsd/CCTracker.git
cd CCTracker
npm install
npm run build
npm start
- Install & Launch: Download and install CCTracker
- Auto-detection: CCTracker automatically monitors
~/.claude/projects/
for Claude CLI usage - Configure: Set language, theme, and currency in Settings
- Monitor: View real-time usage and costs as you use Claude Code CLI
- Dashboard: Real-time cost tracking and usage analytics
- Projects: Detailed project-level analysis and trends
- Export: Generate CSV/JSON reports for external analysis
- Settings: Customize themes, language, and currency preferences
- Frontend: React 18 + TypeScript 5.8
- Desktop: Electron 37
- Build: Webpack 5 + Tailwind CSS
- Charts: Recharts for data visualization
- i18n: react-i18next for 6 languages
- File Monitoring: Chokidar for real-time JSONL parsing
Claude Code CLI → File Monitor → Cost Engine → React Dashboard
(JSONL) (Chokidar) (Analytics) (Electron)
git clone https://github.com/miwi-fbsd/CCTracker.git
cd CCTracker
npm install
npm run dev # Development with hot reload
npm run build # Production build
npm run package # Create distributable
npm run dev
- Start development servernpm run lint
- ESLint checkingnpm run type-check
- TypeScript validationnpm test
- Jest test suite
- Fork the repository and create a feature branch
- Follow code standards: ESLint, TypeScript strict mode, React best practices
- Add tests for new functionality
- Submit a pull request with clear description
- TypeScript: Strict mode enabled, comprehensive type coverage
- React: Modern hooks-based components with Context API
- Accessibility: WCAG 2.1 Level AA compliance
- i18n: All user-facing text must be translatable
Not detecting Claude CLI usage?
- Verify Claude Code CLI is installed (claude.ai/code)
- Check file permissions for
~/.claude/projects/
Cost calculations incorrect?
- Verify currency rates are updated
- Check cache token calculations
App won't start?
- Ensure Node.js 18+ is installed
- Clear and reinstall:
rm -rf node_modules && npm install
- Local-only: All data stored locally, no cloud sync
- Read-only: Only reads Claude CLI logs, never modifies
- Sandboxed: Electron context isolation enabled
- Privacy-first: Your usage data never leaves your device
MIT License - see LICENSE file for details.
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Built for the Claude Code CLI community
⭐ Star this repo if you find it helpful!