Connect AI usage
Connect Claude Code, GitHub Copilot or Cursor usage: which key or permission is needed, the exact OpenTelemetry variables, and what is stored.
The AI usage & cost page joins what your team spends on AI coding tools with what its projects deliver. You connect one or more sources. Only an owner or admin can connect them. Everyone in the workspace can read the result.
Claude Code: Admin API key
Paste an Admin API key from your Anthropic organization. Only organization admins can create one, and the Admin API is not available for individual accounts. Sprint Radar reads the daily usage per user: sessions, lines of code, commits, pull requests, tool decisions (accepted and rejected edits), tokens and the estimated cost.
- It covers usage in your Anthropic organization that is billed through the API. Usage on subscription plans is not in this data: use OpenTelemetry for it.
- The cost is the estimate Anthropic reports, in US dollars.
- No prompts and no code are read.
Claude Code: OpenTelemetry
Add the source, then create an ingest token. The token is shown once. Sprint Radar then shows the settings below with your values filled in, for one developer (shell variables) and for managed settings (the same variables in JSON). This path also covers subscription plans.
CLAUDE_CODE_ENABLE_TELEMETRY=1
OTEL_METRICS_EXPORTER=otlp
OTEL_EXPORTER_OTLP_METRICS_PROTOCOL=http/json
OTEL_EXPORTER_OTLP_METRICS_ENDPOINT=<the endpoint shown when you create the token>
OTEL_EXPORTER_OTLP_METRICS_HEADERS=Authorization=Bearer <your ingest token>
OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=deltaOnly JSON over HTTP is accepted, and only delta temporality. The telemetry carries metrics (tokens, cost, sessions, active time, edit decisions), not prompts or code. You can create several tokens and revoke each one.
GitHub Copilot
Connect an organization or an enterprise with its slug (the name in github.com URLs) and a GitHub token. For an organization, use the token of an organization owner, or one with the fine-grained permission “View Organization Copilot Metrics” (a classic token needs read:org). For an enterprise, use an enterprise owner or billing manager, or the fine-grained permission “View Enterprise Copilot Metrics” (a classic token needs manage_billing:copilot or read:enterprise).
- The “Copilot usage metrics” policy must be enabled for the enterprise. GitHub Enterprise Server is not supported.
- GitHub reports usage, not cost. If you enter a price per seat, Sprint Radar shows an estimate of seats × price, labelled as an estimate, and never adds it to reported cost.
Cursor
Paste a team Admin API key, created by a team administrator in the Cursor dashboard under API Keys. Cursor lists the Admin API for Enterprise teams. Sprint Radar reads daily usage per person (requests, accepted and rejected suggestions, accepted lines) and the amount Cursor charged per usage event. The first sync reads 90 days and can take several minutes.
What is stored
- Daily totals per source, person and model: tokens, cost, sessions, active time, lines, commits, pull requests, and accepted and rejected edits.
- People are stored as keyed hashes of their identifier (an email address or an installation id). The hash cannot be turned back into the identifier.
- API keys and tokens you paste are stored encrypted and are never shown again. Ingest tokens are stored as hashes.
- No prompts, code, file names or issue titles.
Deleting a source deletes its stored usage and its ingest tokens. Sprint Radar asks you to confirm and says how many rows that removes.
What the numbers do not tell you
Spend covers the whole workspace, while delivery comes from one project at a time. The numbers show what happened together. They do not show that spend caused or prevented delivery.