OmniRoute is a free, open-source (MIT) AI gateway: one OpenAI-compatible endpoint for 375 providers and 1,400+ models, with smart routing, quota-aware fallback, caching and token compression. Works with Claude Code, Codex, Cursor, Cline and Copilot. Created by Diego Souza.
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 282 catalog rows with free access and computes the real figure from 24 pools with a published quota, each shared pool counted once. Quotas that only open after a regional identity check (today, ModelScope) are shown apart, +~7M 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 ~106M a month today. How we count →
Animated summary of the live
/dashboard/free-tierspage. How each figure is counted: docs/reference/FREE_TIERS.md#how-we-count.Catalog last audited on 2026-12-04. 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.
👋 Follow the maintainer — get new providers, releases & tips first:
Questions, provider tips, roadmap & support → Discord · Telegram · WhatsApp 🌍 Global / 🇧🇷 Brasil / 📢 Official Channel / Portal
[
https://github.com/cheaper-inference/OmniRoute/issues/22112
Labels: None
Thank you for your interest in contributing! This guide covers everything you need to get started.
For the official per-change workflow, start with the Contribution Golden Path. It maps provider, routing, UI/UX, i18n, CLI, database, and build/deploy changes to their contracts, focused tests, CI coverage, and reconciliation steps.
>=22.22.2 <23, or >=24.0.0 <27 (recommended: 24 LTS)Windows with Node 24: use the current 24 LTS patch release (at least 24.20.0). Earlier releases can abort after successful tests when
--test-force-exitcloses the process. Node's Windows libuv fix addresses this runtime crash; keep the test assertions and runner exit checks enabled.
git clone https://github.com/cheaper-inference/OmniRoute.git
cd OmniRoute
npm ci --ignore-scripts
npm run setup:dev
Use a checkout with its own dependency tree for installation. To match CI's npm version, use the pin in config/ci/toolchain.json.
setup:dev prepares the locked Bun executable, verifies the installed native runtimes, syncs
.env, and installs Husky hooks. Prepare the OpenCode executable before running the integration
suite locally.
node scripts/ci/prepare-install-scripts.mjs --profile opencode-integration
npm run test:integration
Run npm run env:sync to create .env from the template or add missing entries. It generates
the machine ID salt for a new environment and preserves existing values. The server provisions
the JWT and API key secrets on first start.
Key variables for development:
| Variable | Development Default | Description |
|---|---|---|
PORT | 20128 | Server port |
NEXT_PUBLIC_BASE_URL | http://localhost:20128 | Base URL for frontend |
JWT_SECRET | (generated at startup) | JWT signing secret |
INITIAL_PASSWORD | CHANGEME | First login password |
APP_LOG_LEVEL | info | Log verbosity level |
The dashboard provides UI toggles for features that can also be configured via environment variables:
| Setting Location | Toggle | Description |
|---|---|---|
| Settings → Advanced | Debug Mode | Enable debug request logs (UI) |
| Settings → General | Sidebar Visibility | Show/hide sidebar sections |
These settings are stored in the database and persist across restarts, overriding env var defaults when set.
# Development mode (hot reload)
npm run dev
# Production build
npm run build # next build → .build/next/ then assembleStandalone → dist/
npm run start
# Fast backend/API-only compile for contributor changes
npm run build:contributor
# Release build (clean rebuild + HEAD sentinel — required for deploy)
npm run build:release # rm -rf .build dist && build + writes dist/BUILD_SHA
# Common port configuration
PORT=20128 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run dev
The contributor build performs compile-only validation: it does not assemble the standalone distribution or build optional native packaging assets. Use the regular production build when you need to validate the shippable bundle.
| Directory | Contents | Tracked |
|---|---|---|
src/ | Application source (TypeScript / TSX) | Yes |
.build/ | Intermediates — next build output (gitignored, distDir = .build/next) | No |
dist/ | Shippable bundle — assembled by assembleStandalone (gitignored) | No |
The build pipeline is a single pass:
npm run build
└─ next build → .build/next/standalone (Next.js output)
└─ assembleStandalone() (copies standalone + static + public + native assets)
└─ output: dist/ (server.js, .next/static/, public/, node_modules/)
npm run build:release additionally cleans both directories first and writes
dist/BUILD_SHA (= git rev-parse --short HEAD) as a deploy integrity sentinel.
npm run build:contributor uses the backend-only build profile. It temporarily stubs
dashboard UI files while building, keeps API route handlers, and restores the original files
after the build. Use npm run build for changes that affect the dashboard UI or for full
release validation; the contributor profile is not a replacement for the release build.
VPS deploy note: the remote image directory
/usr/lib/node_modules/omniroute/app/is unchanged. The deploy skills rsync the contents ofdist/into it. Only the in-repo build output path moved (app/→dist/).
Default URLs:
http://localhost:20128/dashboardhttp://localhost:20128/v1⚠️ NEVER commit directly to
main. Always use feature branches.PR base: target the active
release/vX.Y.Zbranch (notmain). Seedocs/ops/BRANCHING_MODEL.mdfor the release-per-branch + tag-at-ship model.
# Branch from the active release tip (example: release/v3.8.49)
git fetch origin
git checkout -b feat/your-feature-name origin/release/v3.8.49
# ... make changes ...
git commit -m "feat: describe your change"
git push -u origin feat/your-feature-name
# Open a Pull Request with base = release/v3.8.49
| Prefix | Purpose