MCPcopy Index your code
hub / github.com/diegosouzapw/OmniRoute

github.com/diegosouzapw/OmniRoute @v3.8.43 sqlite

repository ↗ · DeepWiki ↗ · release v3.8.43 ↗
23,368 symbols 89,376 edges 6,216 files 1,268 documented · 5%
README

OmniRoute Dashboard

🚀 OmniRoute — The Free AI Gateway

Never stop coding. Connect every AI tool to 237 providers90+ free — through one endpoint.

Plug Claude Code, Codex, Cursor, Cline, Copilot & Antigravity into FREE Claude / GPT / Gemini. Auto-fallback.

RTK + Caveman compression saves 15–95% tokens. Never hit limits.

~1.6B documented free tokens/month — up to ~2.1B in your first month with signup credits — aggregated across the free tiers, plus a long tail of permanently-free, no-cap providers, and the compression above stretches every one further. (how we count →)

⭐ Star the repo if OMNIROUTE helped you save money and make your work easier. [![Stars](https://img.shields.io/github/stars/diegosouzapw/OmniRoute?style=social)](https://github.com/diegosouzapw/OmniRoute)

diegosouzapw%2FOmniRoute | Trendshift

237 AI Providers 90+ Free 1.6B Free Tokens/mo Token Savings 17 Strategies $0 to start

💬 Join the community

Discord Telegram WhatsApp Global WhatsApp Brasil Website

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

🧩 Available

npm version NPM Monthly Docker Hub License: MIT Docker Pulls Electron Downloads

🚀 Quick Start🎯 Combos🌐 Providers🔌 CLI & MCP🗜️ Compression🌍 Website

💥 The Promise🤔 Why🏆 What Sets Apart🤖 Compatible CLIs🖥️ Where It Runs🔒 Private🎬 In Action📚 Explore More📧 Support

🌐 In 42+ languages

🇺🇸 🇧🇷 🇵🇹 🇪🇸 🇫🇷 🇮🇹 🇩🇪 🇳🇱 🇷🇺 🇺🇦 🇵🇱 🇨🇿 🇸🇰 🇷🇴 🇭🇺
🇧🇬 🇩🇰 🇫🇮 🇳🇴 🇸🇪 🇨🇳 🇹🇼 🇯🇵 🇰🇷 🇹🇭 🇻🇳 🇮🇩 🇲🇾 🇵🇭
🇮🇳 🇮🇳 🇮🇳 🇮🇳 🇮🇳 🇮🇳 🇧🇩 🇵🇰 🇮🇷 🇸🇦 🇮🇱 🇹🇷 🇦🇿 🇹🇿

💰 ~1.6B Free Tokens / Month

Stacking free tiers by hand is painful — dozens of SDKs, dozens of rate limits, and no idea how much you actually have. OmniRoute aggregates the documented free tiers of 40+ provider pools / 500+ models into one honest number and shows it live on the dashboard (/dashboard/free-tiers).

  • ~1.6B free tokens / month (steady) — and up to ~2.1B in your first month with signup credits.
  • Pool-deduped, honest — we count each shared free pool once, so the headline isn't inflated by rate-limit ceilings the way multi-billion competitor claims are. (Counting every rate limit 24/7 would read ~10B; we don't publish that.)
  • Plus the un-countable — permanently-free, no-token-cap providers (SiliconFlow, Z.AI GLM-Flash, Kilo, OpenCode Zen…) and a $10 OpenRouter top-up that unlocks +24M/mo, both surfaced separately so they never inflate the headline.
  • Per-model breakdown, live used / remaining for the current month, and a transparent terms flag per provider.

Free-Tier Budget card (preview mockup)

Preview mockup — a real screenshot lands once the /dashboard/free-tiers page is validated. Full methodology (pool dedupe, credit tiers, provider terms): docs/reference/FREE_TIERS.md.

💥 The Promise

One endpoint. 237 providers. Never stop building — and let OmniRoute pick the cheapest one that works.

🚫 Never hit limits Auto-fallback across 237 providers in milliseconds. Quota out? Next provider takes over — zero downtime. 💸 Save up to 95% tokens RTK + Caveman stacked compression cuts 15–95% of eligible tokens (~89% avg on tool-heavy sessions). 🆓 $0 to start 90+ providers with a free tier, 11 free forever (Kiro, Qoder, Pollinations, LongCat…). No card needed.
🔌 Every tool works 24+ coding agents — Claude Code, Codex, Cursor, Cline, Copilot, Antigravity — through one config. 🧩 One endpoint OpenAI ↔ Claude ↔ Gemini ↔ Responses API translation. Point any tool at /v1 and it just works. 🛡️ Production-grade Circuit breakers, TLS stealth, MCP (95 tools), A2A, memory, guardrails, evals. 21,000+ tests.

🤔 Why OmniRoute?

Stop juggling 10 dashboards, dead API keys, and surprise bills.

❌ The daily pain ✅ How OmniRoute fixes it
📉 Subscription quota expires unused every month Maximize subscriptions — track quota, use every token before reset
🛑 Rate limits stop you mid-coding 4-tier auto-fallback — Subscription → API → Cheap → Free, in milliseconds
🔥 Tool outputs (git diff, grep, logs) burn tokens RTK + Caveman compression — save 15–95% eligible tokens per request
💸 Expensive APIs ($20–50/mo per provider) Cost-optimized routing — auto-route to the cheapest viable model
🧰 Each AI tool wants its own setup One endpoint, every tool, one dashboard
🌍 AI blocked in your country 3-level proxy + TLS fingerprint stealth — use AI from anywhere
┌──────────────────────────────────────────────────────────┐
│        Your IDE / CLI  (Claude Code, Cursor, Cline…)       │
└─────────────────────────┬──────────────────────────────────┘
                          │ http://localhost:20128/v1
                          ▼
┌──────────────────────────────────────────────────────────┐
│                  OmniRoute — Smart Router                  │
│  RTK + Caveman compression · 17 routing strategies         │
│  Circuit breakers · TLS stealth · MCP · A2A · Guardrails   │
└─────────────────────────┬──────────────────────────────────┘
        ┌─────────────┬────┴────────┬─────────────┐
        ▼ Tier 1      ▼ Tier 2      ▼ Tier 3       ▼ Tier 4
   SUBSCRIPTION     API KEY        CHEAP          FREE
   Claude Code,     DeepSeek,      GLM $0.5,      Kiro, Qoder,
   Codex, Copilot   Groq, xAI      MiniMax $0.2   Pollinations
   quota out? ───▶  budget hit? ─▶ budget hit? ─▶ always on

🎯 Combos — The Flagship

A combo is a chain of models OmniRoute routes across automatically. Quota runs out, a provider fails, or costs spike — the combo silently slides to the next model. This is what makes OmniRoute unbreakable. 🛡️

⚡ Zero-config — just use auto

No combo to create. Set your model to auto (or a variant) and OmniRoute builds a virtual combo from your connected providers, scored live:

Model ID What it optimizes for
auto 🎯 Balanced default (LKGP — sticks to your last good provider)
auto/coding 🧑‍💻 Quality-first weights for code generation
auto/fast ⚡ Lowest latency first
auto/cheap 💰 Cheapest per token first
auto/offline 🔋 Most quota / rate-limit headroom first
auto/smart 🔭 Quality-first + 10% exploration to discover better models

🔀 Or build your own — 17 routing strategies

All 17 strategies — mix & match per combo step:

# Strategy What it does
1 priority First-target ord

Extension points exported contracts — how you extend this code

RouterStrategy (Interface)
(no doc) [10 implementers]
open-sse/services/autoCombo/routerStrategy.ts
HttpProxyServerHandle (Interface)
(no doc) [7 implementers]
src/mitm/inspector/httpProxyServer.ts
FreeProxyProvider (Interface)
(no doc) [6 implementers]
src/lib/freeProxyProviders/types.ts
AuthJsonApiEntry (Interface)
* Shape we expect inside `auth.json`. The file is keyed by providerId, with * each entry being a flavor-tagged credenti
@omniroute/opencode-plugin/src/index.ts
ErrorResponseBody (Interface)
* Sanitize an error message to prevent stack trace exposure in API responses. * Strips stack traces, file paths, and ab
open-sse/utils/error.ts
ClaudeWebRequestPayload (Interface)
* Extended credentials to include organization and conversation context
open-sse/executors/claude-web.ts
AudioModel (Interface)
* Audio Provider Registry * * Defines providers that support audio endpoints: * - /v1/audio/transcriptions (Whisper A
open-sse/config/audioRegistry.ts
GlobalErrorProps (Interface)
* Global Error Page — FASE-04 Error Handling * * Root-level error boundary for unrecoverable errors. * This is the la
src/app/global-error.tsx

Core symbols most depended-on inside this repo

get
called by 2733
src/lib/db/adapters/types.ts
push
called by 2264
open-sse/executors/kiro.ts
push
called by 1629
src/lib/services/ringBuffer.ts
has
called by 1323
src/lib/cacheLayer.ts
error
called by 1308
open-sse/types.d.ts
replace
called by 1270
src/types/global.d.ts
prepare
called by 1060
src/lib/db/adapters/types.ts
resolve
called by 975
src/lib/container.ts

Shape

Function 19,286
Interface 2,413
Method 1,199
Class 464
Enum 6

Languages

TypeScript100%
Python1%

Modules by API surface

open-sse/executors/chatgpt-web.ts101 symbols
@omniroute/opencode-plugin/src/index.ts80 symbols
open-sse/executors/grok-web.ts79 symbols
src/app/(dashboard)/dashboard/combos/page.tsx70 symbols
open-sse/services/accountFallback.ts68 symbols
src/sse/services/auth.ts65 symbols
src/lib/tailscaleTunnel.ts61 symbols
open-sse/executors/muse-spark-web.ts52 symbols
src/lib/usage/internalUsageCommand.ts51 symbols
src/app/(dashboard)/dashboard/usage/components/EvalsTab.tsx51 symbols
src/app/(dashboard)/dashboard/providers/[id]/providerPageHelpers.ts51 symbols
open-sse/executors/antigravity.ts51 symbols

Dependencies from manifests, versioned

@aws-sdk/client-bedrock-runtime3.1073.0 · 1×
@cyclonedx/cyclonedx-npm5.0.0 · 1×
@dnd-kit/core6.3.1 · 1×
@dnd-kit/sortable10.0.0 · 1×
@dnd-kit/utilities3.2.2 · 1×
@lobehub/icons5.8.0 · 1×
@modelcontextprotocol/sdk1.29.0 · 1×
@monaco-editor/react4.7.0 · 1×
@ngrok/ngrok1.7.0 · 1×
@opencode-ai/plugin1.15.6 · 1×
@playwright/test1.60.0 · 1×

Datastores touched

appDatabase · 1 repos
dbDatabase · 1 repos

For agents

$ claude mcp add OmniRoute \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact