- AI tools
- AI consulting
How to Control Claude Code Costs and Prove Its ROI
Anthropic's new Control, Track, Prove framework for Claude Code spend. A practical guide for engineering leaders to manage AI coding costs and show value.

Vivek Gupta · IIT Delhi alumnus
· 5 min read
Ask most engineering managers in an Indian IT services or product company how much their team spent on Claude Code or a similar AI coding tool last month, and you'll get a number from the finance team's invoice. Ask them what the company got for that spend, and you'll usually get a shrug. That gap, between a clear bill and an unclear return, is exactly what Anthropic tried to close on October 27, with a detailed guide on managing Claude Code costs and proving ROI on Google Cloud. The framework behind it is worth adopting even if your team runs Claude Code, Copilot or any other agentic coding tool on a different cloud.
Why AI coding costs are harder to predict than seat-based tools
A Microsoft 365 Copilot license costs the same whether someone drafts one email or fifty. Claude Code doesn't work that way. It's billed by tokens, and an agentic coding session burns through far more tokens than a chat conversation, because the tool is reading files, running commands and reasoning across multiple steps of a task, not just answering a question. A senior engineer using it to refactor a large module on an expensive model can rack up a bill that looks nothing like a colleague using it to fix a typo. Anthropic's guide organizes the response to this around three levers: Control, Track and Prove. All three apply whether you have five engineers using AI tools or five thousand.
Control: set guardrails, not hard walls
The instinct when a bill surprises you is to cap everyone's usage tightly. Anthropic's own advice is the opposite: high-cost sessions are often your power users doing genuinely valuable work, so blunt caps punish the wrong people. Waste usually comes from routine tasks running on an expensive model by default, or a forgotten scheduled job quietly consuming tokens overnight.
- Set spend limits per user, identity-provider group or the whole organization, by day, week or month, through the tool's admin gateway.
- Warn before you block. Configure in-tool warnings at 75% and 95% of a cap, so people see it coming instead of hitting a wall mid-task.
- Default to a cheaper model for routine work, and reserve the most capable (and expensive) model for teams or tasks that need it, set server-side so individuals can't quietly override it.
- Use your cloud provider's native controls alongside the tool's own settings: per-project billing, budgets and alerts, and quotas. If you're on Google Cloud, Anthropic's guide points specifically to Cloud Billing budgets and spend caps, currently in preview.
Track: know where the money actually goes
You can't manage what you can't see by team, by task type, or by project. Most agentic coding tools, including Claude Code, emit usage telemetry through the open OpenTelemetry standard, broken down by the skill, plugin, agent or MCP server being used in each session.
- Turn on telemetry export to your monitoring tool (Cloud Monitoring, if you're on Google Cloud, or whatever your team already uses for infrastructure metrics).
- Tag usage by cost center. A simple environment variable (
OTEL_RESOURCE_ATTRIBUTESin Claude Code's case) lets you attribute spend to a department or project instead of one undifferentiated number. - Export billing data to your data warehouse, filtered to just the AI coding SKUs, so finance can query it the same way they query everything else.
- Build one dashboard with the basics: active developers, sessions, total tokens, and how often people hit a spend cap. That last number tells you whether your caps are too tight before someone escalates.
Prove: connect usage to something the business cares about
This is the step most teams skip, and it's the one that actually answers the CFO's question. Anthropic's framework breaks "proof" into three layers:
- Adoption and usage — how many people use the tool, how deeply, and whether they keep using it after the first week (your telemetry from the Track step covers this).
- Satisfaction — a short survey before rollout and again after, asking about perceived time saved and confidence in the output. This is self-reported, so treat it as a signal, not a hard number.
- Impact — the only layer that requires a baseline. Pick one unit of work your team already tracks, such as merged pull requests of a comparable type, and measure it before and after.
Useful starting metrics for that impact layer: pull request cycle time (from opening to merge), review iterations per PR, PRs completed per engineer, and deployment frequency. None of these are exotic; they're the same engineering metrics most teams already have in their source control and ticketing tools. The work is correlating them with AI tool usage, not inventing new ones.
Anthropic's own write-up cites a few customer examples worth knowing about, with the caveat that these are the vendor's own reported figures, not independently verified: Delivery Hero says it used Claude Code to overhaul a 100-component design system in roughly the time one engineer would normally need for a week of work; Shopify says non-engineers have used it to build internal tools in minutes rather than days; and a smaller company, Fifth Dimension, reports generating over 300,000 lines of code a month with a 98% acceptance rate on suggestions. None of that tells you what your team will see — only a baseline comparison on your own work will.
What to do this week
You don't need all of this running before you start.
- Set one org-wide default: a sensible spend cap, a default model for routine tasks, and an allowlist for who can switch to a more expensive one.
- Turn on usage export so you can see, for the first time, which teams and tasks are driving your bill.
- Pick one metric you already track — PR cycle time is the easiest — and start measuring it now, before you make any other changes, so you have a real "before" to compare against.
- Run a short survey with the team already using the tool. It costs nothing and gives you a number to put next to the invoice the next time someone asks what the spend bought.
If your engineering team already piloted Claude's automated code review or is weighing a wider AI coding rollout the way Barclays scaled Claude internally, this is the measurement layer that should go in from day one, not after the first budget review goes badly. If you want help building that measurement layer for your team, that's exactly the kind of implementation work our AI consulting practice does.
Related
AI consulting

About the author
Vivek Gupta · IIT Delhi alumnus
Vivek Gupta is an IIT Delhi alumnus and PhD scholar, an AI researcher and serial entrepreneur with 14 years of building technology at MakeMyTrip, Goibibo, Wissen and Jubilant FoodWorks.
Connect on LinkedInAI updates by email
The week's AI articles, in your inbox.