永不触碰限制
毫秒内在 339 个提供商间自动切换。配额用尽?下一个提供商接管. 零停机。
免费开源 AI 网关
Route across 352 providers through one OpenAI-compatible endpoint, with automatic fallback.
OmniRoute × Cheaper Inference
Combine OmniRoute’s automatic fallback and developer tools with Cheaper Inference’s cost-ranked marketplace. Every eligible request starts with the cheapest available provider route.
| Model | Input price | Output price | Savings |
|---|---|---|---|
| gpt-5.6-lunaOpenAI · text | 60% off | ||
| gpt-5.6-solOpenAI · text | 50% off | ||
| glm-5.3Z.ai · text | 45% off | ||
| deepseek-v4-flashDeepSeek · text | 40% off | ||
| deepseek-v4-flash-0731DeepSeek · text | 40% off | ||
| glm-5.3-flashZ.ai · text | 30% off |
承诺
毫秒内在 339 个提供商间自动切换。配额用尽?下一个提供商接管. 零停机。
A 12-engine pipeline reduces eligible context by 15–95%. The documented tool-heavy example reduced it by ~89%.
90+ free tiers and 56 recurring or keyless free-forever providers. No credit card needed for the keyless quick start.
16+ 个编程助手. Claude Code、Codex、Cursor、Cline、Copilot、Antigravity. 通过一个配置。
OpenAI ↔ Claude ↔ Gemini ↔ Responses API 翻译。将任何工具指向 /v1,即可正常工作。
熔断器、TLS 隐身、MCP(105 个工具)、A2A、记忆、护栏、评估. 由 25,000+ 个测试支撑。
提供商目录
A catalog spanning chat, media, search, local runtimes, cloud agents and system integrations.
352 providers+
60 秒内启动运行
Install the package, launch the gateway, then point any OpenAI-compatible client at port 20128.
Install the `omniroute` npm package globally.
$ npm install -g omnirouteadded 1 package
Launch the API and dashboard together on port 20128.
$ omniroute▸ dashboard ✓ http://localhost:20128/dashboard▸ api ...... ✓ serving on :20128
Use `http://localhost:20128/v1`; the keyless `auto` route works on a fresh install.
$ curl localhost:20128/v1/models✓ models listed
开箱即用
路由、容错、免费配额消耗、压缩和智能体协议。单一二进制文件,零插件拼接。
Set a model to `auto` or build your own combo with 19 strategies and tiered fallback.
Use a ready-made mode or combine 19 strategies around the goal that matters.
持久对话记忆. FTS5 关键词 + Qdrant 向量召回,内置。
在正确的层级失败。而非整体崩溃。每个提供商有熔断器,每个连接有冷却,每个模型有锁定。其他密钥和模型持续服务。
Pool-deduped accounting across 90+ free tiers.
每月约 1.51B 免费 Token。
12 composable engines for tool output, context and response style.
Reduce eligible tokens by 15–95%.
A built-in server exposing 110 gateway tools across 33 scopes.
110 tools · 33 scopes · stdio / HTTP
A JSON-RPC agent server with 6 skills.
6 skills · JSON-RPC 2.0 · Agent Card
Client compatibility
Point an OpenAI-compatible CLI or editor at one local base URL; OmniRoute handles the providers behind it.
http://localhost:20128/v1
curl http://localhost:20128/v1/chat/completions \
-H "Authorization: Bearer $OMNIROUTE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"auto","messages":[{"role":"user","content":"Hello"}]}'新
安装 OmniCopilot 扩展,每个 OmniRoute 模型都会直接出现在你已经在用的模型选择器里。不需要新的侧边栏,不需要新的聊天界面。
Works in VS Code stable and Insiders. Install from the Marketplace or Extensions view.
适用于不使用官方商店的 VS Code 分支。Cursor、Windsurf、VSCodium、Theia、code-server、Gitpod 等。
从 VS Code 1.122 起,提供商模型无需 GitHub 登录或 Copilot 订阅即可使用。在 OmniRoute 的免费模型上支持 agent mode、工具调用和视觉能力。
日常真实痛点
每一个 AI 编程痛点都有内置解决方案。无需脚本,无需人工看护。
诚实对比
Capabilities checked against the linked project documentation on 2026-08-30.
| Capability | OmniRoute (opens in a new tab) | 9Router (opens in a new tab) | LiteLLM (opens in a new tab) | CLIProxyAPI (opens in a new tab) |
|---|---|---|---|---|
| Providers | 352 | 40+ | 100+ | 8+ upstreams |
| Routing strategies | 19 | 3-tier | retry / priority | round-robin / fill-first |
| Tiered fallback with UI | Yes | Yes | Manual policy | Multi-account |
| Token compression | 12 engines · 15–95% | RTK / Headroom / Caveman | No built-in pipeline | HTTP compression |
| Capability | OmniRoute (opens in a new tab) | 9Router (opens in a new tab) | LiteLLM (opens in a new tab) | CLIProxyAPI (opens in a new tab) |
|---|---|---|---|---|
| Built-in MCP server | 110 gateway tools | No | MCP client / gateway | No |
| A2A protocol | Server · 6 skills | No | A2A client / gateway | No |
| Cloud agents | Codex / Cursor / Devin / Jules | No | No | Sidecar integrations |
| Capability | OmniRoute (opens in a new tab) | 9Router (opens in a new tab) | LiteLLM (opens in a new tab) | CLIProxyAPI (opens in a new tab) |
|---|---|---|---|---|
| Failure-isolation layers | 3: provider / connection / model | Cooldown | Cooldown / retry | Cooldown |
| Persistent memory | FTS5 + vector | No | Semantic cache | No |
| Guardrails | PII / injection / vision | No | Yes | Cloaking controls |
| Eval framework | Built in | No | No | No |
| TLS fingerprint controls | wreq-js | No | No | uTLS |
| Capability | OmniRoute (opens in a new tab) | 9Router (opens in a new tab) | LiteLLM (opens in a new tab) | CLIProxyAPI (opens in a new tab) |
|---|---|---|---|---|
| Dashboard stack | Next.js 16 | Next.js 16 | Next.js | Next.js / React |
| UI locales | 42 | 10 | Not documented | 3 |
| OAuth providers | 25 | 6 | SSO | CLI auth |
| Self-hostable | Yes | Yes | Yes | Yes |
| License | MIT | MIT | MIT + enterprise | MIT |
Public README and official documentation snapshot; verify linked sources before purchase or deployment decisions.
随处运行
同一套代码,九种运行方式。笔记本、服务器、手机或插件。选择安装命令,即可在 20128 端口提供服务。
npm
npm install -g omnirouteOpen guide (opens in a new tab)Docker
docker run … diegosouzapw/omnirouteOpen guide (opens in a new tab)桌面端
npm run electron:buildOpen guide (opens in a new tab)ARM
native arm64Termux
pkg install nodejs && npx -y omnirouteOpen guide (opens in a new tab)PWA
Add to Home ScreenOpen guide (opens in a new tab)OpenCode 插件
@omniroute/opencode-providerOpen guide (opens in a new tab)VS Code
Install OmniCopilotOpen guide (opens in a new tab)源码
npm install && npm run devOpen guide (opens in a new tab)Routing
Use a ready-made mode or combine 19 strategies around the goal that matters.
autoBalanced defaultcurl http://localhost:20128/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"auto","messages":[{"role":"user","content":"Write a TypeScript retry helper."}]}'Routing alias auto selected. Objective: Balanced default. Fallback enabled.
Use quota you already have before touching paid APIs.
priority · fill-firstBalance traffic across keys and accounts to reduce rate-limit pressure.
weighted · round-robin · p2c · least-used · headroomRoute to the lowest-cost eligible target.
cost-optimizedKeep long contexts on models that fit, then relay when needed.
context-relay · context-optimized · cache-optimizedDistribute eligible traffic across targets.
random · strict-randomUse 15-factor scoring, last-known-good and reset-aware windows.
reset-window · reset-aware · lkgp · auto · fusion · pipeline免费 Token,诚实统计
455 catalog entries are deduplicated into 40 recurring pools; only published positive budgets feed the headline.
1.51B
Pool-deduped accounting keeps shared quotas from being counted more than once. No-cap providers stay visible without inflating the token total. Checked 2026-08-30.
View the calculation (opens in a new tab)停止浪费 Token
工具输出、重复上下文和臃肿的 JSON 在到达模型前就被压缩。语义不变,Token 仅为原来的一小部分。12 个可组合引擎在您掌控的流水线中依次叠加。
The function should iterate over the list of items, and for each item, it should check whether the value is greater than zero, and if so, add it to the running total.sum all list items where value > 0x-omniroute-compression: standardStandard compression selected. Published range ~30%.
Control precedence: request header → combo → profile → adaptive policy → default.
3 层,而非 3 级
一个坏密钥不应拖垮整个提供商。一个失效模型不应拖垮密钥。每次失败都被隔离在最小可能的范围内,其余一切照常服务。
Network controls
Proxy scopes control network routing while local-first storage keeps operational data on your machine.
Route globally, per provider or per individual connection.
Match supported provider clients down to selected transport characteristics.
Keys, usage and history stay on the host you control.
一览无余
Manage providers, combos, analytics, health and costs at `localhost:20128/dashboard`.
原生智能体支持
OmniRoute 不只是代理。它支持智能体协议。将其接入 MCP 客户端、A2A 网络或云端编程智能体,它就成为智能体可以操控的工具。
110 tools across 33 scopes over stdio and HTTP transports.
110 tools · 33 scopes · stdio / HTTP
claude mcp add omniroute --type http --url http://localhost:20128/api/mcp/stream6 skills for smart routing, quota, discovery, cost analysis and health reporting over JSON-RPC 2.0.
6 skills · JSON-RPC 2.0 · Agent Card
通过统一界面驱动 Codex、Cursor、Devin 和 Jules。创建任务、审批计划并流式传输结果,全部经由 OmniRoute 路由。
Codex · Cursor · Devin · Jules
超越路由
将 Bifrost(Go 中继)、9Router 或 CLIProxy 作为托管 sidecar 运行。或运行完整集群配置。全部直接从控制台操作。
Notion 与 Obsidian 作为 MCP 工具接入。你的笔记与知识库成为任何模型的一等上下文。
每条路由都有提示注入防护,可选启用的 PII 脱敏,以及安全内容过滤归一化。有防御,无锁定。
连续打卡、成就与实时节省。让你的用量看得见。
Guides
Walkthroughs cover installation, free-provider setup and connecting an IDE.
开放构建
OmniRoute 持续更新. 由数百名贡献者推动,保持领先。
Snapshot from 2026-09-01
Chat, support and roadmap
(opens in a new tab)News and announcements
(opens in a new tab)Global community
(opens in a new tab)Comunidade Brasil
(opens in a new tab)OmniRoute by Cheaper Inference
Self-host OmniRoute, or start with Cheaper Inference for a hosted cost-ranked gateway.