OmniRoute
Local AI gateway / model router · Free
A self-hosted gateway between applications and AI providers. Offers one compatible API, selects models, and switches to a fallback on errors or exhausted quotas. Includes a web dashboard, usage tracking, context compression, and a built-in MCP server for gateway management.
Also known as: Omni Route; OmniRoute AI Gateway

What you can use for free
The gateway itself is free under MIT and can be self-hosted.
Paid features and costs
APIs, provider subscriptions, and servers cost separately; free quotas have limits.
Access and limitations
The gateway itself is free under MIT and can be self-hosted. APIs, provider subscriptions, and servers cost separately; free quotas have limits. The README also mentions an optional Radar catalog for project supporters; its exact terms are unconfirmed because the planos page returned 404.
Use cases
- One API URL for multiple tools and providers
- Fallback models for failures and limits
- Monitoring costs and available quotas
- Running Codex CLI through a chosen external model
Example workflow
A possible workflow; this is not a report of hands-on testing.
Example workflow with OmniRoute: One API URL for multiple tools and providers.
Before you start
- A compatible client, your own AI provider access, and one request type.
- Primary and fallback routes, and acceptable costs.
Steps
- Configure the primary route through the unified API and test a short request.
- Add a fallback model and test behavior on an error or exhausted quota.
- Compare the actual response and usage accounting with the selected routes.
Check your result
- Fallback does not silently change the expected format or important model capabilities.
- Provider access and costs are accounted for; a self-hosted gateway does not make paid models free.
Choosing OmniRoute
One API URL for multiple tools and providers
Choose this when
- One API URL for multiple tools and providers
- Fallback models for failures and limits
- Monitoring costs and available quotas
Requirements
- Configure your own providers and routes; the gateway does not make access to a paid model free.
- Installation through npm requires postinstall to prepare native files; web-cookie providers may require separately installed Playwright Chromium.
Things to consider
- Costs and limits of free use: APIs, provider subscriptions, and servers cost separately; free quotas have limits.
- Terms of use: MIT
- Configure your own providers and routes; the gateway does not make access to a paid model free.
- Automatic fallback works while a suitable healthy target remains; listed free quotas depend on the provider and may change.
Frequently asked questions
What can you use for free in OmniRoute?
The gateway itself is free under MIT and can be self-hosted.
What additional costs might arise with OmniRoute?
APIs, provider subscriptions, and servers cost separately; free quotas have limits.
What do you need to use OmniRoute?
Configure your own providers and routes; the gateway does not make access to a paid model free.
How do you get started with OmniRoute?
Configure the primary route through the unified API and test a short request. Add a fallback model and test behavior on an error or exhausted quota. Compare the actual response and usage accounting with the selected routes.
What should you consider when choosing OmniRoute?
A self-hosted AI provider gateway that can connect to a compatible client through an API.
How do you connect a client to OmniRoute and check the selected models?
The README suggests installing the omniroute package, starting the gateway, and giving the client a Base URL for local /v1, a key from Dashboard → Endpoints, and the auto model or a specific provider/model. A request to /v1/models shows connected models. Clients without headers can use URLs with a token in the path; the author primarily recommends Authorization: Bearer.
License
MIT
MIT — permissive license
You can use, modify, distribute, and sell the code, including in a closed-source commercial product. When sharing copies or substantial portions of the code, retain the license text and copyright notice. You do not need to open-source your entire project; the author provides no warranties.
License termsUsage details
A self-hosted AI provider gateway that can connect to a compatible client through an API. Configure your own providers and routes; the gateway does not make access to a paid model free.
Technologies and topics
- OpenAI-compatible API
- MCP