▲ 572 today6.3k starsPythonHN ×3
Cost-Xray reveals hidden token costs of Claude and Codex
What is cost-xray?
The tool sits between your coding agent and the API, captures the exact request payload and breaks down each token’s dollar value by source, system prompts, tool schemas, cache reads, and more. It shows not just the total cost of a turn, but why every token was charged.
Who it is for
Anyone building or budgeting AI-assisted code should use it to stop surprise bills and trim unnecessary prompt baggage.
How to try it
curl -fsSL https://raw.githubusercontent.com/tigerless-labs/cost-xray/master/install.sh | bash