Skip to content
AISpendbook

Billing sources

Anthropic

Connect an Admin key to read the organization usage and cost reports.

The connector uses an Admin API key, because Anthropic's organization usage and cost reports are only available to admin keys. The key is used only to read those reports. Keys scoped to a workspace are rejected.

  • An organization admin creates an Admin key (it starts with sk-ant-admin) in the Claude Console under organization settings, Admin keys.
  • Endpoints read: the Messages usage report, the cost report, and workspace and API key names for labels.
  • Usage usually appears within minutes. Cost data can be revised for several days, so recent days are fetched again on each sync and corrected.
  • The cost report doesn't include Priority Tier commitment fees. Anthropic bills those separately.
  • Workspaces and API keys can be mapped to customers under Customers, Mapping, so their spend is attributed without telemetry. See attribution and coverage.
  • Claude Code cost per person is a separate connection, Claude Code Analytics, and Claude Enterprise seats are another.

After you save the key, AI Spendbook validates it, shows the permissions it detected, and runs an initial sync (90 days by default). After that it syncs incrementally. The key is stored encrypted and never shown again. You can rotate it from the connection page.

  • The provider revises recent days. Each sync reads the trailing 3 days again, and a month that has just ended is read again.
  • A workspace can hold several connections of one kind, for example two organizations. Their records are kept apart by connection.
  • The report doesn't carry a customer, feature or end user. Those come from your app's data.

OpenAI has its own page: OpenAI.

This connector has not been run against a live account. It was written from Anthropic's public documentation and tested against mocked responses.