AI Card Bao GAME.AICARDBAO.COM
Home / 开源 / OmniRoute
AI TOOL / #12830

OmniRoute

A free, open-source AI gateway based on the MIT License, enabling single-point access to 375 providers and over 1,400 models, while being compatible with mainstream coding tools.

Introduction

Created by Diego Souza

~11.4B\* Free Tokens / Month Across Third-Party Free Tiers

Everything here is free. No paywall.
★ Like it? Star us on GitHub

Other catalogs charge from US$ 19 a year to US$ 49 for lifetime access to live data. Here everything is free. Prices checked on 2026-11-18.

Bring your own provider accounts. These are third-party free tiers, not a token grant from OmniRoute. Sign up, get credentials where a provider asks for them, and connect the ones you can use. Each provider sets its own limits, availability and terms. Stacking free tiers by hand means dozens of SDKs, dozens of rate limits and no clear idea of what you have left. OmniRoute keeps 252 catalog rows with free access and computes the real figure from 19 pools with a published quota, each shared pool counted once. Quotas that only open after a regional identity check (today, ModelScope) are shown apart, +~6M behind regional identity verification, and never added to the real figure. What is left shows up on the dashboard (/dashboard/free-tiers).

\* Sum of every row in the catalog, ended offers included, the way free-tier catalogs count. Counting each shared quota once, one account per provider reaches about ~117M a month today. How we count →

Animated summary of the live /dashboard/free-tiers page. How each figure is counted: docs/reference/FREE_TIERS.md#how-we-count. Catalog last audited on 2026-11-27. The figures move both ways. A provider ends a free tier and the real number drops. A new one lands and it climbs. We publish what the catalog computes, never a rounded-up best case.

Join the community

👋 Follow the maintainer — get new providers, releases & tips first:

Questions, provider tips, roadmap & support → Discord · Telegram · WhatsApp 🌍 Global / 🇧🇷 Brasil / 📢 Official Channel / Portal

The Gateway Keeps Growing

394 providers 1,539 unique chat model IDs 140+ providers flagged with a free offer 22 public routing strategies

Chat counts measured in v3.8.54 (17 November 2026): 1,539 IDs across 3,186 provider/model pairs. The free-offer label follows the catalog audit below.

Provider and model totals for v3.8.55 to v3.8.59 are measured when each release is cut. There are no targets.

Roadmap · Release strategy · LTS GO/NO-GO checklist · LTS support window

Available

Every section of this README, grouped by what you want to do.

GoalSections
StartInstall, connect, first request · Quick Start · More install methods · Free-tier token budget · Languages
UnderstandThe Promise · Why OmniRoute? · What sets OmniRoute apart · The gateway keeps growing · What's new
RouteCombos · Zero-config auto · 22 routing strategies · Resilience layers · OmniRoute Radar
Providers and toolsAI providers · Every major lab · Free every day or month · Trials and signup credits · Compatible CLIs and coding agents
Run itWhere OmniRoute runs · OmniCopilot for VS Code · OmniRouteTray for macOS · Private and local-first
CLI and protocolsFull CLI, MCP and A2A · The CLI · Remote mode · Connect an agent
Save tokensCompression overview · How it works · The 12-engine stack · Output styles and per-request control
See itOmniRoute in action · Video guides
ReferenceTech stack · Documentation · New users · Operators · Routing docs · Spend and quota · Provider guides · Tokens and context · Coding tools and CLI · API · Extensions and traffic · Upstream proxies · Security review · Code · Contributing · Asset notes
CommunityCommunity and help · Join the community · Top contributors · By merged pull requests · By GitHub-attributed commits · All contributors · How to contribute · Releasing a new version · Stars · StarMapper
Support and creditsSupport OmniRoute · Sponsors · Open Source Friends · License
AcknowledgmentsOverview · Lineage and gateway · Compression engines · Compact formats and code-aware tooling · Memory and RAG · Traffic inspection and MITM · Model data, observability and UI · Security · Complementary tools

🌐 In 67 languages

Install, connect a provider, then route through one endpoint

# After connecting a provider, create your OmniRoute key in Dashboard → API Keys:
curl http://localhost:20128/v1/chat/completions \
  -H "Authorization: Bearer YOUR_OMNIROUTE_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"auto","messages":[{"role":"user","content":"Hello!"}]}'

auto needs an eligible route. A fresh installation can have no eligible keyless targets, and a keyless provider may reject third-party clients. Providers marked tos: avoid, including Kiro, are excluded from automatic routing by default; connecting an account does not override that setting. See the Free Tiers Guide before choosing a provider.

Copy-paste quickstart scripts for Python, Node.js, PHP and cURL: examples/quickstart/. Step-by-step version: Quick Start.

Supported by our Open Source Friends

Want to join as an Open Source Friend? These are the companies that back open source and help keep OmniRoute moving — and we say publicly where every token they give us goes. Reach out: [email protected]

Kimi Moonshot AI

Thanks to Kimi (Moonshot AI), our founding Open Source Friend, for backing this project! Kimi is the AI lab behind the open-weight K2 and K3 model families — Kimi K3 delivers a 1M-token context window, native vision and frontier-level coding at a fraction of closed-model prices, and works out of the box with Claude Code, Codex and every coding tool OmniRoute serves.

What Kimi's support powers: Kimi's API credits power OmniRoute's AI-validated release pipeline — the merge validation powered by Kimi K3 stage that reviews every pull request before it ships — plus day-to-day feature development. First-class Kimi support ships on both rails: the direct Kimi API (kimi-k3) and the Kimi Code coding plan (OAuth and API key). OmniRoute is also the first Brazilian open-source project in Kimi's support program. Get a Kimi API key with 15% extra credits →

Cheaper Inference cheaperinference.com

Thanks to Cheaper Inference, an OmniRoute Open Source Friend, for backing this project! Cheaper Inference is a cost-ranked gateway that resells 42 frontier models — Claude, GPT-5.x, Gemini, Kimi K3, GLM, DeepSeek, Grok and MiniMax — behind one OpenAI-compatible endpoint, routing each request to the cheapest eligible provider without ever charging above the model maker's list price.

First-class support in OmniRoute: Chat Completions, the native /v1/responses endpoint, vision, tool calling and 3 image models (grok-imagine, nano-banana-pro, nano-banana-2, reachable as cheaperinference/<model>). Get an API key →

Links tagged aff=omniroute are partner links. They fund the project at no extra cost to you.

🎟️ Affiliates Promo — free signup coupons from providers we don't sponsor (click to expand)

This section is for referral/coupon codes only. Sponsored partnerships live in 🤝 Supported by our Open Source Friends above. OmniRoute has no sponsorship or partnership with the providers listed here — these are public coupons anyone can use.

AgentRouter agentrouter.org

AgentRouter — Referral link (official site: agentrouter.org) · daily $25 check-in credit, and sign-ups with an invite code get $50 more (checked 2026-11-28; free server, expect higher latency — best for testing, not production). First-class support in OmniRoute since v3.8.50: Chat Completions, the Anthropic-compatible wire format and the OpenAI-compatible path. Its public model list currently shows gpt-6.1-sol and gpt-5.6-sol. Sign up →

⚠️ Affiliate link — OmniRoute has no sponsorship or partnership with this provider.

Know another provider with a generous free signup coupon that benefits OmniRoute users? Open an issue and we'll add it here.

Combos: the flagship

  1. Start with auto. Set the model in your OpenAI-compatible client. OmniRoute builds a virtual combo from connected providers and scores candidates live.
  2. Save a combo for more control. Choose a name, target list and strategy, then use that name as the model. The strategy sets which target goes first and how the rest are tried.

A combo routes across models automatically. On quota exhaustion, provider failure or model lockout, it tries the next eligible, healthy target.

Zero-config: just use auto

curl http://localhost:20128/v1/chat/completions \
  -H "Authorization: Bearer " \
  -H "Content-Type: application/json" \
  -d '{"model": "auto", "messages": [{"role": "user", "content": "Hello"}]}'

Variants tune the weights. Last-known-good routing stays with the last successful provider until it fails, then rescores. auto/fast and auto/cheap express preferences without guaranteeing the fastest or cheapest model.

Model IDBehavior
autoBalanced default weights.
auto/fastFavors low latency and provider health.
auto/cheapFavors lower catalog prices.
auto/codingQuality-first weights for code generation.
auto/smartQuality-first weights with 10% exploration (default 5%).
auto/lkgpExplicit last-known-good routing with the same weights as auto.
auto/subscriptionUses only live-verified plan quota. Returns HTTP 503 when none is available and avoids billed fallback.
auto/thriftyPlan → keyless → free → cheap → premium. May reach billed models and returns to the plan when quota and cooldown allow.
auto/offlineFavors quota and rate-limit headroom. Requests still go to your providers.
auto/chaosOne model per provider in parallel, up to five by default or ten when configured. One upstream call per model. Returns the top-ranked reply or the last successful panel reply if the top model fails. Use fusion to synthesize replies with a judge.

Category and optional tier examples include auto/coding:fast, auto/coding:free, auto/reasoning:pro and auto/vision. If no connected candidate matches, the request returns HTTP 503 and the pool stays narrow. Auto-Combo guide · Subscription-first routing

Or build your own: 22 routing strategies

omniroute combo create my-pool --strategy fill-first \
  --models "provider-a/model-1,provider-b/model-2"

The CLI accepts 15 of 22 strategies. The dashboard and combos API accept all 22.

StrategyBehavior
autoRank candidates live with the 16-factor Auto-Combo scorer.
cache-optimizedPrefer the account likely to hold the prompt prefix in cache.
context-optimizedTry the largest known context window first.
context-relayKeep your order and pass a conversation summary when switching accounts.
cost-optimizedSort by catalog input-token price, unknowns last. Final request cost can differ.
expiry-firstSpend quota likely to expire, highest leftover per hour until reset first.
fill-firstStay on the first available target until it runs out or fails, then move on.
fusionQuery a panel in parallel and have a judge synthesize one answer.
headroomChoose the most free capacity across 5-hour and weekly windows.
jevTypeSafe Jev picks which entries in your ranked list run. Turn on COMBO_JEV_STRATEGY_ENABLED to send an excerpt per request and use paid TypeSafe calls. With it off, your order applies.
least-usedPick the target with the fewest recorded requests in this combo.
lkgpTry the last successful provider first, otherwise keep your order.
p2cSample two targets and pick by success rate and latency.
pipelineFeed each step's output into the next target in sequence and return only the final answer.
priorityTry targets in your order. Session stickiness preserves it.
quota-weightedSkip exhausted accounts and draw by leftover quota and in-flight load.
randomShuffle for each request. The same first target can repeat.
reset-awareScore remaining quota and time to reset across session and weekly windows.
reset-windowTry the account whose quota window resets soonest.
round-robinRotate in order, three successes per target by default.
strict-randomDeal from a shuffled deck so each target leads once before repeats.
weightedDraw a first target by weight and keep the rest as fallbacks. The split is statistical. Use round-robin for strict rotation.

Quota strategies use live data where providers report it, including 5-hour and weekly subscription windows. fusion and pipeline make multiple upstream calls per request.

The 16-factor scorer uses quota, health, cost, latency, task fit, stability, tier priority, tier affinity, specificity match, context affinity, cache affinity, session availability, reset-window affinity, connection density, quality and reliability. Weights vary by profile. Cache affinity, reset-window affinity and reliability have zero weight by default. Scoring factors

In a saved combo with strategy: "auto", config.routerStrategy selects rules, score, cost (eco), latency (fast), sla-aware (sla), lkgp, nadir or decision. Auto router strategies

Resilience is built in: 3 independent layers

Failures are handled at three scopes, so one bad model does not take down its account, and one bad account does not take down its provider.

If a whole provider is down

The provider circuit breaker opens after 8 (OAuth) or 12 (API key) failures with status 408, 500, 502, 503 or 504. Combos skip that provider while it is open. After 60 s or 30 s, one probe request decides whether it closes.

If one key or account is rate-limited

The connection cooldown benches only that connection, with exponential backoff from 5 s (OAuth) or 3 s (API key). Other keys for the same provider keep serving.

If one model is refused

The model lockout blocks only that model on that connection after a per-model 429, 404 or access denial. Other models on the same connection keep serving.

Banned, expired and out-of-credit connections are terminal states, not cooldowns: they wait for you to fix them.

Auto-Combo engine · Resilience guide

What Sets OmniRoute Apart

📊 Full methodology & per-feature detail vs 9router, OpenRouter, CLIProxyAPI & LiteLLM → docs/comparison/OMNIROUTE_VS_ALTERNATIVES.md

Support OmniRoute

OmniRoute is MIT-licensed and maintained in the open. If it saves you time or money, these are the ways to help keep it independent. Sponsorship never affects routing: it buys visibility, not ranking.

MethodBest forLink

Star the repoFree, and it helps visibilityStar OmniRoute

GitHub SponsorsOne-off or monthly. No platform fee on sponsorships from personal accountsgithub.com/sponsors/diegosouzapw

Ko-fiQuick one-off tip, no signup for the donorko-fi.com/diegosouzapw

Buy Me a CoffeeSmall, informal gesturebuymeacoffee.com/diegosouzapw

LiberapayRecurring, run by a non-profitliberapay.com/diegosouzapw

Open Collective companies, invoicesOpening soon: the collective is waiting for fiscal-host approval and does not accept contributions yetopencollective.com/omniroute

<
Visits:4 Updated:2026-12-03 AI tools

Related