Cost Xray banner
tigerless-labs tigerless-labs

Cost Xray

Development community

Description

See what Claude Code and Codex actually send to the API — and what each part costs.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

cost-xray

See what your AI coding agent actually sends to the API — and what each part costs.

agents capture local only license MIT

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
cost-xray Home: every captured session grouped by agent · project · session, with per-row turns, cache-hit %, tokens, and cost
Drill a session — context-window occupancy (top) and per-source cost, down to each MCP server (bottom)
cost-xray Detail: context-window occupancy this turn (top) and cumulative per-source cost drilled down to each MCP server (bottom)

Requirements