Show HN: Cost-xray – per-token cost attribution, by tool, skill, prompt and more
Category: devtools
Tags: ai-cost-tracking, mitm-proxy, developer-tools
Score: 7.5/10 (Innovation: 7, Technical: 8, Documentation: 8, Utility: 7)
cost-xray is a local MITM proxy that captures and attributes API costs for AI coding agents like Claude Code and Codex down to the individual tool call and token source. It solves a real gap that log-based tools miss—revealing the hidden cost of system prompts, tool schemas, and MCP servers—and presents it in a live TUI dashboard.
Target audience: backend devs, devops, data engineers
Repository: https://github.com/tigerless-labs/cost-xray · Python · MIT · 117 stars
View on Hacker News