Skip to content
/ CCC Public

Analyze your actual Claude Code 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.

License

Notifications You must be signed in to change notification settings

jeremysltn/CCC

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CCC (Cline Claude Cost)

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!

🛠️ Requirements

  • Python 3.7.0 and above
  • VS Code with Cline extension installed
  • Some coding history with Cline

🚀 Quick Start

  1. Clone the repository

    git clone https://github.com/jeremysltn/CCC.git
    cd CCC
  2. Install rich

    pip install rich
  3. Run the calculator

    python CCC.py

🎯 CLI Options

  • Check version: python CCC.py --version or python 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)

📊 Sample Output

CCC Demo

📁 Where it looks

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.

⚠️ Important Notes

  • 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.

💰 Supported Models

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

🤝 Contributing

Found a bug or want to add a feature? Pull requests welcome!

📝 License

MIT License - feel free to use and modify as needed.

About

Analyze your actual Claude Code 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.

Topics

Resources

License

Stars

Watchers

Forks

Languages