Fable 5 burns tokens fast. I found an cost tracker for it A new open-source tool called cost-xray captures the actual local API traffic for AI coding agents Claude Code and Codex, attributing tokens and costs down to individual sources like system prompts, tool schemas, and MCP blocks. The tool installs as a transparent local proxy requiring no API keys or configuration changes, and provides a terminal UI that lets developers drill from session-level totals to per-call costs, including cache read/write splits. This granularity allows developers to see not just how much a coding session cost, but exactly which components drove those costs. See what your AI coding agent actually sends to the API — and what each part costs. Most usage tools read local logs. That shows the total cost of a call or session, but it misses the request-time context assembled before the model is invoked: system prompts, tool schemas, MCP blocks, tool results, cache reads/writes, and previous thinking blocks. cost-xray captures the actual local API traffic for Claude Code and Codex, then attributes tokens and dollars back to the sources inside the request. It shows not just how much a turn cost, but why it cost that much. Home — every session by agent · project · session, with token and dollar totals | Drill a session — context-window occupancy top and per-source cost, down to each MCP server bottom | - A supported coding agent — Claude Code https://github.com/anthropics/claude-code or Codex https://github.com/openai/codex - macOS or Linux - No API keys, no account, no config changes to your agent — capture is a transparent local hop curl -fsSL https://raw.githubusercontent.com/tigerless-labs/cost-xray/master/install.sh | bash The installer asks which agent s to capture — Claude Code, Codex, or both — and prompts even under curl … | bash . Skip the prompt e.g. CI : set COST XRAY AGENTS=claude|codex|all . Already cloned the repo? Run ./install.sh . Then open a new terminal and run claude / codex exactly as before — capture is automatic, no flags and no base-URL change. It's forward-only : runs started in that new shell are captured, not past history. Open the live TUI from anywhere: cx Capture runs as a background service auto-start on boot, self-healing, port-adaptive and doesn't change what your agent does, its results, or its cost — pause anytime with cx stop . See docs/install.md /tigerless-labs/cost-xray/blob/master/docs/install.md for systemd details, GUI agents Cursor base-URL setup , manual no-systemd mode, and troubleshooting. cx open the live cost-xray TUI from any directory cx status services' state, live ports, sessions captured cx stop stop monitoring — proxies down; agents run direct uncaptured cx start resume monitoring cx restart restart the proxies after a config change cx install re install — authoritative: installs the chosen agents, removes the rest cx uninstall remove services + shell wrappers keeps captured data cx is the whole CLI and works from any directory. Change port/upstream by editing ~/.cost-xray/env , then cx restart . ./run.sh