To track Claude Code and Cursor spend by developer, pull usage from each vendor’s admin console or API daily, map every seat and API key to a person and a team, and store it in one ledger. Then set a monthly budget per team, alert on session spikes, and divide spend by merged pull requests to get cost per PR.
Why is Claude Code and Cursor spend hard to track?
Coding agents bill in two layers: a seat price per developer per month, plus usage that scales with how much code the agent reads and writes. The seat shows up in procurement. The usage shows up weeks later, by API key or workspace, with no developer name attached. Spend can double in a quarter without anyone deciding to spend more.
Three things make this worse than ordinary SaaS. First, developers often bring their own accounts, paid by card, before the company standardizes. Second, a single developer on a long agentic session can consume more tokens in an afternoon than a teammate does in a month. Third, the same person may use Claude Code through an Anthropic API key, Cursor through a team seat, and a cloud-hosted model through Bedrock, and each one lands in a different report.
Finance sees three invoices. Engineering sees three dashboards. Nobody sees cost per developer, cost per team or cost per pull request.
What do the native Claude Code and Cursor reports show?
Both vendors ship usage reporting, and you should use it. Anthropic reports Claude Code usage through the Console and admin views by key, workspace or seat. Cursor reports seats and usage-based spend per member in its team dashboard. The gaps are structural: each report covers one vendor, uses its own identifiers, and does not know your org chart.
| Report | Where the data lives | What it shows | What it does not show |
|---|---|---|---|
| Anthropic Console and admin usage | console.anthropic.com, Claude admin settings | Tokens and cost by API key, workspace or seat, by day | Team, cost center, cost per PR, spend from other vendors |
| Cursor team dashboard | Cursor admin settings | Seats, active members, usage-based spend per member | Team mapping, budgets, alerts, cost per PR |
| Cloud billing (Bedrock, Vertex, Azure OpenAI) | Cloud console and cost export | Model usage inside the cloud bill, by account | Which developer or tool made the call |
| Corporate card and AP | Expense system | Seat invoices, often per developer | Any usage detail |
Export each of these daily rather than monthly. Daily data is what lets you catch a spike while it is happening. The Claude Code integration and Cursor integration pages describe the read-only connection for each.
How do you map seats and keys to developers and teams?
Mapping is the step most teams skip, and it makes everything else possible. Build one table with four columns: identifier (seat email, API key ID or workspace), person, team and cost center. Fill it from your identity provider, then correct it monthly. Every usage row joins to that table, and spend rolls up to people and teams.
A few rules that save time later:
- One key per person or per agent. Shared keys cannot be attributed. When you find one, split it.
- Name keys for their owner and purpose.
eng-platform-priyatells you more thankey-7. - Tag by team, not by manager. Managers change. Teams and cost centers change less often.
- Treat agents as people. A PR reviewer agent that runs on its own key gets its own row, with the engineer who owns it listed as the owner.
Attribute in Bloom Factory keeps this table current from your identity provider and vendor seat lists, so a new hire’s Cursor seat and Claude Code key show up under the right team on day one.
How do you set budgets and alerts for coding agent spend?
Set a monthly budget per team, not per developer. Per-developer caps punish the engineers who get the most out of the tools. A team budget at last month’s spend plus expected growth, with an alert to the team lead at 80% and to engineering leadership at 100%, catches overruns without slowing anyone down.
Pair budgets with spike detection. A session spike is a single developer or agent whose spend in an hour or a day is several times its own baseline. Spikes are usually one of three things: a long autonomous session that kept going, a retry loop, or a model switch to a more expensive tier. All three are worth a message to the owner within the hour, not a line item at month end.
At Northwind Labs, our example company, daily AI spend ran between $2.7K and $7.1K for most of November. On Nov 10 it hit $9.1K. The cause was a Test writer agent in a retry loop. A budget limit stopped it after 41 minutes. Govern in Bloom Factory handles budgets, alerts and hard limits like that one.
How do you measure cost per pull request?
Cost per pull request is a team’s coding agent spend in a period divided by the pull requests that team merged in the same period. It is the cleanest unit for coding agents because every engineering team already tracks merged PRs, and it is what a CFO means when they ask what the tools return.
The formula:
Cost per PR = (Claude Code spend + Cursor spend + other coding agent spend for the team) / merged PRs for the team, same period
A few cautions. Use merged PRs, not opened. Keep the period the same on both sides. Expect the number to vary by team: a platform team with large, infrequent PRs will show a higher cost per PR than a team shipping small changes, and that is fine. Track the trend per team, and compare a team to itself.
Cost per PR also tells you when to stop worrying. If a team’s coding agent bill doubled and its merged PRs doubled, cost per PR held. That is the number to bring to budget review, not the raw bill.
Worked example: Northwind Labs coding agent spend by team
Northwind Labs has 840 people, 310 of them in Engineering. Through Nov 21, 2026 it has spent $24.6K on coding agents: $17.9K on Claude Code and $6.7K on Cursor. That is 13% of its $184.0K in AI spend for the month so far. Engineering is already over its November budget. All figures below are example data.
| Coding agent spend (Example, Northwind Labs) | Nov 1 to 21, 2026 |
|---|---|
| Claude Code | $17.9K |
| Cursor | $6.7K |
| Coding agents total | $24.6K |
| Share of all AI spend ($184.0K) | 13% |
Rolled up by team, with every AI source included:
| Team (Example, Northwind Labs) | People | Spend, Nov 1 to 21 | November budget | Used |
|---|---|---|---|---|
| Engineering | 310 | $71.4K | $70.0K | 102%, over budget |
| Product | 95 | $29.6K | $40.0K | 74% |
| Data science | 48 | $22.8K | $26.0K | 88%, near budget |
Engineering crossed its budget with nine days left in the month. A single ledger entry from the afternoon of Nov 21 shows the kind of detail that explains why: 3,880 Claude Code requests on claude-sonnet, $211.46, attributed to Engineering, with $38.75 saved through caching and routing on those same requests.
With this table, the VP of Engineering can answer three questions at the Monday review. Which team is over, by how much, and whether the cost per PR moved. Without it, the answer is “we will know when the invoice arrives.”
Frequently asked questions
These are the questions engineering leaders ask most about coding agent spend. Short answers follow. For the full setup, including the read-only connection for each vendor, see our coding agents solution, or book a free 30-day AI Scan and get spend by developer and team for your own tools.
Can I see Claude Code spend per developer without a proxy?
Yes. Claude Code usage is reported by API key, workspace or seat in Anthropic’s admin tools. If each developer has their own key or seat, that is per-developer spend. The missing piece is the join to your team structure, which you add yourself or through a platform that connects read-only.
Should I cap each developer’s coding agent spend?
Usually not. Per-developer caps stop your most productive engineers first. Set team budgets, alert at 80%, and investigate session spikes. Reserve hard limits for agents running unattended, where a retry loop can burn a budget overnight.
What is a reasonable cost per pull request?
It varies by team and codebase, so compare a team to its own history rather than to a benchmark. Watch for two signals: cost per PR rising while PR volume is flat, which suggests waste, and a sudden jump, which usually means a model switch or a loop.
Does this work for Codex, Copilot and other coding agents too?
The method is the same: daily usage export, map identifiers to people and teams, budget per team, alert on spikes, divide by merged PRs. The data sources differ. Bloom Factory connects read-only to Claude Code, Cursor, Codex and cloud-hosted models and puts them on one AI Map.