For Codex and coding agents
Use one base URL and stable profiles such as sage-router/frontier while routing behind the scenes across healthy authorized providers.
Guide for agent teams
Agent harnesses break when every tool owns its own model picker. A local-first router gives Codex, OpenClaw, Cursor, Aider, Continue, OpenHands, and OpenAI-compatible clients one model layer that can fail over across authorized providers and local models.
Copy the hosted base URL, key placeholder, and smoke test now. The account page will auto-create the first setup key after sign-in.
Teams running serious agents usually combine hosted frontier models, local Ollama routes, private endpoints, and provider-specific subscriptions. The problem is not access to one more model. The problem is that every harness has a separate fallback story, a separate model picker, and a different failure mode when a provider rate-limits, slows down, or goes dark.
Sage Router takes a different bet: routing is local-first infrastructure for access you already control.
Hosted model marketplaces are convenient, but they can trade away three things agentic teams care about:
Sage Router runs on your machine, server, Tailnet host, or hosted control plane. It exposes one OpenAI-compatible endpoint. Your tools point at it. The router can:
Use one base URL and stable profiles such as sage-router/frontier while routing behind the scenes across healthy authorized providers.
Keep local models in the fallback chain for privacy, cost control, and continuity when cloud providers rate-limit.
Hosted Sage Router adds generated keys, quotas, analytics, health checks, and reliability routing without advertising bundled model resale.
python3 router.py --port 8790 export OPENAI_BASE_URL=http://localhost:8790/v1 export OPENAI_API_KEY=local-router codex --model openai/gpt-4.1
Now every Codex request can be policy-routed across your providers and local models. You did not rewire Codex; you swapped the model layer underneath it.
The local core is free and open source. Hosted Sage Router monetizes routing convenience: generated keys, quotas, provider health monitoring, hosted dashboards, uptime checks, and reliability routing. Public plans do not bundle provider resale; customers remain responsible for authorized provider access.
Start with the hosted API quickstart, configure Codex, compare Sage Router vs OpenRouter, or estimate routing fit with the calculator.