Claude Code routing

Claude Code router for authorized Anthropic-compatible routes

Point Claude Code at Sage Router when you want one controllable routing layer for Anthropic-compatible traffic, customer-authorized Anthropic or Dario paths, local models, and fallback providers. Hosted Sage Router keys manage account access; provider credentials and subscriptions remain authorized by the customer.

Create API key Claude Code guide Anthropic API route Browse models

Anthropic-compatible setup

Claude Code and Claude-style clients can use ANTHROPIC_BASE_URL=https://api.sagerouter.dev with a generated sk_sage_* key for hosted account control.

Dario-ready subscription paths

Authorized Anthropic and Dario-compatible routes can live behind the same policy layer. If you do not have an active subscription, Sage Router leaves that route optional instead of pretending to bundle it.

429 failover

When a provider path, credential, or model is rate-limited, Sage Router can fail over to another eligible route that satisfies the request modality and policy.

60-second Claude Code setup

export ANTHROPIC_BASE_URL=https://api.sagerouter.dev
export ANTHROPIC_API_KEY=sk_sage_your_generated_key

# Claude Code uses Anthropic-compatible messages traffic.
# Keep provider keys on your router host or in the hosted account path.
claude --append-system-prompt "Use Sage Router for model routing"

Tool-safe fallback

Agentic profiles keep tool-call routing strict while letting capable providers compete when Claude-family routes are unhealthy.

Multimodal routing

Image, audio, video, and document requests are matched to capable models, and served modalities are recorded per model for future routing decisions.

Provider boundary

Sage Router does not grant unauthorized Claude, Anthropic, or Dario access. Bring authorized provider access or use hosted routing for Sage Router account control.

Claude Code without one-provider lock-in

Claude Code is strongest when the harness keeps a stable Claude-style contract. Sage Router preserves that shape while adding model health, credential load balancing, local fallback, and private route telemetry behind the endpoint.

Next steps

Create an API key, open the Claude Code guide, review Anthropic-compatible routing, or request Anthropic/Dario review.