← All prompt collections

The full post, ready to copy

OmniRoute: Keep Coding When Your Claude Limit Runs Out

Slide 1

OmniRoute (github.com/cheaper-inference/OmniRoute) is a free, open-source (MIT) AI gateway that runs on your own computer. You point Claude Code, Cursor, Copilot, Codex, Cline and other tools at one local endpoint. Behind it, OmniRoute can reach 394 AI providers, 150+ of them with free tiers. - Auto-fallback: when one model's quota or budget runs out, it moves to the next eligible model (subscription → API key → cheap → free), so you keep working. - Compression: before a request goes out, it strips what the model doesn't need (default stack RTK → Caveman). The README quotes 15–95% token savings; code, URLs and JSON are kept intact.

Slide 2

- Node.js 22 or 24 (LTS) - A terminal - Your own accounts or API keys for the providers you want to use. The free tiers belong to those providers: you sign up with them, and their limits and terms apply. OmniRoute doesn't give you tokens itself. - Optional: your existing Claude, Codex or Copilot subscription, which OmniRoute can use first before falling back.

Slide 3

npm install -g omniroute omniroute That starts the gateway and opens the dashboard at http://localhost:20128 (the API is at http://localhost:20128/v1). Prefer a guided setup? Run: omniroute setup On npm 11 or later, npm may block install scripts. If it warns you, allow the packages it names (the README lists the exact command for the current version).

Slide 4

In the dashboard: Providers → pick a provider → add its API key or sign in. Start with one or two you trust, then add more. Check each provider's terms and limits first. Providers marked "tos: avoid" are left out of automatic routing by default. Then copy your OmniRoute key from Dashboard → Endpoints.

Slide 5

Fastest way, no config files (pick any provider/model you connected): omniroute run claude --model openai/gpt-5.4 Or write the tool's own config with a picker: omniroute configure claude (also works for codex, opencode, cline, gemini, aider and more) Any other tool: set it to Base URL: http://localhost:20128/v1 API key: your OmniRoute key Model: auto "auto" lets OmniRoute pick the best eligible model and fall back when one runs out.

Slide 6

- Run omniroute doctor if something doesn't connect. - The dashboard shows live usage, quota, savings and which model answered. - Free tiers change often, so the more providers you connect, the less you get stuck. - Keep it on your own machine: your keys are stored locally and encrypted.