What you connect
All of them are added in Connect › Sources; see Connect your data.
Claude Code’s usage report only says how to divide the Anthropic bill. It is never added as spend of its own. If your Anthropic account also serves your own apps, that part of the bill stays off this page.
Every figure uses the same counting rule as the rest of Spend, so a call isn’t counted twice. See How TensorCost counts AI spend.
What the page shows
- One row per developer and one column per tool, with a total. The period switch is This month or Last month.
- Under each tool’s name, how its spend is held: Enforced at the gateway, Cap pushed or Tracked. Tracked and enforced explains each.
- A line for spend that isn’t tied to a developer yet. It lists the raw names behind it, largest first, up to 50. Anything past the list, or a call with no name at all, is summed in a line under it.
- An Aliases list.
Who a developer is
A developer is one lowercased email. Each tool names its callers differently, so TensorCost folds them to that email and a developer’s spend adds up across tools. It looks, in this order, at:- The email the tool reports (Cursor, Claude Code’s report and its OpenTelemetry metrics all carry one).
- For Bedrock, an IAM role session name that is an email, then an
iamPrincipal/emailtag. - Your aliases.
Email and GitHub login values are matched without regard to case. IAM principals and API key names must match exactly.
TensorCost never guesses. A caller it can’t resolve stays in the unattributed line. Each name there has a Map button for admins, which opens the alias form with the name filled in. A Cursor service account is shown as a service account and has no Map button, because it isn’t a person.
Spend per repository
The Developers page has no repository column. Repository comes only from Claude Code’s OpenTelemetry metrics, and it is available through the API:GET /v1/api/ai/spend/developers?by=repo adds by_repo to each developer. The metrics only say how to divide the Claude Code cents the page already counts, so a developer’s repositories add up to their Claude Code figure. A developer with no repository data gets one repository called (none).
Cursor and Copilot spend has no repository detail.
Budgets per developer
Create one in Spend › Budgets: New budget, then set Who it applies to to Each developer.- Tool is All tools, Claude Code, Cursor, GitHub Copilot or Bedrock (other callers).
- Limit per developer is one amount, and everyone gets the same limit.
- Period is weekly, monthly, quarterly or annual.
- Enforcement is Notify only, Warns callers or Blocks at the limit, as on any budget. All tools and Bedrock can only notify.
Cursor
Cursor accepts a per-user limit on Enterprise teams only. On another plan the budget shows Cursor Enterprise needed and stays tracked. TensorCost records a developer’s own Cursor limit before it sets one, and puts that limit back when the cap is removed. Limits are whole dollars, and a cap is rounded down so Cursor never allows more than the budget.GitHub Copilot
The GitHub App needs these organization permissions: Administration (read and write) and GitHub Copilot Business (read). Without Administration write, the budget shows GitHub App can’t set budgets and the cap isn’t pushed. The cap is a user budget on AI credits that stops further usage, in whole dollars rounded down. TensorCost only changes or deletes budgets it made. If a seat already has its own AI credits budget for that user, TensorCost leaves it alone and reports an error for that seat.Whether a cap was pushed
The budget’s detail page says how many seats hold the cap, for example “2 of 3 seats hold the cap”, and why a seat doesn’t. The tag reads Cap pushed to Cursor only when every seat has it, and otherwise Tracked · cap not pushed yet. The vendor enforces the cap, not TensorCost. If a push hasn’t landed, the developer isn’t held. Disconnecting Cursor or Copilot first takes TensorCost’s caps off. If they can’t be taken off, the disconnect is refused with a message saying to remove the developer caps first.Claude Code through the gateway
A Claude Code budget with Blocks at the limit is enforced only for calls that go through the TensorCost gateway. This is set up on Connect › Claude Code, which every workspace has, since Claude Code’s calls are counted on every plan. Spend per developer and per-developer caps come with the Coding agents add-on. It needs Claude Code 2.1.285 or later.1
Name the gateway's key
The gateway calls Anthropic with the key in your Anthropic connection. Name that key
tensorcost-gateway in Anthropic, exactly, so Claude Code’s usage report doesn’t count the gateway as a developer. It must be a standard, model-calling key. An admin key alone gets a 503 from the gateway. Change it in Connect › Sources.2
Mint a token for each developer
Enter a developer’s email and select Mint token. The token is shown once. Mint tokens for N members makes one for every active member and downloads them once as a CSV with the columns
email and token. The page doesn’t keep them.3
Roll out the managed settings
Put the snippet in Claude Code’s managed settings file. Each developer sets
TENSORCOST_DEV_TOKEN in their own environment to their token.ANTHROPIC_BASE_URLandapiKeyHelpersend Claude Code’s calls to the gateway with the developer’s token. Identity is the token, so a token is minted for one email.allowedProviderskeeps Claude Code on that endpoint.- The
OTEL_variables send Claude Code’s metrics to TensorCost. Those metrics are where spend per repository comes from. Replace the placeholder inOTEL_EXPORTER_OTLP_HEADERSwith the same developer token, in each developer’s own settings or shell, not in a file you share. - The Bedrock tab of the snippet sets
CLAUDE_CODE_USE_BEDROCK,ANTHROPIC_BEDROCK_BASE_URLandCLAUDE_CODE_SKIP_BEDROCK_AUTHinstead ofANTHROPIC_BASE_URL. LeaveAWS_BEARER_TOKEN_BEDROCKunset, because Claude Code sends it in place of the token when it is set.
What happens at the limit
When a developer’s Claude Code spend for the budget’s period reaches the limit:- Blocks at the limit. The gateway answers with HTTP 429 in Anthropic’s error format, with
x-should-retry: false. Claude Code reads that header and doesn’t retry. The message reads “TensorCost: you’ve reached your Claude Code budget (name, $1,500/month). Ask Jo to raise it.” Jo is the budget’s owner, by name, and the text says “your TensorCost admin” when none is known. - Warns callers. The call goes through with an
x-tensorcost-warningheader saying they are over the budget.
retry-after, and Claude Code waits and retries.
The gateway fails open. If TensorCost can’t read the budgets or the counter, the call goes through. A token minted without an email is never refused by a budget. A budget whose period has ended isn’t applied.
Tracked and enforced
The words under each tool’s name on the Developers page mean this:
A tracked tool still has spend, alerts and budgets. What it doesn’t have is a refusal.