See exactly what each developer spent on Claude Code: the new cost report API
Claude Code 2.1.317, released 3 November, added a cost report to the Claude apps gateway admin API: GET /v1/organizations/analytics/cost reads past spend over a date range, broken down by total, developer, day or IdP group. If you run Claude Code for a team, this is how you stop guessing who burned the budget. Source: https://makikub.github.io/claude-code-doc-changelog/changes/2026-11-03.html
Why it matters
Team leads have had no clean way to answer the simplest budget question: who spent what. The gateway already meters spend, but until this endpoint the numbers lived behind admin screens, not in a queryable API. Pair it with the pooled group budgets from 2.1.316 and you can both see the spend and cap it per group, which is the difference between a surprise invoice and a managed budget. See [Claude Code](https://agentstacklist.com/agents/claude-code/) for setup and pricing. Team leads weighing cost control across agents can compare the two leading CLIs in [Claude Code vs Codex](https://agentstacklist.com/compare/agents/claude-code-vs-codex/).
Who it's for
Team leads and admins running Claude Code through a self-hosted Claude apps gateway.
How to try it
- Check your gateway runs Claude Code 2.1.317 or later with claude --version, then confirm the admin API is reachable.
- Call GET /v1/organizations/analytics/cost with a date range to read past spend in total, per developer, per day or per IdP group.
- Break the numbers down by developer first to find the heavy users, then by day to spot the spikes, and by IdP group if you fund teams separately.
- Pair it with pooled group budgets from 2.1.316: one monthly budget a group's members share, set with pooled_budget on the spend limits admin API, on top of each member's own limit.
- Verify the figures against your provider's usage reporting after the first month. The gateway prices requests from list prices or your pricing overrides, not from the provider's invoice, so the two can differ.
- Plan and availability: gateway-only, on self-hosted Claude apps gateways with admin access. The spend limits docs do not yet cover every detail, so treat undocumented behavior as unverified.
Source: https://makikub.github.io/claude-code-doc-changelog/changes/2026-11-03.html
Written by Carlos Mendoza from the original post. Checked Checked 15 Nov 2026. Features, plans and availability can change, so confirm on the source before you rely on it.
claude-codecostadmingateway
More Claude tricks
- One URL and one key for all your MCP servers: ngrok's MCP Gateway is live · Dec 2
- OpenCode 2.4.2 cuts about 700 tokens per request and tunes GPT-6.2 · Nov 26
- OpenCode 2.4 gives your coding agent a browser, automations, and video generation · Nov 24
- Claude Code 2.1.330 draws your charts with easel and lets scheduled tasks run 30 days · Nov 21