For engineering managers How a team can track what its coding agents cost.

There are five ways today: the vendors’ own usage pages, counters on each developer’s machine, OpenTelemetry export, invoices in a spreadsheet, and Caprock Teams. They differ in what they can split: by person, by repository, by pull request, across machines.

Each section says what a way shows and what it does not. Facts about other tools are what their own pages say, linked, as read on 2026-12-04.

A vendor's usage console: Anthropic

What it shows

Usage by model, by API key and by workspace, down to the hour or the minute, and a daily cost chart. Anthropic's Claude Code page adds spend per member and a per-user analytics API.

What it does not

Its own pages do not say that it splits cost by repository or by pull request. The Console's help page says usage cannot be broken down by individual user there. It covers Anthropic only.

Sources: Console cost and usage reporting, Usage and Cost API, Claude Code costs

A vendor's usage console: OpenAI

What it shows

Usage grouped by project, user, API key or model, in buckets of a minute, an hour or a day. Costs come as daily figures.

What it does not

Its reference does not mention repositories or pull requests, and it covers OpenAI only.

Sources: OpenAI usage API reference

Local usage counters

What it shows

Claude Code's /usage command shows the current session. It computes the dollar figure on the developer's machine from token counts at list price.

What it does not

The totals reset when /clear starts a new session, and the page calls the figure an estimate. It is one developer's computer, so a team's total means collecting it by hand.

Sources: Claude Code costs

OpenTelemetry export

What it shows

Claude Code can send usage metrics and events to an OpenTelemetry collector you run (CLAUDE_CODE_ENABLE_TELEMETRY=1, plus an OTLP endpoint). Anthropic's page calls it the only option that streams per-user token and cost metrics. Codex has an export of its own, off by default and set in config.toml.

What it does not

You choose and run the collector, the storage and the dashboards. Neither page describes a per-repository or per-pull-request cost view, so that part is yours to build.

Sources: Claude Code monitoring, Codex advanced configuration

Invoices in a spreadsheet

What it shows

What was paid to each vendor each month, from the invoices themselves. Nothing to install.

What it does not

One total per vendor. Splitting it by repository or pull request means adding that by hand, and a seat or a flat plan has no per-session cost on an invoice at all.

Caprock Teams

What it shows

Each developer's Caprock prices every agent session of Claude Code, Codex and other agents on their computer, including sessions started outside it. A server your team runs adds them up by repository, pull request and release.

What it does not

It needs a server your team runs, and each developer installs the app. It shows and warns; it does not stop a colleague's session. On a seat or a flat plan the figure is what the same work would cost through the API, not money spent.

More on the team version: Caprock Teams.