AI Gateway
BetaOverview
Route the Claude Agent SDK’s model calls through Orq.ai’s AI Gateway without changing any agent logic. The SDK drives the Claude CLI, which readsANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN from the environment, so pointing those variables at the gateway routes every turn through Orq.ai.
For the raw Claude Messages API without the agent runtime, see the Anthropic SDK integration.
Configuration
Set the following environment variables before running the agent:Basic Example
With the environment variables set, every agent run routes through the AI Gateway with no change to the calling code:- TypeScript
- Python
TypeScript
Model Selection
ChangeANTHROPIC_MODEL to route the agent to any supported model. The anthropic/ prefix is required for Claude models. Browse every available model in Supported Models.