"Free Claude Code" isn't Claude: the OmniRoute install command, the safe setup and the providers to avoid
The short version
OmniRoute is a free, open-source router (MIT licence, 79,799 GitHub stars) that sits on your laptop between Claude Code and
other companies' AI models: Kimi, GLM, DeepSeek, Gemini and hundreds more. Claude Code keeps its window and its commands, but
when it runs through OmniRoute it is no longer Claude answering. Another company's model writes the replies. When one free
allowance runs dry, OmniRoute hops to the next model, like a phone switching to whichever network still has free minutes. It
was built by Diego Souza (GitHub diegosouzapw) in São Paulo, Brazil, and its tagline is "Never stop coding." Here is the
install command exactly as the README states it, the safe setup, the connection types to stay away from, how to switch Claude
Code back to Claude, and the catch. Source: the OmniRoute GitHub repository (https://github.com/cheaper-inference/OmniRoute,
README, FREE-TIERS-GUIDE.md, FREE_TIERS.md, CLAUDE-CODE-CONFIGURATION.md), checked 23 Oct 2026.
| What | The number |
|---|---|
| GitHub stars | 79,799 (checked 23 Oct 2026) |
| Licence | MIT, free and open source |
| Install | 1 command |
| Who answers | Another company's model, not Claude |
| Safe way to connect | Official API keys you sign up for yourself |
| Providers its own catalog flags "avoid" | 12 |
First: what is a router here?
Claude Code normally sends every message to Anthropic, the company that makes Claude. OmniRoute changes that address: Claude
Code talks to OmniRoute on your own computer (http://localhost:20128), and OmniRoute passes the message on to whichever
company's model you connected. So "free Claude Code" really means Claude Code's window with someone else's model inside. The
free part is other companies' free allowances, not Claude. The README says it plainly: the free-token figure is "not a token
grant from OmniRoute", and you sign up for each company yourself.
Copy this: the install command
You need Node.js installed (npm comes with it). Then, in your terminal, exactly as the README's Quick Start states:
npm install -g omniroute
omniroute
The first line installs it; the second starts it. The dashboard opens at http://localhost:20128.
If npm (version 11 or later) warns that install scripts were blocked, the README's Quick Start has the one-line fix with the
exact package names to allow. Use the names from your own warning, since the list can change between releases.
The safe setup: only official API keys
- Sign up yourself. Pick an AI company that hands out an official API key (a password-like code made for programs), make an account on its own website and create a key there. The repo's Free Tiers Guide lists free-tier providers that work this way, including DeepSeek (platform.deepseek.com), Groq and Gemini through Google AI Studio. One account per company, in your own name. The repo's own guide says: "Do not create extra accounts to evade a provider's quota or access policy."
- Add the key in OmniRoute. Dashboard → Providers → choose the company → paste its API key. The README: "choose a provider whose current terms and quota fit your use case."
- Point Claude Code at it. Launch Claude Code through OmniRoute with one command (README, "Launch any supported CLI"):
Swapomniroute run claude --model <provider/model><provider/model>for one of the models listed in your dashboard. The README's own example isomniroute run claude --model openai/gpt-5.4. This only changes that one Claude Code session: no config files are written.
Keep OmniRoute on your own laptop. It holds your keys, so never open its port to the internet.
The providers to avoid
OmniRoute can also connect in ways that are not an official key. Don't use them. These are the ones its own docs flag:
- Web-login (cookie) bridges. Anything that works by reusing your logged-in website session instead of an API key: the README names "Gemini Web or another web-cookie provider", and credits the project's "Grok Web" transport to a "cookie-authenticated Grok proxy". As a rule: if a provider's name ends in Web, or it asks for your browser login instead of a key, skip it.
- Reusing a subscription or app login. Logging an existing plan or coding app account into the router so other tools can use it. The repo's terms table quotes Google Antigravity's terms as "explicitly prohibits using third-party software, tools, or services (including proxies) to access the service via OAuth", and Kiro's FAQ as prohibiting use with "third-party harnesses". This includes your own Claude subscription: use it in Claude Code directly, not through a router.
- Anything marked
tos: avoid. The repo's catalog marks 12 providers this way because their terms forbid proxy use. They include Kiro, Google Antigravity (agy), DuckDuckGo web, T3 web, Fireworks, AI21, Blackbox, Coze, FriendliAI, iFlytek and NLP Cloud, plus one more web-login bridge (full list in docs/reference/FREE_TIERS.md). The README says these are kept out of automatic routing by default, but the reference doc calls the flag "advisory, not a routing gate". So don't count on the filter: just don't connect them. - Free tiers that log what you send. The guide notes that Logfare's free key means "every request is logged" for research. Your code goes with every request, so read each company's privacy terms before you connect it.
Breaking a company's terms can get that account limited or closed. The repo's own guide lists "account-policy risk" as part of the catch. There are no steps here for any of these on purpose.
Switch Claude Code back to Claude
- If you used
omniroute run claude: quit that session (type/exit) and start Claude Code the normal way withclaude. The router settings only lived inside that one session. - If you pasted OmniRoute's settings into Claude Code (the dashboard's CLI Code card offers a
settings.jsonblock): open~/.claude/settings.json, delete theANTHROPIC_BASE_URL,ANTHROPIC_AUTH_TOKENandCLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERYlines from theenvblock, save, and restart Claude Code. Claude Code reads these only at startup. - If you set them in your terminal: run
unset ANTHROPIC_BASE_URL ANTHROPIC_AUTH_TOKEN ANTHROPIC_MODEL, or open a new terminal window, then startclaude. - Check: type
/modelin Claude Code. You should see Claude's own models again (Opus, Sonnet, Haiku), notkimi/…orglm/….
What you actually get vs Claude
- You get: Claude Code's window, commands and tools, running on other companies' models, often for free within their allowances, with automatic hopping when one runs out ("If quota runs out, a provider fails … the combo can move to the next eligible healthy model", README).
- You don't get: Claude. The answers, the code and the mistakes come from whichever model is connected, and when OmniRoute hops mid-task, the next reply can come from a different model than the last one.
- Honest take: fine for learning, side projects and keeping going after a limit on simple tasks. For hard or important work, check what each model gives you, and switch back to Claude when it matters.
The catch
- It's not Claude. Quality varies by model and by task. The guide's own answer to "Do free providers have worse quality?" is "Not necessarily", but adds that limits, latency, privacy and model versions "can differ".
- Free allowances change. "Every provider can rate-limit, change models, suspend access, or go offline" (FREE-TIERS-GUIDE). The big free-token totals in the README are estimates across many separate accounts, and a fresh install "can have no eligible keyless target".
- Account risk. Web-login bridges and subscription reuse can break a company's terms. Stick to official API keys.
- Your data goes to those companies. The README: "Prompts are sent to the upstream provider selected for each request." The guide lists "training on prompts" and "weaker privacy" among the trade-offs. Don't send secrets, passwords or client code you're not allowed to share.
- Free can still ask for a card. "Free tiers may require signup, approval, or a payment method" (README).
For builders
- Claude Code reaches any gateway through environment variables (
ANTHROPIC_BASE_URL,ANTHROPIC_AUTH_TOKEN); OmniRoute's CLAUDE-CODE-CONFIGURATION.md documents its per-model profiles under~/.claude/profiles/<name>/, which leave your main~/.claude/settings.jsonuntouched.
Sources
- OmniRoute repo: https://github.com/cheaper-inference/OmniRoute (checked 23 Oct 2026; 79,799 stars, MIT, tagline "Never stop coding.")
- Quick Start (install, connect, point your tool): https://github.com/cheaper-inference/OmniRoute#-quick-start
- Free Tiers Guide: https://github.com/cheaper-inference/OmniRoute/blob/main/docs/getting-started/FREE-TIERS-GUIDE.md
- Free tiers reference and ToS table: https://github.com/cheaper-inference/OmniRoute/blob/main/docs/reference/FREE_TIERS.md
- Claude Code configuration: https://github.com/cheaper-inference/OmniRoute/blob/main/docs/guides/CLAUDE-CODE-CONFIGURATION.md
- The maker: https://github.com/diegosouzapw