baseURL to the gateway. The SDK appends /v1/messages itself, and the gateway speaks Anthropic’s protocol natively, so nothing is translated. Claude Pro/Max OAuth bearer tokens pass through unchanged.
Prerequisites
- A Caveman Cloud account with a gateway URL (
CAVE_GATEWAY_URL) - Your Cave API key (
CAVE_API_KEY) - Your Anthropic provider key (
ANTHROPIC_API_KEY)
Anthropic SDK (TypeScript)
Replace{{app}} with your workload name or app slug.
Anthropic SDK (Python)
Labeling traffic
Addx-cave-agent or x-cave-workflow headers to identify different parts of your system in Traces. These labels do not grant access; they only tag requests for filtering and analysis.
Next steps
- Query your traces with Caveman Cloud SQL
- Set up evaluations to measure workload quality
- Configure optimizations for eligible workloads