opsenDocs
Findings

Claude Code spend

.md

Cost per person and per pull request, and people paying for two coding assistants.

With an Anthropic Admin API key, each report adds Claude Code spend for the last 30 days, from Anthropic's Claude Code analytics API.

Connect

Settings → Claude Code spend, paste a key starting sk-ant-admin. Admin keys are created by an Anthropic organisation admin under Settings → Admin Keys and are a different credential from an API key.

opsen checks the key with one request before storing it, then stores it with envelope encryption bound to this installation. It is used read-only, once per audit.

What it shows

Column Source
Spend Sum of estimated_cost.amount across models, per person
PRs pull_requests_by_claude_code
$/PR Spend ÷ PRs
Copilot Whether the same person holds a Copilot seat, and when they last used it

People are matched to GitHub logins through the commit author emails in your repositories. Someone whose commits use a noreply address is shown by email only.

Dual-tooled

A person paying for both Copilot and Claude Code is counted under Also on Copilot. This is not added to the waste total: two tools can both be in use. A dual-tooled person whose Copilot seat is also idle appears in Copilot seats and is counted there.

Limits

Usage on Claude subscription plans (Pro, Max, Team, Enterprise) is not returned by the API. Claude Enterprise organisations are not covered by this connector.