The free AI gateway: one endpoint for hundreds of providers, with quota-aware fallback
open sourceMITself-hostablefreeMCP
Forked from 9Router in 2026. To extend 9router with multi-modal APIs and a full TypeScript rewrite
OmniRoute is a self-hosted AI gateway with a web dashboard: you connect your own provider accounts (API keys, OAuth sign-ins to coding subscriptions such as Claude Code, Codex, GitHub Copilot and Kimi Code, keyless free tiers, and web-session cookie providers) and it serves them through one OpenAI-compatible endpoint at localhost:20128/v1, plus Ollama-style routes, MCP, A2A and a REST management API. Its 'combos' route each request across models with 22 strategies and automatic fallback when a quota runs out or a provider fails, auto/subscription uses only plans you already pay for, and a compression pipeline cuts prompt and tool-output tokens. The project says it started as a fork of 9router and a TypeScript port of CLIProxyAPI, catalogs 394 providers and flags providers whose terms are marked tos: avoid, which it leaves out of automatic routing by default; it doesn't grant any quota itself. It is MIT-licensed, created by Diego Souza and now a Cheaper Inference product, runs from npm, Docker, an Electron desktop build or Termux on Android, and Cheaper Inference sells OmniRoute Cloud, a managed instance billed monthly.
Ways to install
On your own server
Hosted for you
Problems it solves
- my Claude Code session stops when I hit the rate limit and I want it to fall back to another model automatically
- point Codex, Cursor, Cline or Aider at one local endpoint that reaches every model I have access to
- combine free tiers from many AI providers behind one OpenAI-compatible API
- use the coding subscriptions I already pay for before falling back to paid API keys
- a self-hosted alternative to OpenRouter that runs on my laptop or a cheap VPS
- route each request to the cheapest or fastest model that still has quota left
- track quota and cost across dozens of AI provider accounts in one dashboard
- cut token usage by compressing long tool outputs before they reach the model
- run an AI gateway on my Android phone or a Raspberry Pi
- let Claude Desktop or another agent manage my AI gateway's providers and routing over MCP
- keep coding when one AI provider is down by failing over to another one
- spread requests across several API keys for the same provider with cooldowns on rate limits
- use Ollama-compatible or OpenAI-compatible clients with models from many different labs
- get webhook alerts in Slack or Discord when a provider's quota runs out
- send one prompt to a panel of models and get back a single combined answer
- add my own models from Gemini, DeepSeek, Kimi and GLM to VS Code's Copilot Chat model picker
Features
- OpenAI-compatible endpoint (chat, responses, embeddings, images, audio, OCR) at /v1
- Ollama-compatible routes and tokenized URL aliases for clients that can't send headers
- 394-provider catalog with API-key, OAuth, keyless and web-cookie connections
- combos: 22 routing strategies with automatic fallback, plus zero-config auto, auto/coding, auto/fast, auto/cheap and auto/subscription
- three-layer resilience: provider circuit breaker, per-connection cooldown, per-model lockout
- multiple accounts and keys per provider, with Quota-Share routing
- quota telemetry and cost analytics, with subscription providers counted as $0
- 12-engine token compression pipeline (RTK, Caveman, LLMLingua-2 and others)
- providers flagged tos: avoid excluded from automatic routing by default
- MCP server (stdio, streamable HTTP, SSE) with 110 tools and scoped auth
View 7 more
- A2A agent endpoint at /.well-known/agent.json
- webhooks to Slack, Discord, Telegram or any URL for request and quota events
- omniroute CLI with 80+ commands, remote mode with scoped tokens, and
omniroute runto launch Claude Code, Codex, Aider and others through it - web dashboard, PWA, Electron desktop build and Android via Termux
- Docker images for AMD64 and ARM64
- OmniCopilot extension that adds OmniRoute models to VS Code's Copilot Chat
- memory with SQLite full-text and vector search
Limitations
- Doesn't supply any AI quota itself: you connect your own provider accounts and keys, and each provider's limits, availability and terms apply56
Ways to run it
OmniRoute (self-hosted)
You arrange
- Node.js 22.22+ or 24, Bun, or Docker
- your own accounts, API keys or subscriptions with each AI provider
- Playwright's Chromium for web-cookie providers such as Gemini Web
OmniRoute Cloud
hosting billed monthly (no price listed); inference billed separately7
Only in this edition
- a dedicated instance in a region you choose
- HTTPS, updates, monitoring and daily backups
Capabilities
| Has an API | plan not known |
|---|---|
| Has a command line tool | plan not known |
| Has an MCP server | plan not known |
| Sends webhooks | plan not known |
Alternatives
The same job
These do what OmniRoute does.
- 9Router FREE AI Router & Token Saver
- OpenRouter One API for text, image, video, and audio models.
- One API Access all LLM through the standard OpenAI API format, easy to deploy & use
- New API An AI gateway for models, applications, and agents
- CLIProxyAPI Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code and Devin as an OpenAI/Gemini/Claude/Codex compatible API service
- LiteLLM The AI Gateway for platform teams.