Anthropic-compatible base URL
Point supported Claude-style clients at ANTHROPIC_BASE_URL=https://api.sagerouter.dev for hosted routing, or at a local/Tailnet Sage Router when provider credentials should stay private.
Claude-style routing
Use one Anthropic-compatible base URL for Claude Code, Claude-style SDK clients, Dario-backed routes, local models, and BYOK providers. Sage Router keeps provider access authorized by the customer; public plans do not bundle or pool unauthorized Anthropic subscriptions.
Point supported Claude-style clients at ANTHROPIC_BASE_URL=https://api.sagerouter.dev for hosted routing, or at a local/Tailnet Sage Router when provider credentials should stay private.
If Dario or another authorized Anthropic-compatible path is available, keep it in the routing matrix. If it is not active, the route stays optional instead of becoming a bundled entitlement.
When a Claude-compatible route, provider key, or fallback provider rate-limits, Sage Router can select another eligible authorized route instead of forcing each client to own failover logic.
export ANTHROPIC_BASE_URL=https://api.sagerouter.dev
export ANTHROPIC_API_KEY=sk_sage_your_generated_key
curl "$ANTHROPIC_BASE_URL/v1/messages" \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{
"model": "sage-router/frontier",
"max_tokens": 200,
"messages": [{"role": "user", "content": "Route this Claude-style request"}]
}'
Image, audio, video, and document inputs are routed only to capable models, and served modalities are recorded per model for future routing decisions.
Provider credential pools can load balance and fail over across authorized keys or subscription paths when a route is unhealthy or rate-limited.
Sage Router does not grant unauthorized Anthropic access. Customers bring authorized provider access or use hosted routing for Sage Router account control.
Anthropic-compatible clients are excellent when Claude is the intended model family, but agent teams still need policy, fallback, local models, OpenAI-compatible alternatives, credential health, and observability. Sage Router keeps the Claude-style interface while moving route choice behind a controllable gateway.
Create an API key, read integrations, open the Anthropic-compatible guide, or request managed Anthropic review.