Switching from OpenRouter takes one line
Change your base URL and swap in an OrcaRouter key. Your models, your SDK and the rest of your code stay exactly as they are — openrouter/ router ids are the one rename.
Three things to check
- Use the right base URL for your SDK — The OpenAI SDK wants https://api.orcarouter.ai/v1. The other two want https://api.orcarouter.ai — each appends its own path.
- Swap in your OrcaRouter key — The value changes — an OpenRouter key will not authenticate here — but the place does not: whichever header your SDK already sends, we read it.
- Keep your model names — We use the same vendor/model names, so anthropic/claude-sonnet-4 works as-is. OpenRouter's own openrouter/ router ids are the exception: those get renamed.