WeSearch

Show HN: Claude Code's $200 plan is a 17× subsidy on the raw API

·3 min read · 0 reactions · 0 comments · 16 views
#technology#api#cost-analysis
Show HN: Claude Code's $200 plan is a 17× subsidy on the raw API
TL;DR · WeSearch summary

A recent analysis of Claude Code's API usage reveals significant costs associated with re-reading context. The study found that 64% of the billing is due to re-reading previously sent context, leading to a total monthly cost of approximately $3,371. Caching plays a crucial role in reducing costs, as without it, expenses could soar to over $22,000.

Key facts
About this source

Hacker News (Newest) files mainly under programming. We currently carry 5,257 of its stories.

Original article
GitHub
Read full at GitHub →
Opening excerpt (first ~120 words) tap to expand

claude-code-token-xray Reverse-engineer a month of your own local Claude Code logs (~/.claude/projects/*/*.jsonl) into where the tokens, time, and cost actually go — and run it on yours. Reads only local logs; nothing is sent anywhere. What it found (one month of my own logs — 181 sessions, 25,564 model calls): You don't pay to generate, you pay to re-read. ~29M unique tokens → 4.35B billed (~150×), because every turn re-sends the whole ~173K-token context. The bill is 84% input / 16% output — and re-reading the same context is 64% of it. The biggest line is the one you never see: hidden reasoning is 84% of output and ~60% of everything re-read. ~$3,371 for the month at Opus 4.7 list rates. Caching already serves 98% of input — and re-reading is still 64% of the bill.

Excerpt limited to ~120 words for fair-use compliance. The full article is at GitHub.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from GitHub