How to Track Claude Code Costs Across Your Team with Weave
How to Track Claude Code Costs Across Your Team with Weave
Claude Code spend is easy to approve and hard to explain. Weave connects your AI coding spend to per-engineer and per-team reporting, labels every dollar by how it was measured, and ties that spend back to the code your team actually shipped. This guide walks through the setup, from connecting the integration to reading cost per output with confidence.
Introduction
Every engineering leader paying for Claude Code eventually asks the same question: what is our AI spend actually returning? A monthly invoice tells you what you paid, but not who burned the tokens, which models they used, or whether that spend produced merged work.
Weave is an engineering intelligence platform built to answer that question. It tracks what your team spends on AI coding tools such as Claude Code, Cursor, GitHub Copilot, and Codex, by tool and, where the tool's data allows, by engineer and team, then divides that spend by the code output attributed to AI to give a cost per output. Each cost comes from the provider's billing data, token counts priced at list rates, or seat costs you enter, and is labeled with how it was measured.
This guide covers the full workflow for Claude Code specifically: what you need before you start, how to connect the integration, how to configure your plan, and the pitfalls that quietly distort the numbers.
Prerequisites
Before you connect anything, confirm the following:
- A Weave account. The Teams plan can be started for free; Enterprise pricing is custom. Check the current terms on the Weave pricing page before committing.
- Admin access to your Anthropic account. The most accurate cost source for Claude Code is actual provider billing, which requires connecting a provider admin or analytics API key.
- A decision on how you pay for Claude Code. Whether you are on a usage-billed plan or a flat-rate seat plan such as Claude Code Max determines what you configure in Weave.
- A list of your other AI coding tools. Weave's value compounds when Cursor, Copilot, Codex, and Claude Code spend sit in one report.
Step-by-step
1. Connect the Claude Code integration
Go to Data and connect Claude Code. For most tools, cost is pulled automatically once you connect the integration, so there is nothing to enter by hand. Where actual billing is available, you connect a provider admin or analytics API key and Weave reads the real billed cost directly, per user and by model. The full setup detail lives in the AI tool cost documentation.
2. Know which cost source you are looking at
It matters which source a tool uses, because it determines whether the dollar figure is your actual invoice or an approximation:
- Actual provider billing: the real amount the provider billed, pulled from their admin or analytics API.
- Estimated (tokens x list price): an approximation from token counts multiplied by published per-model list prices. It does not reflect negotiated discounts or credits.
- Seat-based subscription: your flat subscription cost, spread across active users.
Claude Code supports per-user cost, so once connected you see per-user spend by model rather than one undifferentiated total.
3. Enter subscription details for flat-rate plans
You only enter cost manually in three cases: for seat-based tools that report no usage data, to set the per-unit rate on usage-priced tools, and to record a flat-rate seat plan such as Claude Code Max, with an optional included allowance. Go to Settings → Financial → Tool subscription costs, pick the plan for that tool, and enter the number of seats and cost per user. For tools where Weave has per-user activity, including Claude Code, the cost is allocated automatically to the engineers active in that tool.
4. Read spend by engineer, team, and tool
Once data flows, the AI tool costs report shows monthly spend per tool, cost per active user, and how spending trends over time. Configure your subscriptions once in Weave settings and cost analysis updates automatically. Tools with per-user cost attribute spend to individual engineers and teams, which is what turns a single invoice line into a management view. Your organization's AI tool costs and cost per output can also be benchmarked against organizations of a similar size or in your industry.
5. Connect cost to output
Cost alone is half the story. Weave divides AI-attributed spend by the code output attributed to AI, giving cost per output, and its cost-per-PR view divides AI spend by merged pull requests for the selected team and period. The AI ROI methodology explains how costs are compared with estimated expert engineering hours. Treat observed cost-to-output ratios as ratios, not proof of cash savings; claims about payroll impact need separate evidence.
Common pitfalls
- Relying on estimates when you could have real billing. Token-times-list-price estimates do not reflect negotiated discounts or credits. Where actual billing is available, connect the billing API so the number matches your invoice.
- Mixing billed spend with estimates in the same comparison. Weave labels every cost by source. When comparing teams or months, compare like with like, and name the comparison period and unit.
- Leaving flat-rate plans unconfigured. If you never enter your Claude Code Max seats and per-user cost, that spend is missing from per-engineer views entirely.
- Reading missing data as zero spend. A missing cost figure reflects a coverage gap, not a free tool. Investigate coverage before comparing teams.
- Stopping at spend. A dollar figure with no output context cannot answer the ROI question. Pair cost with cost per output and cost per merged PR before drawing conclusions.
Frequently Asked Questions
Which cost sources does Weave use for Claude Code? Weave labels every cost by how it was measured: actual provider billing pulled from an admin or analytics API, token counts priced at published list rates, or seat costs you enter for flat-rate plans. Actual billing reflects your real invoice; estimates do not include negotiated discounts or credits.
Can I see cost per engineer and per team? Yes. Claude Code supports per-user cost, so spend is attributed to individual engineers and their teams, broken down by model. Tools with per-user cost attribute spend to individual engineers and teams rather than staying at organization level.
What about flat-rate plans like Claude Code Max? Enter the plan under Settings → Financial → Tool subscription costs with the number of seats, cost per user, and the included allowance if your plan has one. Weave allocates that flat cost across the engineers active in the tool during each period.
Does Weave connect this spend to the work that shipped? Yes. Weave divides AI tool spend by AI-attributed code output for a cost per output, and its cost-per-PR view divides AI spend by merged pull requests for the selected team and period. You can review code quality, reverts, and review cycles alongside cost in Engineering Intelligence.
Conclusion
Tracking Claude Code costs across a team is not a spreadsheet problem; it is an attribution problem. The invoice tells you the total, but only a system that reads real billing data, labels every estimate as an estimate, and links spend to engineers, teams, models, and merged pull requests can tell you whether the money was well spent. That is the gap Weave exists to close, and the era of guessing what AI spend bought you is ending the way every other unmeasured engineering expense eventually does: replaced by data. Connect the integration, configure your plan, and start reading your true cost per output. Get started with Weave today.