Setting Up Anthropic Cost Tracking
Anthropic cost tracking uses their Admin API to fetch usage data for Claude models.
Prerequisites
- An Anthropic account with API access
- Admin access to view organization usage
Step 1: Create an API Key
- Go to Anthropic Console API Keys
- Click Create Key
- Enter a name (e.g., "Administrate Cost Tracking")
- Click Create Key
Important: Copy the key immediately - it won't be shown again.
Step 2: Find Your Organization ID (If Required)
Some Anthropic accounts require an Organization ID:
- Go to Anthropic Console Settings
- Copy the Organization ID if displayed
Step 3: Connect in Administrate
In Administrate, go to LLM Providers > Add Provider and enter:
| Field | Value |
|---|---|
| Provider Type | Anthropic |
| Name | Your preferred name |
| Admin API Key | The key from Step 1 |
| Organization ID | (Optional) From Step 2 |
What Gets Synced
Once connected, we'll automatically sync:
- Usage - Daily token usage by Claude model
- Costs - Daily costs (when available via API)
Data syncs every hour automatically.
Note on Anthropic API Limitations
Anthropic's usage API is newer than OpenAI's. Some limitations:
- No project-level breakdown - Usage is organization-wide
- Cost calculation - May be estimated based on token counts and published pricing
Troubleshooting
"403 Forbidden" error - Your API key may not have admin access. Contact Anthropic support to enable usage API access.
No usage data appearing - Usage data may take 24-48 hours to appear - Ensure your organization has actual API usage
Security Best Practices
- Create a dedicated API key just for cost tracking
- Rotate the key periodically
- Don't share the key or commit it to version control
Note: Anthropic doesn't currently offer granular API key permissions. The same key that can read usage can also make API calls. Keep it secure.
Next Steps
- Tracking Anthropic Costs by Company - Set up per-company cost attribution