Cost Xray — Development skill for Claude Code
See what Claude Code and Codex actually send to the API — and what each part costs.
How to install Cost Xray
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open tigerless-labs/cost-xray and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Cost Xray does
See what Claude Code and Codex actually send to the API — and what each part costs.
Alternatives in Development
- Nexting — Remote control for Claude Code, Codex, Grok, and Cursor on Mac or PC 1.3k ★
- Herdr Reviewr — Review your coding agent's diff in a terminal pane and send line comments back to Claude Code, Codex, OpenCode 823 ★
- Opik Openclaw — 🦞 Official plugin for OpenClaw that exports agent traces to Opik 725 ★
README
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
Related Skills
Argus Code
See what Claude Code actually did. Local-first observability for every session: which tools ran, what each sub
Agent Cost Dashboard
Interactive web dashboard to monitor and analyze your coding agent API costs.
Claude API Cost Optimization
💰 Optimize your Claude API usage to save 50-90% on costs with batching techniques and efficient request manag
Agent Pigeon
See how your coding agent actually worked. A tiny local CLI that turns Claude Code / Codex sessions into fligh
Wirescope
A transparent analytical proxy for the Claude Code & Codex CLIs — see the real per-turn cost, prompt-cache war
Tokens Reset Dashboard
See how much of your Claude Code, Codex and Grok Build plan you have used and when it resets. One command, 100
Related Agents
API Cost Scanner
Scans codebase for AI/API cost optimization opportunities including model usage, token estimates, caching stra
Cost Governor
Track aggregate token spend and API costs across all agent operations. Enforce budget constraints, detect cost
Rust API Ergonomics Reviewer
Reviews Rust library/framework code from the downstream consumer's perspective. Focuses on API clarity, idioma

