9Router: A Free-Tier Aggregator for AI Coding Tools, With Token Compression Built In
Unlimited FREE AI coding. Connect Claude Code, Codex, Cursor, Cline, Copilot, Antigravity to FREE Claude/GPT/Gemini via 40+ providers. Auto-fallback, RTK -40% tokens, never hit limits.
At a glance
- What is it?
- 9Router is an open-source gateway that connects Claude Code, Cursor, Cline and similar tools to 40-plus AI providers, prioritizing free and cheap tiers. Its RTK token saver compresses tool output to cut usage, but the project's claims about 'unlimited free' need careful verification.
- Who is it for?
- 9Router suits developers who juggle multiple AI coding tools and want a single local endpoint that can route to free or low-cost providers, especially those already paying for subscriptions that they do not fully use. It is not for teams that need guaranteed enterprise-grade reliability or that cannot tolerate a third-party proxy handling their API keys and prompts.
- Can I use it commercially?
- Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 5 days ago.
- What is it written in?
- Mainly JavaScript, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.
DEEP OPEN-SOURCE ANALYSIS
What 9Router Actually Solves
9Router addresses a specific pain: developers who use AI coding assistants such as Claude Code, Cursor, Cline, Codex and Copilot often hit per-provider rate limits or burn through subscription quotas before the month ends. The project's pitch is to stop that waste by routing each request through a local gateway that sits between your CLI tool and the model provider. The gateway can pick from a tiered list: subscription-based services first, then cheap pay-as-you-go models, then free providers. The README gives concrete examples: Claude Code, Codex, GitHub Copilot as tier one, GLM and MiniMax as cheap tier-two options, and Kiro, OpenCode Free and Vertex as tier three. The intended user is an individual developer or small team that wants to keep coding without watching token counters, not an enterprise that needs formal SLAs.
The Routing Architecture and Data Flow
The architecture is straightforward. Your CLI tool points at a local endpoint, http://localhost:20128/v1, which is OpenAI-compatible. 9Router receives the request, then performs two main jobs. First, it translates the request format between OpenAI and Claude dialects so that a tool built for one API can talk to a provider that expects the other. Second, it applies RTK, which the README describes as auto-compressing tool_result content to save 20-40% of tokens per request. The router also tracks quota usage per provider and can refresh tokens automatically. The fallback logic is tier-based: it tries the subscription tier, and when quota is exhausted it moves to the cheap tier, and if a budget limit is hit it goes to the free tier. This means a single request can fail over between providers mid-conversation, which is useful but also raises questions about context continuity. The README does not explain how the router preserves conversation state across providers with different context windows or model behaviors.
Installation and First Run
The quick start path is an npm global install. Run npm install -g 9router, then execute 9router. A dashboard opens at http://localhost:20128. From there you connect a provider. The README highlights Kiro AI, which it claims gives roughly 50 free credits per month for Claude 4.5, GLM-5 and MiniMax, and OpenCode Free, which it says needs no authentication. After connecting, you copy an API key from the dashboard and configure your CLI tool with the endpoint and key. The model identifier format includes a provider prefix, for example kr/claude-sonnet-4.5. If you prefer to run from source, the repository package is private, so the expected path is to clone, copy .env.example to .env, run npm install, then start the dev server with PORT=20128 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run dev. Production mode uses npm run build and then npm run start with the same environment variables. The dashboard and API live on the same port, which keeps local setup simple but means the gateway is not designed for remote access without extra configuration.
The RTK Token Saver: Mechanism and Caveats
RTK is the project's most distinctive feature. The README says it auto-compresses tool_result content, which in a coding tool context means the output of commands like git diff, grep, or ls. Those outputs are often verbose and repetitive, and they consume tokens every time the model sees them. Compressing them before sending to the provider could reduce input size substantially. The claimed savings are 20-40% per request. However, the README gives no detail on the compression algorithm, whether it is lossless, or how it affects model comprehension. If the compression strips context that the model needs to reason about code, the quality of responses could drop. The release notes mention cached token tracking in v0.5.18, which suggests the project is actively refining how it counts tokens, but none of the material verifies the actual savings on real workloads. A user should test RTK on their own typical tool output before trusting the percentage.
Provider Coverage and the 'Free' Reality
The README claims access to 40-plus providers and 100-plus models, including Claude, GPT, Gemini, DeepSeek, Qwen, and Grok. The release notes add specifics: v0.5.35 introduced Grok Imagine video and a Copilot Claude route, and v0.5.20 added a thinking level picker and suffix support across providers. That breadth is the project's main draw. Yet the word 'free' needs scrutiny. The README lists free tiers like Kiro's 50 monthly credits and OpenCode Free with no auth, but those are third-party services that can change terms or shut down. The router cannot create free capacity where none exists; it merely aggregates existing free offers. Also, 'unlimited free' in the tagline is contradicted by the tiered fallback design, which implies that free resources are limited and that cheaper paid models are the backup. The realistic value is not unlimited free access but rather automatic movement between whatever free quota exists and low-cost paid models, which can reduce monthly spend if you would otherwise pay full price for a single provider.
Security and Operational Trade-offs
Running 9Router locally means all your API keys and prompts pass through a local proxy, but the proxy itself is an npm package that you install globally. That gives it access to your system and your keys. The README does not discuss security audits, encryption at rest, or how keys are stored in the dashboard. For a tool that handles sensitive source code and credentials, this is a real gap. Also, because the router translates formats and compresses content, it sits in the middle of every request, which adds latency and a potential point of failure. The fallback logic is designed to reduce downtime, but it only works if the providers you configured are actually reachable. If the router crashes or the local port is busy, your CLI tool loses its connection. The project is MIT-licensed, which means you can inspect and modify the code, but the README notes that the npm package is private, so the source repository may not match exactly what you install. That mismatch is worth investigating before you trust it with production workloads.
Maintenance, Licensing, and Upgrade Cost
The repository shows a steady release cadence: v0.5.18 in early July 2026, v0.5.20 a few days later, and v0.5.35 by mid-July, with a last push in September 2026. That suggests active development, and the feature list changes frequently, which is good for innovation but bad for stability. Each release can change routing behavior, provider support, or configuration formats, so upgrades require reading release notes and re-testing your setup. The license is MIT, which gives you freedom to use, modify, and redistribute, but it also means there is no warranty or support obligation. The project has a homepage and Docker images, so deployment options exist beyond npm, but the README does not document an upgrade path or migration notes between versions. For a tool that sits in your coding workflow, the maintenance cost is ongoing: you must track releases, verify that your preferred free providers still work, and adjust your configuration when provider APIs change. That is a real operational burden, even for a free tool.
Alternatives and Where 9Router Fits
The most direct alternative is LiteLLM, a widely used open-source proxy that also exposes an OpenAI-compatible endpoint and routes to many providers. The key difference is that LiteLLM focuses on unified API access and cost tracking across providers, but it does not build in a free-tier aggregator or a token-compression layer like RTK. You would configure your own fallback logic and pay for whatever models you use. Another alternative is to use each provider's native CLI or API directly, which avoids the middle layer entirely but forces you to manually switch between tools when you hit limits. 9Router's niche is the combination of auto-fallback across subscription, cheap, and free tiers, plus the RTK compression that targets the specific token waste of coding tool outputs. If you already use LiteLLM or direct provider connections and do not mind manual switching, 9Router may be redundant. But if you want a single endpoint that tries to use your existing subscriptions before spending money, and you are willing to trust a third-party router with your traffic, it offers a different value proposition that those alternatives do not match.
Editorial conclusion
9Router suits developers who juggle multiple AI coding tools and want a single local endpoint that can route to free or low-cost providers, especially those already paying for subscriptions that they do not fully use. It is not for teams that need guaranteed enterprise-grade reliability or that cannot tolerate a third-party proxy handling their API keys and prompts. Before adopting it, verify the actual availability and rate limits of the free providers it lists, test the RTK compression on your own workloads to confirm the 20-40% token savings, and check the project's recent commit history and issue tracker to ensure active maintenance. The 2026 release dates and frequent version bumps suggest momentum, but the README's promotional tone means you should treat headline numbers as targets, not promises.
Community notes