Skip to main content

AI Gateway

Beta

Overview

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 reads ANTHROPIC_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

Model Selection

Change ANTHROPIC_MODEL to route the agent to any supported model. The anthropic/ prefix is required for Claude models. Browse every available model in Supported Models.