Skip to main content
Anthropic has two valid CostHawk integration modes. 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).
A wrapped key only works against the CostHawk proxy. Do not send ch_sk_... directly to api.anthropic.com.
If you are not sure whether you have a wrapped key or a CostHawk access token, read Wrapped Keys first.

Proxy URL

This replaces https://api.anthropic.com/v1/messages.

Python (Anthropic SDK)

Node.js (Anthropic SDK)

curl

When calling proxy directly, always use Authorization: Bearer ch_sk_....
  1. Start with Admin API sync for immediate reporting coverage.
  2. Keep MCP enabled for assistant-native analytics workflows.
  3. Add proxy routing only for workloads that need enforcement controls.