The RouterLane API.Two variables to set up.
Your team's developers can use the same lanes from their own tools. Claude Code, Codex, the SDKs and plain HTTP work unchanged against the RouterLane API, included in every plan.
Get a key
Your workspace admin makes keys. They start with
rl_. No workspace yet? Get early access.Point your client at RouterLane
Base URL
https://api.routerlane.com, or/v1for OpenAI clients.Use a lane as the model
fast,normal,smartorsmart-plus. Claude-style names work too.
export ANTHROPIC_BASE_URL=https://api.routerlane.com
export ANTHROPIC_AUTH_TOKEN=$ROUTERLANE_API_KEY
export ANTHROPIC_MODEL='smart[1m]'
export ANTHROPIC_DEFAULT_OPUS_MODEL='smart[1m]'
export ANTHROPIC_DEFAULT_SONNET_MODEL='normal[1m]'
export ANTHROPIC_DEFAULT_HAIKU_MODEL=fast
claudemodel = "normal"
model_provider = "routerlane"
[model_providers.routerlane]
name = "RouterLane"
base_url = "https://api.routerlane.com/v1"
env_key = "ROUTERLANE_API_KEY"
wire_api = "responses"curl https://api.routerlane.com/v1/chat/completions \
-H "Authorization: Bearer $ROUTERLANE_API_KEY" \
-H "content-type: application/json" \
-d '{"model": "fast", "messages": [{"role": "user", "content": "hello"}]}'import os
from openai import OpenAI
client = OpenAI(base_url="https://api.routerlane.com/v1",
api_key=os.environ["ROUTERLANE_API_KEY"])
r = client.chat.completions.create(
model="normal",
messages=[{"role": "user", "content": "Explain this stack trace."}],
)
print(r.choices[0].message.content)Three API formats.Any client that speaks one.
Anthropic Messages, OpenAI Chat Completions and OpenAI Responses, requests and streams alike. Change the base URL, set the key, and use a lane as the model.
Claude Code
Environment variables in your shell or in settings.json.
Codex
A provider block in ~/.codex/config.toml.
pi
An entry in pi's models file, then the model picker.
OpenAI SDK
Base URL with /v1. Chat Completions and Responses.
Anthropic SDK
Base URL without /v1.
Vercel AI SDK
The OpenAI-compatible provider.
LangChain
ChatOpenAI with RouterLane's base URL.
curl
-i shows the lane, model and effort the router chose.
Every model for your team.And for your developers.
Every model for every employee, work waiting each morning, admins in control and one flat price. We are opening RouterLane to teams in small groups. Leave your email to get a place.
Thanks, we have it. We will be in touch within one business day.