AI Academy · Book
Engineering Managers · Module 08 · Chapter 004

Cost Visibility and Attribution for Teams

An invoice tells you what the company spent; it does not tell you which feature, environment or engineer spent it. A manager closes that gap with a small tag scheme, one billing identity per feature and environment, a rule for shared costs, and a one-page weekly dashboard in which every number has an owner and a trigger. The work takes days, and it is what makes every later cost decision possible.

≈ 13 min read

After this chapter you can

  • Give every feature and environment its own billing identity with team, feature, environment and owner tags.
  • Compute the unallocated share of spend and treat a high figure as a job of finding owners.
  • Write a dated rule for splitting shared costs and apply it unchanged every week.
  • Build a weekly page where each tile has an owner and a trigger, including cost per outcome.
  • Decide when to move from showback to chargeback, and settle the purpose of per-person data with privacy and HR first.

Your director asks a plain question: which of your team’s AI features costs the most, and is it worth it? You open the invoice. It shows one line per vendor, a monthly total, and perhaps a model name. It does not show which product, which environment or which engineer generated the tokens. The honest answer may be that you do not know, which is a common starting point for a team whose AI usage has grown faster than its tagging.

Level 1 explained the idea of showback and chargeback, and why visibility is the base of cost management. This chapter is the setup work: what to create, what to tag, how to split shared costs, and which numbers a manager reads on a weekly page. It stays at the level of one team, and it does not repeat the levers for cutting cost, which sit in the previous chapter.

Two kinds of spend, two routes to an owner

Team AI spend falls into two kinds, and they are attributed differently. A seat is a license held by a person, so the natural owner is the person and, through them, the team. Usage-based spend is metered per token or per call against some identity: an API key, a workspace, a cloud resource. Its owner is whoever controls that identity, and if nobody does, the spend has no owner.

A table comparing where spend is read for seats, API usage, cloud-hosted models and gateways, with the main gap in each.Spend typeWhat the provider metersWhere you read itGap to watchAssistantseatsA seat per personAdmin spend report per user andmodel, CSV, updated dailyUse inside the seat allowance is notmetered in dollarsAPI usageKeys and workspacesUsage and Cost API, filtered byworkspace, key and modelDefault workspace and playgroundrows carry no ownerCloud-hostedmodelsA named resource such as aninference profileYour cloud bill, split by costallocation tagsVendor dashboards do not seethis usageGateway orproxyWhatever key or tag theproxy assignsThe proxy's spend-by-key reportYou operate and secure onemore system
Figure 8.4.1 How the main routes expose spend, as described in vendor documentation in October 2026; check each provider’s current pages.

The detail matters because it decides what you can build. In Anthropic’s documentation as of October 2026, a Teams or Enterprise admin gets a spend report with estimated spend per user and per model, exportable as CSV and updated daily; usage inside the seat allowance is not metered in dollars, so the report covers usage-credit spend1. The Usage and Cost API serves organizations on the API: usage can be grouped or filtered by workspace, key and model, usage typically appears within 5 minutes, and the Cost API reports in US dollars with daily buckets only. Default-workspace usage has a null workspace identifier, and playground usage has a null key identifier2. On Amazon Bedrock, an application inference profile tracks usage and costs for a model and accepts tags that connect to AWS cost allocation tags3. The same Anthropic page notes that cloud-provider usage of Claude Code is not covered by its dashboards, so per-user attribution there comes from OpenTelemetry or a gateway1. Other vendors offer different mixes of these. The pattern repeats: attribution attaches to an identity that something meters, not to a request or a person you wish to charge.

Build the chain from request to owner

A manager does not need to write the plumbing, but should be able to read the chain and spot its weak link. Five links carry spend from a model call to a decision.

Five links from billing identity to tag, allocation rule, weekly page and owner action, where the weakest link limits the chain.IdentityOne perfeature andenvironmentTagTeam, feature,environment,ownerAllocateA writtenrule forshared costsShowOne page,read everyweekActEach tile hasan ownerand a triggerWeakest link wins: an untagged key breaks every link after it
Figure 8.4.2 Five links from a model call to a decision; the sequence is a working method, not a standard.

Identity first. Because spend attaches to the thing the provider meters, the unit you can attribute is that thing. If two features share a key, you can never separate them later. So the working rule is one identity per feature and environment: a production key for the support assistant, a separate staging key, a separate key for the code-review bot in CI. This is a design inference from how the providers above meter usage, not a documented best practice, and it carries a small cost in keys to rotate. It is cheap next to guessing.

Then tags. The FinOps Foundation’s guidance on AI lists tag keys such as Project, Environment, Team, CostCenter, Usage Type and Purpose, and warns that it is hard to identify the consumer of a model’s output when several functional modules share one model4. Four tags carry most of the value for one team, and the table below gives a starting set. Keep the set small, because a tag nobody fills in correctly is worse than none.

Four tags, team, feature, environment and owner, with example values, who sets each and how to enforce it.TagExample valuesWho sets itHow you enforce itteamsupport-platformKey creatorCreation checklist; weekly report ofuntagged keysfeaturesupport-assistant, code-review-botFeature ownerNo key without a feature tag incode reviewenvironmentprod, staging, ci, experimentKey creatorKeys expire in 90 days unlessrenewed (illustrative)ownera named personFeature ownerA person, not a team alias;reassigned on leaving
Figure 8.4.3 A four-tag starting scheme for one team; the expiry period is an illustrative starting value, not a rule.

FinOps practice also supports a common billing shape. The FOCUS specification, at version 1.4 as of October 2026, defines columns such as Tags, Billed Cost, Sub Account ID and Allocated Method ID, and the specification page lists vendors from AWS to Databricks as supporting it, at differing levels5. If your finance team already works with it, ask whether your AI vendors’ data arrives in that shape, because it shortens the mapping work. The specification page states no release date, so confirm what your provider actually exports.

Then the shared-cost rule. Some spend serves several features: a retrieval index, a gateway, an evaluation job. Write down, in a sentence, how it is split before anyone argues about a number. Splitting by each feature’s share of tokens is a reasonable default; fixed shares are simpler and easier to explain. Either is fine, and what matters is that the rule is written, dated and applied the same way every week. Changing the rule mid-quarter makes trends meaningless.

The weekly page a manager reads

A dashboard that nobody acts on is decoration. The test for every tile is two questions: who owns the number, and what happens if it crosses a line. The page below fits on one screen and takes about ten minutes to read.

Six dashboard tiles for envelope, spend split, unallocated share, cost per outcome, weekly movers and seat use, each with an owner and a trigger.TileQuestion it answersOwnerTrigger to act (starting values)Spend againstenvelopeAre we on track for the month?ManagerOver 90% of envelope with aweek or more leftSpend by featureand environmentWho spent what?Feature ownersAny environment other than prodabove 15% of a featureUnallocatedshareHow much can I not explain?ManagerAbove 5% of usage spendCost peroutcomeWhat does one finishedresult cost?Feature ownerAbove the ceiling set atdesign reviewTop threemoversWhat changed week on week?ManagerAny line up more than 25%without a releaseSeat useWho is not using what we pay for?ManagerSeat idle for 30 days (feeds thelicense review)
Figure 8.4.4 Illustrative weekly page: six tiles, each with an owner and a trigger; every threshold is a starting value to tune.

Two of these tiles deserve a comment. Unallocated share is the honesty tile. It is the part of the bill you cannot tie to anyone, and while it is large every other number is partial. An illustrative start is under 5 percent of usage spend; above that, the job is finding owners, not cutting. Cost per outcome divides spend by something the feature produced: resolved tickets, reviewed pull requests, answered questions. It is the number that lets an owner defend spend or find waste, because total spend rises with success. FinOps guidance lists cost per inference, per token and per API call as unit metrics4; these are useful for engineers, but an outcome the business recognizes is better for a feature owner. Choose the outcome carefully: cost per merged pull request, for example, rewards small changes, so pair it with a quality measure.

Showback first, chargeback when it is earned

Showback gives each team its numbers while the central budget still pays. Chargeback moves the spend into the team’s own budget. Level 1 argued for starting with showback; the practical question is when to move on. A reasonable test has four parts, shown as a ladder.

Four rungs from visible to trusted, actionable and charged, with chargeback only at the top.VisibleEvery key has feature and ownerTrustedUnallocated under target, 3 monthsActionableOwners can change spendChargedSpend moves to the team budget
Figure 8.4.5 Charge a team only after the three rungs below are in place; the three-month period is an illustrative starting value, not a rule.

The third rung is the one managers skip. A team that cannot change a shared model choice, a platform default or a vendor price should not be charged for its consequences. Charging without levers produces arguments about method in place of better decisions.

Per-person visibility has a cost of its own

Seat spend invites a per-person leaderboard, and it is tempting. Resist making it the default. Usage per person is personal data about an employee, and a ranking of tool use is easily read as a performance ranking, which changes how people use the tool. A better default is to show spend at team and feature level, and to use per-person numbers for one narrow purpose: deciding who needs which license, covered in a later chapter on license rightsizing. The legal position varies by country.

Case: Cursor’s pricing change and the surprise charge

A public example shows how a pricing change can leave usage unwatched. On 16 June 2025 Cursor moved its individual plans from request-based pricing to usage-based pricing with 20 US dollars of included usage. On 4 July 2025 the company wrote that the changes had not been communicated clearly and that it took responsibility, offered to refund unexpected charges for the previous 3 weeks, added dashboard visibility on nearing usage limits, and pointed users to a spend-limit option6.

Cursor moved individual plans to usage-based pricing on 16 June 2025 and on 4 July offered refunds and added usage visibility.16 Jun 2025Individual plans move tousage-based pricing20 US dollars of included usage4 Jul 2025Company says the changewas unclearOffers to refund unexpected chargesfor 3 weeksSame postVisibility and limits addedDashboard view near limits;spend-limit option
Figure 8.4.6 Cursor’s own account of the 2025 change; it describes individual plans, not team plans, which the post says were unchanged.

The lesson is narrow, and the source supports only part of it. The post says the change was unclear and that people had unexpected charges; it does not report how many users or how much money was involved, and it concerns individual plans, with team plans left unchanged. What carries over to a team is the mechanism. A tool that moves from a flat fee to metered use makes spend depend on behavior, which means a user can be surprised by a charge before seeing a usage number; the post’s remedy suggests this, though it does not measure it. The vendor’s remedy was a view of usage before the limit and a way to cap it, which are the same two things this chapter asks you to build for your own spend.

A team-sized worked example

All numbers below, including the 5 percent target and the 2.5 ceiling, is invented as an illustrative starting value; replace each with your own. An eight-engineer team reviews its usage-based AI spend three weeks into the month: 9,000 US dollars, from keys across the team. It runs a support assistant, a search reranker and a code-review bot in CI. A sweep finds that 1,100 US dollars carries no feature tag, which is 12.2 percent of the total (1,100 divided by 9,000) and well above the 5 percent starting target.

An illustrative month-to-date table showing 1,100 US dollars unallocated before the sweep and 280 after, with 820 traced to a staging key.US dollars, month to dateBefore the sweepAfter the sweepShare of total afterSupport assistant3,9003,90043.3%Support assistant6501,47016.3%Search reranker2,1002,10023.3%Code-review bot1,2501,25013.9%Unallocated1,1002803.1%Total9,0009,000100.0%
Figure 8.4.7 Illustrative composite for an eight-engineer team: 820 US dollars moves from unallocated to staging; the rounded shares add to 99.9% and the dollar columns to exactly 9,000.

The sweep traces the unknown keys. Most of the untagged 1,100 US dollars, 820, comes from a key an engineer created for a prototype of the support assistant; it belongs to staging. The other 280 US dollars has no owner yet, and so remains unallocated at 3.1 percent (280 divided by 9,000), under the target. The check is arithmetic you can repeat: 820 plus 280 is the original 1,100, and the after column still totals 9,000.

Three readings follow. First, staging of the support assistant is now 1,470 US dollars against 5,370 for the whole assistant (3,900 plus 1,470), which is 27.4 percent. The starting trigger is 15 percent, so the owner puts a spend limit on the staging key. Second, the assistant resolved 2,685 tickets in the same period, so its cost per resolved ticket is 2.0 US dollars (5,370 divided by 2,685), under the 2.5 ceiling set at design review; the manager can defend the spend with a number. Third, as a separate plausibility check on assistant seat spend (not part of the 9,000 above), the vendor’s own range of 150 to 250 US dollars per developer per month, from enterprise deployments, implies 1,200 to 2,000 for eight people (8 times 150 and 8 times 250)1. That range is one vendor’s, for one product, and your own report is the figure that counts; use it to notice a number that is far outside it.

Check yourself

  1. Attribution works best when it is added to a request after the bill arrives.
  2. If two features share one API key, you can separate their spend later from the invoice.
  3. A high unallocated share means the first job is finding owners, not cutting spend.
  4. Chargeback should start once the dashboard exists.
  5. Usage records that identify an employee can be personal data and may need works-council involvement in some EU countries.
  6. Cost per outcome tells you more than total spend because totals rise when a feature succeeds.

Reflection

What this means for engineering managers

Your Monday action, one line: list every key and billing identity that carries AI usage, and put a feature, environment and owner on each one before the end of the week. Then work through the following for the weekly page.

  • Publish one page at a fixed time each week, with the unallocated share first.
  • Write the shared-cost rule and the cost-per-outcome ceiling beside each feature.
  • Keep per-person data to the license decision and agree its purpose with privacy and HR contacts.
  • Stay on showback until the three lower rungs of the ladder hold.

What comes next

Visibility shows you where money goes. It does not stop a single task from spending far more than it should. The next chapter, Agent Spend: Runaway Loops and Guardrails, covers per-task and per-day caps, loop limits, alerts and a way to stop a run.

Laws referenced

General Data Protection Regulation · EU

Regulation (EU) 2016/679

Personal data is any information relating to an identified or identifiable person, directly or indirectly, including by an identifier such as an online ID (Art. 4(1)). Lawful basis and purpose limitation (Arts. 5-6); processing special-category data, including biometric data used to identify a person, health data and data revealing ethnicity, is prohibited unless a specific exception applies (Art. 9); data protection by design and by default (Art. 25); processors such as AI vendors may act only under a written contract with required terms and sufficient guarantees (Art. 28); transparency to data subjects (Arts. 13-14); right not to be subject to a decision based solely on automated processing with legal or similarly significant effects (Art. 22); breach notification to the supervisory authority within 72 hours (Art. 33) and to individuals without undue delay when the risk is high (Art. 34); data protection impact assessment for high-risk processing (Art. 35). Fines up to EUR 20 million or 4% of global turnover.

  • 2018-05-25 — Applies

Last verified 2026-10-08 · official text

Worker consultation on workplace technology · EU member states

AI Act Art. 26(7); national co-determination law, e.g. Germany BetrVG s.87(1) no. 6, Netherlands WOR art. 27

Introducing systems that can monitor or assess employees usually requires informing or obtaining the consent of works councils or employee representatives, depending on the country. Plan this before a pilot, not after.

Last verified 2026-10-06

References

  1. Anthropic. Manage costs effectively (Claude Code documentation). Claude Code documentation. 2026.
  2. Anthropic. Usage and Cost API. Claude Platform documentation. 2026.
  3. Amazon Web Services. Create an application inference profile. Amazon Bedrock User Guide. 2026.
  4. FinOps Foundation. FinOps for AI Overview. FinOps Foundation. 2026.
  5. FinOps Foundation. FOCUS specification (version 1.4). FinOps Foundation. 2026.
  6. Anysphere (Cursor). Clarifying our pricing. Cursor blog. 2025.

Further reading

Sources last verified 2026-10-13.