Open Source Alternatives LogoOpen Source Alternatives
AlternativesBlogAdvertise
Open Source Alternatives LogoOpen Source Alternatives

Stay Updated

Subscribe to our newsletter for the latest news and updates about Alternatives

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Product
  • Search
  • Categories
  • Tag
  • Sign In
Resources
  • Blog
  • Collection
  • Submit
  • Advertise your tool
Company
  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap
Copyright © 2026 All Rights Reserved.
Home/Categories/AI & Machine Learning/9Router
9Router icon

9Router

Open source alternative to GitHub Copilot, Cursor and Portkey

Connect AI coding tools to 40+ providers with smart 3-tier fallback, maximizing free model quotas to eliminate rate limits.

17.3K starsJavaScriptMITActive this month
Visit websiteGitHub repo
9Router preview
Contents
  1. 01Who 9Router is for
  2. 02The problem it solves
  3. 03How it solves it
  4. 04Strengths and trade-offs
  5. 05Tech stack
  6. 06FAQ
  7. 07Similar open-source tools
TL;DR

9Router is a local AI model router for coding tools that manages provider choice, token compression, quota tracking, and fallback across many models. It replaces manually switching API keys and subscriptions across Claude Code, Cursor, Codex, Cline, and other AI coding tools. Best for developers who actively use multiple AI providers and want cost control.MIT · JavaScript · 17.3K stars · Active this month

who it's for

Who 9Router is for#

Developers using several AI coding tools

Use 9Router when you regularly switch between coding assistants and want one local control point for models, keys, quotas, and fallback.

Skip if:

Skip if you use one hosted assistant and are satisfied with its built-in model selector.

Teams watching AI API spend

It helps teams experiment with cheaper and free model paths while keeping expensive providers available for harder tasks.

Skip if:

Skip if your organization requires approved vendor routing and centralized audit controls.

the problem

The problem it solves#

AI coding workflows stall when one provider hits a quota, a subscription goes unused, or tool output burns tokens faster than expected. Developers who use several coding agents often juggle API keys, model formats, and fallback choices manually, which turns the model layer into constant operational overhead.

how 9Router solves it

How it solves it#

OpenAI-compatible local endpoint

Exposes a local `/v1` style route so AI coding tools can point at one router instead of multiple provider endpoints.

Token-saving tool output compression

The README describes RTK Token Saver as a way to reduce tool_result token usage by 20-40 percent per request.

Provider fallback and quota tracking

Routes across subscriptions, cheaper APIs, free options, and multiple accounts so coding can continue when one model path is exhausted.

strengths · trade-offs

Strengths and trade-offs#

Strengths

  • Built for coding-agent traffic9Router names Claude Code, Cursor, Codex, Gemini, OpenCode, Cline, and similar tools as target clients rather than treating them as generic API callers.
  • MIT licenseThe MIT license is permissive for commercial and personal workflows where developers want to run a local routing layer.

Trade-offs

  • -Model routing adds another moving partA router can save money and reduce interruption, but it also centralizes credentials and introduces one more service to debug when requests fail.
tech stack · detected from GitHub

What it's built on#

Languages
JavaScript
Frameworks
ExpressNext.jsReact
Tooling
esbuild
frequently asked

FAQ#

What does 9Router do?

9Router routes AI coding-tool requests through one local endpoint, adding token compression, quota tracking, and provider fallback.

Does 9Router work with Claude Code and Cursor?

The README lists Claude Code, Cursor, Codex, Cline, Gemini, OpenCode, and other CLI coding tools as supported clients.

Is 9Router a model provider?

No. It is a router in front of model providers and subscriptions, so you still need the accounts or API keys you plan to use.

also worth a look

Similar open-source tools#

codebase-memory-mcp

codebase-memory-mcp

Efficient code intelligence for AI coding agents

10.9KCMIT
orca

orca

The ultimate IDE for coding agents

4.7KTypeScriptMIT
CLI-Anything

CLI-Anything

Empower AI agents with agent-native CLIs

43.6KPythonApache-2.0
agentmemory

agentmemory

Persistent memory for AI coding agents

23.6KTypeScriptApache-2.0
superpowers

superpowers

Skill-based workflows for coding agents

232.5KShellMIT
Agent Skills

Agent Skills

Structured workflows for AI coding agents.

41KShellMIT

Repository

Stars
17.3K
Forks
2.6K
License
MIT
Latest
v0.4.71
Last commit
19 days ago
Last verified
Jun 11, 2026
Repo
decolua/9router ↗

Additional details

Language
JavaScript
Open issues
679
Contributors
125
First release
2026

Categories

AI & Machine LearningDeveloper ToolsLLMOps & AI ToolingWeb Development

Tags

AI Coding AssistantDeveloper ToolsLLMOpsWorkflow AutomationCLI