I made my Claude Code logs print a store receipt. $8.3k of tokens at API prices on a $200/mo plan
retained text
I wanted to know what my Max 20x plan actually covers, and reading JSONL by hand got old fast. So I had Claude Code build a thing that turns the logs into a thermal-printer receipt. That's my real one, all time. Claude Code alone is $8,313 at API list prices (the rest is \~$221 of OpenCode). Four months x $200 = $800, so on paper I "saved" $7.7k. Fun number, not real money: a subscription isn't billed per token, this is just what the same traffic would cost on the API. The fun counters were the part I didn't expect: * it said "You're absolutely right" exactly **once**. I don't believe it either. "Perfect!" 15 times * I interrupted it 94 times, 3 prompts paid rage tax * 297 prompts sent between midnight and 5am, longest session 17h 27m. I'm fine **Try it:** `npx github:glmn-ai/vibereceipt` (not on npm yet, so it has to be the github: form). It reads the logs Claude Code, Codex CLI and OpenCode already keep on your disk, prints the receipt line by line and saves a PNG. `--plan max20` adds the YOU SAVED line, `--short` gives a 4:5 image, `--demo` if you just want to look. **Privacy:** zero dependencies and no network code at all, no http/https/net/fetch. Don't trust me, grep `dist` (the README has the one-liner, CI runs it on every push). Prompt text is reduced to a timestamp and a rage yes/no the moment it's read. No project names unless you pass `--projects`. **How Claude Code was used:** it wrote the code, all three commits are co-authored by it: the log scanners, the receipt layout, a tiny PNG encoder on top of node:zlib, rendering a bitmap font (Spleen) pixel by pixel so there are no deps, and the tests. The parsers and price table come from the core package of nsq, our open-source agent supervisor. **What I learned:** * counting Claude Code tokens naively overcounts. It writes one log line per content block, and resumed or forked sessions copy old messages. Merge by message id or your number is inflated * money in floats drifts, so it's integer picodollars, rounded once for display * models it can't price (local, resellers) show "no price", never $0. My receipt has 8,605 such requests (884M tokens) and they're left out of the total instead of quietly counted as free Free, MIT, I built it (we're NeuroSquad, the nsq people). Repo: [https://github.com/glmn-ai/vibereceipt](https://github.com/glmn-ai/vibereceipt) Post your receipt in the comments. Curious if anyone beats 17 hours.
document fetched 2026-10-13 00:41 · canonical https://reddit.com/r/ClaudeCode/comments/1x4aqyi/i_made_my_claude_code_logs_print_a_store_receipt