One endpoint for every model.
Every model, one URL — resilient by default.
AnyRouter is a developer-first AI gateway. We eliminate vendor lock-in and hand you a single OpenAI-compatible endpoint for every major model — engineered for better prices, higher uptime, and production-grade reliability. Pool your own keys and subscriptions behind it, and let automatic failover keep your agents running when any one provider doesn't.
One key reaches every major provider
What we build
One URL, every model
Point any OpenAI- or Anthropic-compatible client at a single base URL and reach hundreds of models across providers — no per-provider SDKs, no client rewrites.
Routing that never stalls
A 401, 429, or 5xx on one upstream transparently fails over to the next. Your agent finishes the task instead of dying mid-run.
Bring your own keys & plans
Pool your own provider keys and paid subscriptions behind one gateway. BYOK traffic is never charged platform credits — you only pay your own providers.
Everything the gateway does
One URL, every model
A single OpenAI- and Anthropic-compatible endpoint reaches hundreds of models across providers.
Auto-failover
401, 429, and 5xx errors transparently retry on the next upstream so your run never stalls.
BYOK + subscription pooling
Pool your own provider keys and paid plans behind one gateway. BYOK never spends platform credits.
Better prices
Transparent per-token pricing and a curated free tier — route real traffic before you spend a cent.
Higher uptime
Continuous upstream monitoring plus cross-provider fallback keeps the gateway answering when one provider doesn't.
Swap models, no code change
Presets and virtual models let you change the underlying model from your account, not your codebase.
CLI & agent launchers
npx @anyr/cli claude points Claude Code, Codex, or Cursor at the gateway — config injects on demand, then wipes clean.
Private by default
Prompt and completion bodies are never logged unless you opt in. Secrets are encrypted at rest with per-row salts.
MCP server built in
Manage keys, credits, and the catalog from any MCP client — the gateway speaks the protocol natively.
Built for coding agents
Switch the model behind Claude Code, Codex, or Cursor without editing a single config file — from the command line or straight from your code.
The CLI
npx @anyr/cli claude launches your coding agent on the gateway. Pass a flag to swap models mid-project — same agent, different model, no config surgery. Your keys and presets inject on demand, then wipe clean on exit.
npx @anyr/cli claude --model glm-4.7-flashThe SDK
@anyr/sdk and the Vercel AI SDK provider @anyr/ai-sdk-provider let your own agents reach every model through one client — change the model id in code and routing, failover, and billing follow.
createAnyRouter().chat("anthropic/claude-opus-4")A gateway that improves itself
AnyRouter is an AI-first, self-improving development project: built and maintained by AI coding agents running on the very gateway they ship. New providers, fixes, and features land continuously as those agents test, deploy, and refine the platform — so the catalog stays current and the routing keeps getting better without waiting on a release cycle.
Why we exist
The model landscape changes every week — new providers, new prices, new rate limits. Wiring each one into your stack by hand is wasted effort that breaks the moment something shifts. AnyRouter absorbs that churn so you can treat models as interchangeable building blocks: pick the best one for the job, and let the gateway handle the keys, fallbacks, and plumbing underneath.
What we stand for
Private by default
We don't log prompt or completion bodies unless you opt in per account. Secrets are encrypted at rest with per-row salts.
Open and compatible
We speak the OpenAI, Anthropic, and Responses APIs you already use. No lock-in — point your client elsewhere any time.
Free every month
Free $2 credit when you sign up — no card required. Use our credits, or connect your own keys. A curated free tier lets you route real traffic before spending a cent.