Which connector to use
Claude Enterprise parent organizations do not appear in Claude Console and have no Admin API keys. A Console Admin key will not work on Anthropic Claude AI. An Analytics API key will not work on Anthropic Claude Code.
Connect both if you pay for Console API usage and a claude.ai Enterprise org. Each connector is a separate billing datasource.
Connect Anthropic Claude Code
Use this connector for Claude Console (Claude Platform) API usage and subscription usage exposed by the Usage and Cost Admin API.- Manual setup
- Terraform
1
Create an Admin API key
In Claude Console > Settings > Admin keys, create an Admin API key with usage and cost access. You must be an organization admin. Copy it immediately (
sk-ant-admin01-…). A standard Claude API key will not work.2
Connect in Costory
Go to Integrations, click + Add integration, then choose Anthropic Claude Code under Billing.
3
Enter connection details
Fill Connection name (default Anthropic) and Admin API key. Start date is optional. Leave it empty to use Costory’s default lookback.
4
Validate, then save
Click Validate. Save stays disabled until the Admin API key can read organization usage and cost. If this is the only billing source and it is demo data, Costory asks you to confirm before replacing it.
What Costory includes
- API usage and subscription usage from Anthropic billing exports.
- Included plan usage labeled as
Included<subscription_type>in Charge description (for Business/Enterprise plans). - Per-model breakdown (group by Service name = model).
- Per-actor attribution using user email or API key name.
- Taxes, credits, and adjustments outside usage line items.
- Non-usage fees that do not appear in the Anthropic billing export.
- claude.ai Enterprise seat or usage-credit costs. Use Anthropic Claude AI for those.
- Included vs API usage: filter by Charge description:
Included<subscription_type>for subscription usage.APIfor pay-as-you-go usage.
- Per-user email spend: group by Resource name or Sub account id (mapped to the actor email or API key name).
- Per-model costs: group by Service name (model) and break down by SKU (
inputvsoutputtokens).
Anthropic Console costs are attributed to input tokens. Output token rows are included for usage analysis but have $0 cost.
Connect Anthropic Claude AI
Use this connector for Claude Enterprise costs on claude.ai. Costory reads per-user cost from the Get Per-User Cost endpoint. See Anthropic’s Analytics API for how to enable access.1
Enable public API access
Sign in to claude.ai as the primary owner. Open claude.ai > Organization settings > API and enable public API access.
2
Create an Analytics API key
Create an Analytics API key with scope read:analytics. Copy it immediately (
sk-ant-api01-…). A Console Admin key (sk-ant-admin01-…) will not work.3
Connect in Costory
Go to Integrations, click + Add integration, then choose Anthropic Claude AI under Billing.
4
Enter connection details
Fill Connection name (default Anthropic Claude AI), Account name, and Analytics API key. Start date is optional. Leave it empty to use Costory’s default lookback.
5
Validate, then save
Click Validate. Save stays disabled until the Analytics API key can read Claude Enterprise per-user cost. If this is the only billing source and it is demo data, Costory asks you to confirm before replacing it.
Field reference
What Costory includes
- Per-user cost from the Claude Enterprise Analytics API.
- Your Account name as Sub account id, so you can tell multiple Enterprise orgs apart.
- Claude Console / API usage. Use Anthropic Claude Code for that.
- Unattributed org-wide API-key or automation traffic (the org-wide cost report is out of scope).
- Seat SKU on seat-based Enterprise plans. Those plans only show usage credits.
Seat-based Enterprise plans only show usage credits, not the seat SKU. Cost and usage endpoints apply to usage-based Enterprise plans. For seat-based plans they reflect usage credits only.
Rotate the Analytics API key from Integrations when you need a new credential. Account name stays the same.
