
OmniRoute
Self-hosted AI gateway that sends Claude Code, Cursor and other coding tools through hundreds of providers with free-tier fallback and token compression.
OmniRoute is a self-hosted AI gateway that puts one OpenAI-, Claude-, Gemini- and Responses-API-compatible endpoint in front of several hundred model providers, 150+ of which carry free tiers. You install it with npm, Docker or the Electron desktop app, connect your own provider accounts (OAuth sign-in, API keys, local runtimes such as Ollama and LM Studio, or keyless public endpoints), then point Claude Code, Codex, Cursor, Cline, Continue, Aider, OpenCode or GitHub Copilot Chat at http://localhost:20128/v1. Requests are matched to your own providers from your machine, and keys, quotas, spend and health are managed in a single local dashboard.
Routing is the core feature. model: auto builds a live combo from the providers you connected, or you assemble your own chain from 22 strategies (priority, fill-first, weighted, cost-optimized, quota-weighted, reset-aware, context-relay and more) with four fallback tiers that run from subscription quota to API keys to cheap models to free tiers. Three resilience layers — a provider circuit breaker, per-key cooldown and per-model lockout — keep one dead key or rate-limited model from ending a session. A 12-engine compression pipeline (RTK plus Caveman by default) cuts eligible tool output and context by 15–95% while a preservation engine leaves code blocks, JSON, URLs and structured data untouched.
Beyond proxying, OmniRoute ships a CLI with more than 80 commands, a built-in MCP server (110 tools over stdio, HTTP or SSE), an A2A agent endpoint, webhooks and a semantic response cache. Provider credentials are encrypted with AES-256-GCM in a local SQLite database, prompts make no extra hop through a hosted service, and telemetry is off by default. Where OpenRouter, Portkey and Cloudflare AI Gateway are metered services between you and the model vendors, OmniRoute is MIT-licensed software you run yourself, and it can route through flat-rate subscriptions and free tiers that hosted gateways generally cannot.








