Ever wonder if you're overpaying for that $200/month Claude Max subscription? CCC analyzes your actual token usage from Cline VS Code extension logs to show you how much you would have paid if you were using Claude API calls instead. Discover your potential savings!
- Python 3.7.0 and above
- VS Code with Cline extension installed
- Some coding history with Cline
-
Clone the repository
git clone https://github.com/jeremysltn/CCC.git cd CCC
-
Install rich
pip install rich
-
Run the calculator
python CCC.py
- Check version:
python CCC.py --version
orpython CCC.py -v
- Export to SVG:
python CCC.py --export-svg
(saves report as SVG file) - Export to HTML:
python CCC.py --export-html
(saves report as HTML file)
The script analyzes logs from:
~/.vscode-server/data/User/globalStorage/saoudrizwan.claude-dev/tasks/
Each Cline project folder contains a ui_messages.json
file with detailed usage data.
- API pricing subject to change. Check Anthropic's official pricing for current rates.
- Comparisons with usage limits not included - Claude Max subscription plans have undisclosed usage limits.
Model | Input ($/MTok) | Output ($/MTok) | Cache Write ($/MTok) | Cache Read ($/MTok) |
---|---|---|---|---|
claude-sonnet-4 | $3.00 | $15.00 | $3.75 | $0.30 |
claude-opus-4 | $15.00 | $75.00 | $18.75 | $1.50 |
claude-3-7-sonnet | $3.00 | $15.00 | $3.75 | $0.30 |
claude-3-5-sonnet | $3.00 | $15.00 | $3.75 | $0.30 |
claude-3-5-haiku | $0.80 | $4.00 | $1.00 | $0.08 |
Found a bug or want to add a feature? Pull requests welcome!
MIT License - feel free to use and modify as needed.