Skip to content
rawroute

Migrate from OpenRouter in 60 seconds Same OpenAI SDK, 52–71% lower spend.

Moving from OpenRouter to rawroute requires changing two environment variables—base_url (https://api.rawroute.dev/v1) and your API key—plus dropping vendor prefixes like "anthropic/" or "openai/" from model strings. You immediately eliminate OpenRouter's 5.5% credit fee and pay 30–50% of official chat list prices.

Verified 28.11.2026

Model ID mapping (OpenRouter → rawroute)

OpenRouter IDrawroute IDOpenRouter +5.5%rawroute (0%)
anthropic/claude-opus-4-5 / opus-5-5claude-opus-5-5$4.22 / $21.10$2.00 / $10.00
anthropic/claude-sonnet-5-5claude-sonnet-5-5$2.11 / $10.55$1.00 / $5.00
openai/gpt-6.2-astragpt-6.2-astra$8.44 / $42.20$2.40 / $12.00
google/gemini-4-argongemini-4-argon$2.11 / $10.55$1.00 / $5.00

Bonus: switch Claude to native /v1/messages

While OpenRouter wraps most calls through OpenAI schemas, rawroute lets Anthropic SDK clients talk directly to https://api.rawroute.dev/v1/messages so prompt caching breakpoints and extended thinking blocks work verbatim.

# - OPENAI_BASE_URL=https://openrouter.ai/api/v1
# - OPENAI_API_KEY=sk-or-...
RAWROUTE_BASE_URL=https://api.rawroute.dev/v1
RAWROUTE_API_KEY=rr_live_your_key_here

When NOT to use rawroute

FAQ

Can I also run `rawroute init` to detect my OpenRouter setup automatically?

Yes. `rawroute init --verify` scans your repo SDKs, writes RAWROUTE_BASE_URL and RAWROUTE_API_KEY to .env, and checks live connectivity.

Related guides