Claude Code usage tracking by LangWatch - See what your Claude Code sessions actually cost

byβ€’
Track Claude Code usage: cost, cache, session replay. Run `npx langwatch claude` once. Every session gets cost with cache reads/writes as separate token classes, every bash and MCP call as a span, theoretical vs billed for your Max plan, and a full terminal replay in the UI. Works for Codex too.

Add a comment

Replies

Best
This feels especially useful as AI coding workflows become part of everyday engineering. Congrats πŸ™ŒπŸ»

Β it is right!

The one-command setup makes trying it out much less intimidating. 😊

Β must have right now!

Congrats on the launch! Seeing which Claude Code session actually burned the budget instead of guessing would be a relief, and the cache reads split out as their own token class is a thoughtful detail. How would this work for a small team, can we see everyone's sessions in one shared view or is it one workspace per developer?

Β both options are available. There is the possibility to work as a team view teams sessions as well as an admin dashboard to keep more control over all

congrats on the launch! Does this use any bandwidth during the session? Especially long ones

Β thanks! Nope langwatch doesn’t sit in between

I might have missed this, but the cache-hit view is the part I’d check first. Claude Code costs feel random until you can separate cache misses from actual model usage.

Interesting. What about the agent-to-agent usage tracking?

the rate-stamping thread above is the right worry for pricing, but I've got a different edge case: mixed fleets. I run some agent work through Claude Code/API and some through a local model on a Mac mini for anything that doesn't need frontier quality. Does LangWatch have any concept of a zero-cost or self-hosted "model" for sessions that route through a local endpoint, so those sessions still show up with token/call counts in the same dashboard, just without a real dollar figure attached? or does the whole pipeline assume every session maps to a paid API/plan rate somewhere?