Claude Code Decoder
“How much did my Claude Code session actually cost?” Paste the .jsonl from ~/.claude/projects/<hash>/<session>.jsonl (or drag-drop the file). Get a full breakdown: per-model, per-tool, cumulative timeline, cache savings, insights.
Every byte parses in your browser. The page makes zero network calls on paste — the URL stays clean, your transcript stays private. Verify in the Network tab.
Decoder
Sample session is pre-loaded — click ✕ Clear sample and paste your own when ready.
Output cost is attributed to tool calls by proportional share of the turn's output tokens. Categories don't include input cost — input is shared across the whole turn and can't be cleanly split per tool.
| Model | Input | Output | Cache W | Cache R | Total | Share |
|---|---|---|---|---|---|---|
| Claude Sonnet 4.5 | $0.012 | $0.0065 | $0.056 | $0.027 | $0.102 | 100% |
| Tool | Calls | ~ Output tokens | Category |
|---|---|---|---|
| Read | 2 | 115 | read |
| Glob | 1 | 40 | read |
| Edit | 1 | 180 | write |
| Bash | 1 | 50 | execute |
How to find your sessions
Claude Code stores every conversation as a JSON-lines file at the path below. Each line is one event (user message, assistant turn with usage, tool result, etc.).
# macOS / Linux
ls ~/.claude/projects/
# Each directory under projects/ is a project (hash of the cwd).
# Inside, every session is a separate .jsonl file:
ls ~/.claude/projects/<hash>/
# → 01HX0Z1ABCDE.jsonl
# → 01HX0Z2FGHIJ.jsonl
# → ...
# Pick the session you want to analyze, cat its contents, paste here.
cat ~/.claude/projects/<hash>/01HX0Z1ABCDE.jsonl
# On Windows: %USERPROFILE%\.claude\projects\
The decoder accepts any subset of a session — partial paste works fine for spot-checking. If you upload a file the entire JSONL is parsed at once.
Where to go from here
Now that you know what your session cost on Claude, paste any prompt + see what it'd cost across 11 providers and your local rig.
Step-by-step guide to swap Claude Sonnet/Opus for a local model in your Claude Code workflow. Real commands.
Watch tokens stream at your hardware's speed, side-by-side with Claude. The visceral version of the math you just saw.
If the bill above stung — eight inputs → full rig + runtime + model recipe to swap out Claude entirely.