惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Simon Willison's Weblog
Simon Willison's Weblog
Help Net Security
Help Net Security
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
C
Cisco Blogs
C
CERT Recently Published Vulnerability Notes
NISL@THU
NISL@THU
L
LINUX DO - 热门话题
Security Latest
Security Latest
A
Arctic Wolf
G
GRAHAM CLULEY
月光博客
月光博客
S
Securelist
D
Docker
J
Java Code Geeks
T
Troy Hunt's Blog
T
Tenable Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
SecWiki News
SecWiki News
S
Security @ Cisco Blogs
量子位
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
LINUX DO - 最新话题
Recent Commits to openclaw:main
Recent Commits to openclaw:main
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
H
Heimdal Security Blog
The Hacker News
The Hacker News
博客园 - 三生石上(FineUI控件)
Application and Cybersecurity Blog
Application and Cybersecurity Blog
N
Netflix TechBlog - Medium
Vercel News
Vercel News
Forbes - Security
Forbes - Security
B
Blog RSS Feed
H
Hackread – Cybersecurity News, Data Breaches, AI and More
IT之家
IT之家
B
Blog
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
S
Secure Thoughts
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
Check Point Blog
云风的 BLOG
云风的 BLOG
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
L
Lohrmann on Cybersecurity
F
Full Disclosure
D
Darknet – Hacking Tools, Hacker News & Cyber Security
P
Proofpoint News Feed

Kyle Redelinghuys

How I Got the UK Global Talent Visa as a Software Engineer SrvMon: Self-Hosted Server Monitoring Built in Go Claude Cowork: Closing the Gap Between Coding and Knowledge Work Teaching a Transformer to Read DNA: How EabhaSeq Works Claude Code Agents & Subagents: What They Actually Unlock AI Agent Context Management: What I Built in Cont3xt Claude Agent SDK: Subagents, Sessions and Why It's Worth It Claude Code Pricing Guide: Which Plan Saves You Money OpenClaw: How I Built a Personal AI Operations Centre on Linux Claude Code Hooks: Automate Your AI Coding Workflow Have Anthropic Already Won the AI Race? Sonde: An AI Tool for Solving Complex Organisational Problems Open Sourcing EabhaSeq: Synthetic cfDNA for NIPT Research SoupaWhisper: Free SuperWhisper Alternative for Linux (Open Source)
I Built a Claude Code Cost Tracker - Was Max Worth It?
Kyle Redelinghuys · 2026-02-27 · via Kyle Redelinghuys

I Built a Cost Tracker for Claude Code to See If My Subscription Was Worth It

I Built a Cost Tracker for Claude Code to See If My Subscription Was Worth It

10 min read Members

I've been on Claude Max 20x for a while now, paying $200/month, and at some point I realised I had no real sense of whether it was actually good value. I was using Claude Code heavily across several projects, clearly burning through a lot of tokens, but whether I'd have spent more or less on pay-as-you-go API access was completely opaque to me. Anthropic's console gives you high-level API usage figures but nothing per-project, nothing per-session, and nothing that tells you where the money actually went within a given piece of work.

The data is all there though. Claude Code writes detailed JSONL logs to ~/.claude/projects/ after every API call - every request, every token count, every model used, timestamped and structured. It just sits there, completely invisible unless you go digging through flat files manually. So I spent a weekend building cctrack, a single Go binary that parses those logs and surfaces everything in a real-time dashboard. I'll share the full code and GitHub repo later in the post, but first - the answer to my original question, because the numbers are pretty stark.

What the numbers actually showed

This month my Claude Code usage across all projects has cost $1,428.62 at API pay-as-you-go rates, across 755.7 million tokens, with the month projected to finish at $1,538.51. I'm paying $200/month for Max 20x. That's roughly seven times the subscription cost in equivalent API spend, which settles the "is this worth it" question pretty definitively. And that's Claude Code alone - Max also covers claude.ai usage, so the real value gap is even wider than that number suggests.

The cost breakdown was the first revelation. Of that $1,428 total, Cache Read accounts for $974.93 - 63% of spend. Cache Write is $542.32 (34%). Actual output tokens, the ones generating the responses I'm reading, are $64.75 (4%). Input is essentially nothing at $3.52. The overwhelming majority of what I'm spending on is caching infrastructure, not generation. Completely invisible without something surfacing it.

The model split gave me the most pause. Opus accounts for 90% of spend - $1,278.38 across 74 sessions. Haiku is $139.78 across 36 sessions, Sonnet just $2.39 across 24 sessions. cctrack's savings calculator is fairly blunt about the implication: switching my Opus sessions to Sonnet could save approximately $1,022.70 per month at API rates. I've been defaulting to Opus without much thought for most sessions, and while it genuinely is better for the complex architectural work I do, seeing that figure made me think more carefully about which sessions actually need it versus which ones I'm running on Opus out of habit. I've written about Claude Code model selection and pricing before, and this data gave me a much more grounded view on those tradeoffs than anything I had previously.


The rest of this post covers how cctrack is built in detail - the incremental JSONL parsing system, the SQLite schema, the embedded Vue SPA, the WebSocket real-time updates, and the cost-weighted token breakdown that makes the donut chart actually useful. Full source code and GitHub repo at the end.


This post is for subscribers only

Sign up to read the post and as well as all other member only posts. Subscribing only takes a few seconds and will give you immediate access.

Subscribe now

Already have an account? Log in