Prerequisites
- A Caveman Cloud account with a gateway URL (
CAVE_GATEWAY_URL) - Your Cave API key (
CAVE_API_KEY) - Your model provider key (e.g.,
OPENAI_API_KEY,ANTHROPIC_API_KEY)
- Vercel AI SDK
- LangChain
- LiteLLM
- CrewAI
- Pydantic AI
Use For Anthropic models, keep the native protocol:
@ai-sdk/openai-compatible for OpenAI-protocol models. The Anthropic provider takes a baseURL too. Either way, the gateway keeps each model on its native protocol.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