Anthropic (Native Mode)
Use the Anthropic SDK with Enterprise Router
Setup
Install the Anthropic SDK:
Configure the client:
Basic message
Streaming
Tool use
System prompts
TypeScript
Notes
anthropic-versionheader: The gateway automatically setsanthropic-version: 2023-06-01if your request doesn’t include one.- All Anthropic features are supported: vision, tool use, extended thinking, batches — the request is proxied unmodified.
Supported models
claude-opus-4-6,claude-sonnet-4-6claude-opus-4-5,claude-haiku-4-5
New Anthropic models work automatically.