SysArt
Book a briefing
SysArt

AI security

OmniRoute: What the LLM Gateway Does and How to Run It Safely

OmniRoute explained: how the open-source LLM gateway routes Claude Code and OpenCode across providers, its security defaults and how enterprises should vet it.

Last reviewed by SysArt AI Architecture Team10 min readHow we review

In short

OmniRoute is a free, MIT-licensed LLM gateway that you run yourself. It gives coding tools such as Claude Code and OpenCode one OpenAI-compatible endpoint and routes each request across many model providers, falling back when a quota or provider fails. Because it holds every key and sees every prompt, treat it as security-critical infrastructure.

Key takeaways

  • OmniRoute is a self-hosted, MIT-licensed gateway that exposes one OpenAI-compatible endpoint, by default on localhost port 20128, and routes requests across several hundred providers with fallback chains it calls combos.
  • Its controls are real but mostly opt-in: client API keys are not required by default, PII masking is off by default and fails open, and dashboard sign-in through OIDC is optional.
  • OmniRoute and 9Router can reuse subscription logins for tools such as Claude Code; Anthropic's Claude Code terms do not permit third parties to route requests through Free, Pro, Max or Ultra plan credentials, so check every provider's terms first.
  • A router holds every provider key and sees every prompt and response, so its patching, logging, data residency and any MITM certificate authority fall under the same scrutiny as an identity provider.
  • Enterprises usually need a governed AI gateway in front of approved models, ideally self-hosted ones served with vLLM, with SSO, per-team keys, audit logs and data loss prevention.
Aerial view of a complex highway interchange with looping ramps

What is OmniRoute?

OmniRoute is a free, open-source AI gateway that you run on your own laptop or server. It gives AI tools one OpenAI-compatible endpoint and forwards each request to one of many large language model (LLM) providers behind it.

An LLM gateway, or LLM router, is a proxy between applications and model providers. Applications call one address with one key; the gateway decides which provider and model answers. OmniRoute targets developers who use coding agents such as Claude Code, Codex, Cursor, Cline and OpenCode and want them to keep working when a quota runs out.

Key facts, as of 15 November 2026:

  • Licence and history. MIT-licensed. The repository was created on 13 February 2026 and the latest release is v3.8.53, published on 6 November 2026.
  • Ownership. The repository now sits under the GitHub organisation cheaper-inference, and links to the original diegosouzapw/OmniRoute address redirect there. The README lists Cheaper Inference, a commercial service that resells model access, as a project sponsor. The npm package is omniroute and the Docker image is still published as diegosouzapw/omniroute.
  • Scope. The project registers several hundred providers. Its own figures differ between the repository description and the README, so check the dashboard rather than a headline number.

How does OmniRoute work?

OmniRoute receives a request on http://localhost:20128/v1, picks a target from a chain of models and forwards it, moving to the next target if a provider fails, runs out of quota or costs too much.

  • Combos. A combo is an ordered set of models. The README lists 22 routing strategies, such as priority, round-robin, cost-optimised and quota-weighted. The auto presets pick for you; auto/subscription uses only plan quota you already pay for and fails closed rather than falling back to a billable API.
  • Providers. Targets include paid APIs, free tiers, subscription accounts connected through OAuth sign-in, aggregators, and local servers such as Ollama and vLLM.
  • Token compression. Built-in engines shorten tool output and context before it reaches the model. The project’s savings figures are its own claims; measure quality on your own tasks before relying on them.
  • Extras. A dashboard with usage and cost tracking, an optional semantic cache, optional memory, and an MCP and A2A interface through which an agent can manage the gateway itself.

Developers adopt routers like this for three reasons: resilience when a provider rate-limits mid-task, cost control by using cheaper or free models for routine work, and one configuration across many tools. Those are fair goals. For an enterprise, the same design also concentrates risk, as the sections below explain. We cover routing as an architecture pattern in intelligent model routing on-premises.

How do you install OmniRoute and connect Claude Code or OpenCode?

Install it with npm or Docker, connect a provider in the dashboard, copy an OmniRoute key and point your tool at the local endpoint.

  1. Install. The README lists npm install -g omniroute, a multi-architecture Docker image, a desktop app and a source build. Running omniroute starts the gateway and dashboard on port 20128.
  2. Secure first boot. npm and source installs copy an example environment file whose dashboard password is the publicly known placeholder CHANGEME. Replace it before first start, or leave it empty so the onboarding wizard asks you to create one.
  3. Connect a provider. Add an API key or complete a provider’s sign-in flow. The README notes that providers it marks as having restrictive terms are excluded from automatic routing by default.
  4. Connect your tool. omniroute run launches supported command-line tools, including Claude Code and OpenCode, through the gateway, and omniroute configure writes a tool’s own configuration. Any OpenAI-compatible client can also use the endpoint with an OmniRoute key.

Two notes on Claude Code. It reaches a gateway through the ANTHROPIC_BASE_URL setting, and Anthropic’s documentation says it does not endorse, maintain or audit third-party gateways and does not support routing Claude Code to non-Claude models through any gateway. For OpenCode, our guide to OpenCode with local models shows how to configure a custom OpenAI-compatible provider.

What is 9Router, and how does it compare?

9Router is a smaller MIT-licensed router by the developer decolua, aimed at the same audience: it exposes a local OpenAI-compatible endpoint, also on port 20128, and falls back from subscription accounts to cheap and then free models.

Its README lists OAuth sign-in for Claude Code, Codex, GitHub Copilot, Cursor and others, multi-account load balancing, quota tracking, optional request logging and an optional Cloud Sync service hosted at 9router.com. Its documented defaults are weak for anything beyond one person’s laptop:

  • INITIAL_PASSWORD defaults to 123456, and REQUIRE_API_KEY defaults to false.
  • The Docker container binds to all interfaces (0.0.0.0).
  • API_KEY_SECRET and MACHINE_ID_SALT default to fixed strings published in the README.

The project published 19 GitHub security advisories between 13 May and 16 July 2026, six rated critical, including unauthenticated remote code execution, a hardcoded fallback JWT secret and an exposed database export that allowed credential theft. Advisories show that issues are reported and fixed; a security review should weigh both the fixes and the volume.

Can you use a Claude or ChatGPT subscription through OmniRoute?

Technically, both tools support it; whether you may is a question for each provider. For Anthropic, the published terms point to no.

Both routers can connect consumer subscription accounts through OAuth and spend their quota first. OmniRoute’s own stealth guide describes features that mimic official clients’ network and request fingerprints for providers that detect non-official clients, and says they are meant only for users’ own accounts.

Anthropic’s Claude Code legal and compliance page says OAuth sign-in is intended for subscription purchasers’ ordinary use of Claude Code and Anthropic’s native apps. It also says Anthropic does not permit third-party developers to route requests through Free, Pro, Max or Ultra plan credentials on behalf of their users, or to collect, store or intermediate Claude.ai credentials or session tokens, and that it may enforce this without notice. Developers building on Claude should use API keys.

For other providers, read the current terms of service or ask the provider before connecting a subscription to any router. For a company, the cleaner answer is commercial API keys under a contract your legal team has reviewed, which also gives you the data-processing terms that consumer plans do not.

What does an LLM router mean for enterprise security?

A router holds the keys to every provider and sees every prompt and every response, so a compromise of the router is a compromise of all of them. Assess it as you would an identity provider or a secrets vault, not as a developer convenience.

  • Exposure. OmniRoute binds to 127.0.0.1 by default, but REQUIRE_API_KEY is false by default. Its example configuration warns that publishing it on a wider interface without required keys exposes an anonymous LLM proxy to the network. A critical flaw, CVE-2026-88062, let a remote anonymous attacker run code on servers with login disabled. The project’s advisory of 3 September 2026 says 3.8.49 fixed it, while GitHub’s advisory database lists versions up to 3.8.50 as affected, so run a later release.
  • Secrets at rest. Provider keys and OAuth tokens are encrypted with AES-256-GCM. The start-up script generates the encryption key on first run and stores it in a local file on the same host, and the security policy says values are stored in plaintext if no key is set. Move the key into a secrets manager.
  • Identity. The dashboard uses password login. OIDC sign-in is optional, and password login stays available unless you turn it off; enforce MFA in the identity provider if you enable OIDC.
  • Data protection. PII masking is opt-in, its built-in patterns cover emails, phone numbers, credit cards, Brazilian CPF and CNPJ numbers and US Social Security numbers, and the guardrail framework is fail-open, so an error lets traffic through. It is not data loss prevention for European identifiers. The prompt-injection guard is described by the project as best-effort.
  • Logs. Request and call logs, including a full per-request log, are kept for seven days by default in a local SQLite database. If prompts contain personal data, those logs fall under the GDPR like any other system that processes it.
  • Interception. Optional MITM capture modes can redirect and decrypt traffic from tools that ignore proxy settings. The Linux TPROXY mode needs root and installs a certificate authority, trusted by the operating system, that can sign a certificate for any host. On a managed endpoint that is a powerful capability; keep it off unless security has approved it.
  • Supply chain. OmniRoute ships frequent releases, publishes npm provenance and software bills of materials, and has many contributors. Pin versions, review changes and watch its advisories.

These are the same agent-era risks we describe in AI coding agents in the enterprise. If you expose the gateway’s MCP interface to agents, apply the controls in our MCP security guide.

OmniRoute vs an enterprise AI gateway: what is the difference?

OmniRoute optimises for one developer’s cost and uptime across many providers; an enterprise AI gateway optimises for control over which data reaches which approved model, with evidence.

QuestionOmniRoute or 9RouterEnterprise AI gateway
Main goalKeep coding tools running at low costEnforce policy across approved models
Upstream modelsHundreds of providers, free tiers, subscriptionsA short approved list, often self-hosted
IdentityLocal password, optional OIDCSSO for every user and service, per-team keys
Data controlsOpt-in, pattern-based masking that fails openClassification-aware routing and data loss prevention
AuditLocal logs, seven-day default retentionCentral, tamper-evident logs kept to policy
FallbackAutomatic, across providersOnly between models approved for that data class
Change controlFrequent upstream releasesVersioned, tested, approved changes

Our guide to building an enterprise AI gateway on-premises covers the enterprise column in detail: identity, quotas, guardrails and audit logging in front of every model you run.

How do you route to on-premises models with vLLM instead?

Serve approved open-weight models on your own infrastructure with an inference server such as vLLM, then let the gateway route only to those endpoints for sensitive work.

vLLM’s vllm serve command exposes OpenAI-compatible endpoints, including chat completions and responses, so coding tools and gateways can use it like a hosted API. OmniRoute lists vLLM and Ollama as local, self-hosted providers configured with a base URL. A sound pattern:

  • Separate data classes. Route confidential code and documents only to self-hosted models; allow external providers, if at all, only for public or low-risk data.
  • Turn off cross-provider fallback for sensitive routes, so an outage fails closed instead of silently sending data to an external API.
  • Choose models deliberately. Our comparison of vLLM, Ollama, llama.cpp and SGLang explains which server fits which workload, and our note on self-hosting GLM-5.3 looks at one current open-weight candidate.
  • Put the gateway in the same trust zone as the models, behind SSO, with logs flowing to your security monitoring.

What should you check before approving an LLM router?

Treat the request as you would any tool that holds production credentials and handles confidential data.

  1. Ownership and maintenance. Who controls the repository, how releases are made, and how fast advisories are fixed.
  2. Authentication defaults. Required client keys, no default or placeholder passwords, SSO with MFA, and password login disabled where SSO exists.
  3. Network exposure. Bound to loopback or behind an authenticating reverse proxy; IP allowlists; no public dashboard.
  4. Secrets. Encryption keys and provider credentials in a secrets manager, rotated, and scoped per team.
  5. Data flows. A list of every upstream provider, its data-processing terms, its location and its retention, plus a rule for which data classes may reach it.
  6. Provider terms. Commercial API keys only; no consumer subscriptions routed through third-party software.
  7. Logging and retention. What is logged, where, for how long, and who can read prompts.
  8. Interception. No MITM certificate authority on managed devices without security approval.
  9. Patching. Pinned versions, a named owner and a subscription to the project’s security advisories.

If developers already run routers without approval, start with discovery rather than a ban, and offer a governed alternative.

How SysArt helps

SysArt designs and implements governed model access for regulated European organisations: self-hosted models served with vLLM, an AI gateway with SSO, per-team keys, routing rules by data class and audit logging, and an assessment of the routers and coding tools your developers already use. See our private LLM deployment service.

Featured image by Haim Charbit on Unsplash.

Frequently asked questions

What is OmniRoute?

OmniRoute is an open-source AI gateway, released under the MIT licence, that you install on your own machine or server. It exposes one OpenAI-compatible endpoint and forwards each request to one of many model providers, including free tiers, paid APIs, subscription accounts and local servers such as Ollama or vLLM. It adds fallback routing, quota tracking, token compression and a web dashboard.

How do I install OmniRoute?

The README lists a global npm install (npm install -g omniroute), a Docker image, a desktop app and a source build. After starting it, open the dashboard, connect at least one provider with your own account or API key, copy an OmniRoute key and point your tool at http://localhost:20128/v1. Set a strong dashboard password and require API keys before exposing it beyond your own machine.

How do I use OmniRoute with Claude Code?

OmniRoute can launch Claude Code with its own command or write the tool's configuration, and Claude Code reaches gateways through the ANTHROPIC_BASE_URL setting. Anthropic does not endorse or audit third-party gateways and does not support routing Claude Code to non-Claude models. If you plan to route a Claude subscription login through OmniRoute, read Anthropic's Claude Code legal and compliance page first.

Is OmniRoute safe for enterprise use?

Not with its defaults. Client API keys are optional, PII masking is opt-in, and a critical remote code execution flaw (CVE-2026-88062) affected releases up to 3.8.49 or 3.8.50, depending on the advisory. It can be hardened with required API keys, OIDC with MFA, IP filtering and timely patching, but it is built for individual developers. Most enterprises need a governed gateway with SSO, audit logs and data loss prevention.

What is the difference between OmniRoute and 9Router?

Both are MIT-licensed routers that give coding tools one local endpoint and fall back from subscriptions to cheap and free models. OmniRoute has more providers, routing strategies and security options. 9Router is smaller, defaults to the password 123456 on first login and published 19 security advisories between May and July 2026, six rated critical. Both need hardening before shared use.

Is OmniRoute an OpenRouter alternative?

Partly. OpenRouter is a hosted service that resells access to many models through one API, while OmniRoute is software you host that connects to providers with your own accounts and keys. Self-hosting removes one intermediary, but prompts still go to whichever upstream provider each request reaches, so data residency depends on the providers you connect, not on where OmniRoute runs.

Can OmniRoute route to self-hosted models?

Yes. OmniRoute's provider list includes local, self-hosted providers such as Ollama and vLLM, configured with an OpenAI-compatible base URL. vLLM's server exposes OpenAI-compatible chat and responses endpoints, so a gateway can send sensitive work to models on your own infrastructure. For regulated data, restrict routing to approved self-hosted models and turn off fallback to external providers.

Related insights

Plan your private AI with people who build it

Book a briefing. We look at your use case, data and constraints, and you leave with the deployment options and governance steps that fit.