Product Thumbnail

Claude Code usage tracking by LangWatch

See what your Claude Code sessions actually cost

Open Source
Developer Tools
Artificial Intelligence
GitHub
Visit WebsiteSee on Product HuntGithubTwitter

Hunted byRohan ChaubeyRohan Chaubey

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.

Top comment

Hey Product Hunt, Manouk here, founder of LangWatch.

We built this because we run a fleet of coding agents ourselves and had no idea what they actually cost: subscriptions hide the number, and local trackers only see one machine.

You know what Claude Code costs you per seat. What you probably can't answer is which sessions burned the budget, which model did the work, or whether your cache was earning its keep. Today's token prices are heavily subsidised, and the teams who find out what they actually consume after prices move are the ones who get surprised.

This week we've added a new launch in LangWatch, which our dev-team is using day-in, day-out. You can now track your full Claude Code usage on LangWatch: every session, tokens spent throughout the month, cache hit analysis, bash commands, skills and MCP tool calls, with a full reproduction of your terminal right in the UI.

Getting started is one command:

npx langwatch claude 

From there, every session lands in LangWatch automatically:

Where the tokens go: cost per session and per model, with cache reads and writes accounted separately.

Theoretical vs billed: on a Max plan, see what your usage would have cost at API prices.

Every tool call: bash commands, file edits, skills, and MCP calls, each as a span with duration.

Terminal replay: step through the whole session in the UI, as it happened.

Works the same for Codex, Gemini CLI, and opencode.

Free for individual use.

Start tracking your own sessions

I'll be here all day, happy to answer anything, and genuinely curious what you'd want to see next in it.

Comment highlights

does the terminal replay work for headless/CI runs with no TTY, or does capturing the replay need an actual interactive session? we run a chunk of our agent work in CI and cost visibility there is usually the blind spot

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

Congrats on launch! Can it dig through my year worrh of session data to analyze my usage patterns retroactively, or does it start tracking only once installed?

Manouk's "we run a fleet of coding agents ourselves and had no idea what they actually cost" is the honest version of this. Same here — our answer was "we'll find out when the subsidies stop."

One push: cost per session can mislead. The number that changes how you route work is cost per outcome — per merged PR, per green CI run, per fix that actually held. A run that spends 3x on the expensive model and lands it first try beats a cheap model looping four times — but a per-session view shows the opposite, and quietly trains you to downgrade the model that was earning its price.

You're already logging tool calls as spansm that: span → the commit or test run itproduced. On the roadmap, or are you deliberately staying at the session boundary?

+1 to the immutable price-stamp point above, with a wrinkle: it has to cut both ways. Rates must never change historical reports by accident — but "what the new prices" is exactly the question the subsidy argument makes people ask. That's a deliberate re-price, not a mutation.

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?

This feels especially useful as AI coding workflows become part of everyday engineering. Congrats 🙌🏻

Congrats! How much overhead does the tracking introduce during long-running Claude Code sessions?

Congrats on shipping this! Finally a way to know exactly how much those late-night Claude Code sessions are costing me. My wallet thanks you already!

It would be interesting if LangWatch suggested ways to reduce costs based on previous usage.

Can the platform can identify inefficient prompting patterns across multiple sessions?

Watching an entire terminal session replay sounds surprisingly valuable for onboarding teammates.

the MCP tool calls as spans is the bit i want most. i drive a browser automation MCP from claude code all day and the screenshots are obviously the expensive part, except obviously is doing a lot of work in that sentence because i have no per-call number for any of it.

cache reads and writes counted separately is the other one, that is where the surprise usually hides.

great product! knowing the per-seat cost but not which sessions burned is a proper problem, especially as the costs keep rising. this is going to save me from getting broke!

This is such a killer feature for heavy users and big teams with distributed sessions leveraging multiple providers! Great work, @LangWatch !

Knowing exactly what each Claude Code session costs is a game changer. Congrats on the launch, this is awesome! 🚀

I'm bookmarking this. Comparing theoretical cost against what I'm actually billed on Max is something I've wanted for a while.

This feels like the equivalent of DevTools, but for AI-assisted development. Congratulations on the launch @manouk_dr

About Claude Code usage tracking by LangWatch on Product Hunt

See what your Claude Code sessions actually cost

Claude Code usage tracking by LangWatch launched on Product Hunt on July 30th, 2026 and earned 306 upvotes and 78 comments, placing #4 on the daily leaderboard. 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.

Claude Code usage tracking by LangWatch was featured in Open Source (68.7k followers), Developer Tools (516.7k followers), Artificial Intelligence (474.9k followers) and GitHub (41.3k followers) on Product Hunt. Together, these topics include over 228.3k products, making this a competitive space to launch in.

Who hunted Claude Code usage tracking by LangWatch ?

Claude Code usage tracking by LangWatch was hunted by Rohan Chaubey. A “hunter” on Product Hunt is the community member who submits a product to the platform — uploading the images, the link, and tagging the makers behind it. Hunters typically write the first comment explaining why a product is worth attention, and their followers are notified the moment they post. Around 79% of featured launches on Product Hunt are self-hunted by their makers, but a well-known hunter still acts as a signal of quality to the rest of the community. See the full all-time top hunters leaderboard to discover who is shaping the Product Hunt ecosystem.

Reviews

Claude Code usage tracking by LangWatch has received 4 reviews on Product Hunt with an average rating of 5.00/5. Read all reviews on Product Hunt.

Want to see how Claude Code usage tracking by LangWatch stacked up against nearby launches in real time? Check out the live launch dashboard for upvote speed charts, proximity comparisons, and more analytics.