OpenClaw model routing

OpenClaw AI model router for serious agent workflows

Run Sage Router behind OpenClaw so agents use one stable local, Tailnet, or hosted endpoint while model choice moves into policy. Route OpenAI-compatible tools, Anthropic-compatible tools, Codex OAuth-backed routes, Ollama, NVIDIA NIM, Gemini, and authorized provider APIs without rewriting every agent.

Create API key OpenClaw guide Coding-agent routes Self-hosted routing

OpenClaw skill setup

Install the Sage Router skill with openclaw skill add sage-router --from clawhub, configure it, then run the router on local port 8790 or a Tailnet host.

OpenAI and Anthropic endpoints

OpenClaw tools can use OPENAI_BASE_URL=http://localhost:8790/v1 and ANTHROPIC_BASE_URL=http://localhost:8790 while credentials remain on the router host.

Codex OAuth passthrough

OpenClaw-managed Codex tokens can be passed through from the auth profile store or environment. Sage Router does not implement its own Codex device-login route.

60-second OpenClaw setup

openclaw skill add sage-router --from clawhub
openclaw skill configure sage-router
python3 router.py --port 8790

export OPENAI_BASE_URL=http://localhost:8790/v1
export OPENAI_API_KEY=local-router
export ANTHROPIC_BASE_URL=http://localhost:8790
export ANTHROPIC_API_KEY=local-router

Local-first agents

Keep local Ollama and Tailnet routes first, then escalate to authorized cloud providers when quality, latency, or context requires it.

Credential load balancing

Authorized credential pools can load balance and fail over on rate limits, provider health, latency, and policy.

Provider boundary

Sage Router does not grant unauthorized OpenAI, Codex, Anthropic, Gemini, NVIDIA, Ollama Cloud, or other provider access. Customers bring authorized credentials or use hosted routing for Sage Router account control.

OpenClaw without fragile model configuration sprawl

Serious OpenClaw work often spans local tools, cloud APIs, coding models, multimodal inputs, and Codex-style routes. Sage Router centralizes selection, failover, credential health, and route telemetry behind one OpenClaw-friendly endpoint.

Next steps

Create an API key, open the OpenClaw guide, copy the hosted quickstart, or estimate routing fit.