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

推荐订阅源

人人都是产品经理
人人都是产品经理
T
Threatpost
Google DeepMind News
Google DeepMind News
WordPress大学
WordPress大学
Recorded Future
Recorded Future
小众软件
小众软件
N
Netflix TechBlog - Medium
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hackread – Cybersecurity News, Data Breaches, AI and More
L
LangChain Blog
博客园 - 聂微东
美团技术团队
F
Fortinet All Blogs
I
InfoQ
U
Unit 42
酷 壳 – CoolShell
酷 壳 – CoolShell
阮一峰的网络日志
阮一峰的网络日志
The Cloudflare Blog
罗磊的独立博客
Stack Overflow Blog
Stack Overflow Blog
J
Java Code Geeks
S
SegmentFault 最新的问题
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
GbyAI
GbyAI
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
H
Help Net Security
B
Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
aimingoo的专栏
aimingoo的专栏
C
Check Point Blog
Jina AI
Jina AI
The Register - Security
The Register - Security
Hugging Face - Blog
Hugging Face - Blog
Microsoft Azure Blog
Microsoft Azure Blog
博客园 - 叶小钗
Recent Announcements
Recent Announcements
D
DataBreaches.Net
IT之家
IT之家
雷峰网
雷峰网
Y
Y Combinator Blog
W
WeLiveSecurity
P
Proofpoint News Feed
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
量子位
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 司徒正美
月光博客
月光博客
The Hacker News
The Hacker News

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