Anthropic has two valid CostHawk integration modes.Documentation Index
Fetch the complete documentation index at: https://docs.costhawk.ai/llms.txt
Use this file to discover all available pages before exploring further.
Mode A: Admin API Sync (Recommended start)
Use an Anthropic Admin key (sk-ant-admin-...) for organization-level reporting with minimal setup.
- Endpoint coverage:
/v1/organizations/usage_report/messages/v1/organizations/cost_report/v1/organizations/usage_report/claude_code
- No app code changes required
- Best for baseline visibility and reporting
Admin API Setup
Use this if your priority is fast org-level visibility.
Mode B: Proxy + Wrapped Key (Advanced controls)
Use wrapped keys when you need runtime enforcement (hard limits, attribution, policy controls).If you are not sure whether you have a wrapped key or a CostHawk access token, read Wrapped Keys first.
Proxy URL
https://api.anthropic.com/v1/messages.
Python (Anthropic SDK)
Node.js (Anthropic SDK)
curl
When calling proxy directly, always use
Authorization: Bearer ch_sk_....Recommended Pattern
- Start with Admin API sync for immediate reporting coverage.
- Keep MCP enabled for assistant-native analytics workflows.
- Add proxy routing only for workloads that need enforcement controls.
