{"repo":"tigerless-labs/cost-xray","free":true,"listed":false,"github":"https://github.com/tigerless-labs/cost-xray","clone":"git clone https://github.com/tigerless-labs/cost-xray.git","description":"See what Claude Code and Codex actually send to the API — and what each part costs.","language":"Python","stars":479,"topics":["claude-code","codex-cli","cost-tracking","observability","prompt-caching","token-counting","proxy"],"license":"MIT","category":"networking-infra","readme_excerpt":"cost-xray 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) Requirements - A supported coding agent — Claude Code or Codex - macOS or Linux - No API keys, no account, no config changes to your agent — capture is a transparent local hop Install 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: Capture runs as a background service (auto-start on boot, self-healing, port-adaptive) a","default_branch":null,"files":null,"tree":[],"storefront":"/r/tigerless-labs","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tigerless-labs/cost-xray/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}