Migrating from LiteLLM to zrouter
Drop Python memory overhead and Redis operational complexity while keeping 100% OpenAI, Anthropic, Responses, and Gemini SDK compatibility.
1. Start the Single Rust Binary
CREDENTIAL_ENCRYPTION_KEY="$(openssl rand -hex 32)" \ ZROUTER_PROMPT_GUARDRAIL=redact \ ZROUTER_INJECTION_GUARD=block \ ZROUTER_SMART_ROUTING_SHADOW=1 \ ./zrouter-server
2. Swap Your Client Base URL
export OPENAI_BASE_URL="http://127.0.0.1:20128/v1" export ANTHROPIC_BASE_URL="http://127.0.0.1:20128"
3. Verify Savings & Observability
Inspect live counterfactual savings at GET /api/routing/shadow, Prometheus metrics at GET /metrics, and copy-ready coding agent configs at GET /api/onboarding/snippets.
← Back to Gateway Comparison · ROI Calculator · API Explorer