Open Source Alternatives
  • Alternatives
  • Categories
    Categories by size882 projects
    • Developer Tools461
    • AI & Machine Learning404
    • Web Development196
    • Business & Productivity191
    • Communication & Collaboration126
    • Security & Monitoring126
    • IT Management123
    • Product & Project Management106
    • Cloud & Hosting105
    • Data & Analytics104
    Browse all 21 categoriesLLMOps & AI Tooling, Design & Creative and 9 more
  • Blog
  • Advertise
SearchNotion, Slack, password manager.../
Submit
Open Source Alternatives
  • Alternatives
    • Developer Tools461
    • AI & Machine Learning404
    • Web Development196
    • Business & Productivity191
    • Communication & Collaboration126
    • Security & Monitoring126
    • Browse all 21 categories
  • Blog
  • Advertise
Submit your project

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Open Source Alternatives LogoOpen Source Alternatives

Handpicked Open Source Alternatives to Paid Softwares

Product

  • Categories
  • Tag
  • Advertise

Resources

  • Blog
  • Collection
  • Submit

Company

  • Privacy Policy
  • Terms of Service
  • Refund Policy
  • Sitemap

Alternatives

  • Claude Code
  • Jira
  • Notion
  • Slack
  • Linear
  • Wispr Flow
  • All alternatives
© 2026 Open Source Alternatives. All rights reserved.
Open SourceAlternatives
Home/Categories/AI & Machine Learning/9Router
9Router icon

9Router

Open source alternative to OpenRouter, GitHub Copilot, Cursor and Portkey

  • 31.1K stars
  • MIT
  • Active this week
  • Last commit 6 days ago

Last verified Oct 20, 2026

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

Visit websiteGitHub31.1K stars1-click deploy on Hostinger
9Router preview
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.

Read the full breakdownHide the full breakdownWho it is for, how it works, trade-offs and the FAQ
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#

Litellm

Alternative toPortkey

Self-hosted AI gateway for 100+ LLMs in OpenAI format

  • 61,759 GitHub stars
  • CustomLicence MIT with enterprise directory carve-out

OmniRoute

Alternative toOpenRouter

352-provider AI gateway with automatic fallback and token compression

  • 78,353 GitHub stars
  • MITLicence MIT

freellmapi

Alternative toOpenRouter

One OpenAI-compatible key for 635 free LLM endpoints

  • 38,191 GitHub stars
  • MITLicence MIT

Superlearn

Alternative toNotebookLM

Interactive study boards for any topic, no new subscription needed

  • 123 GitHub stars
  • MITLicence MIT

fx

Alternative toClaude Code

Native Zig CLI coding agent, 7.8 MiB, any AI model.

  • 3,512 GitHub stars
  • Apache-2.0Licence Apache-2.0

sub2api

Alternative toOpenRouter

One API gateway for Claude, OpenAI, Gemini, and Grok subscriptions

  • 44,454 GitHub stars
  • LGPL-3.0Licence LGPL-3.0
by category

Open source tools in these categories#

404

AI & Machine Learning

freeCodeCamp, OpenClaw, REA (Reverse Engineer Anything)
461

Developer Tools

REA (Reverse Engineer Anything), superpowers, Skills for Real Engineers
101

LLMOps & AI Tooling

Hermes Agent, OpenCode, MarkItDown
196

Web Development

superpowers, freeCodeCamp, Skills for Real Engineers
Hostinger

Run 9Router on your own server

Hostinger sets 9Router up as a one-click app on a VPS.

Deploy on Hostinger

Featured

Inbox Zero

Alternative toSuperhuman

AI email assistant that drafts replies and clears your inbox

  • 12,712 GitHub stars
  • AGPL-3.0Licence AGPL-3.0
  • #Email

rakazo

Alternative toGrok Bot

AI teammates you own: your keys, your model, your machine.

  • 4,904 GitHub stars
  • Apache-2.0Licence Apache-2.0
  • #AI Agents

Omnara

Alternative toCClaude Managed Agents

Open-source agent deployment API. Self-host or use Omnara Cloud.

  • 2,957 GitHub stars
  • Apache-2.0Licence Apache-2.0
  • #AI Agents
Feature your project

New open source projects by email

The projects we add and every new guide. Free, unsubscribe any time.

Find open source alternatives to paid software

/
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • CapCut to Concat
  • Grok Bot to rakazo
  • Superhuman to Inbox Zero
  • Airtable to AITable
  • Muse to OpenClaw
  • GitHub Copilot to Cline
  • Datadog to Netdata
  • Microsoft Teams to Rocket.Chat
  • Pinecone to Qdrant
  • Zapier to n8n
  • Devin AI to OpenHands
  • Firebase to Supabase
  • 1Password to KeePassXC
  • Confluence to Docmost
  • Contentful to Strapi
  • Adobe Premiere Pro to Shotcut
  • ChatGPT to AnythingLLM
  • LangSmith to Langfuse
  • Claude Code to OpenCode
  • Jira to Windshift
  • Notion to AppFlowy
  • Slack to Mattermost
  • Linear to GitLab
  • Wispr Flow to Handy
  • CapCut to Concat
  • Grok Bot to rakazo
  • Superhuman to Inbox Zero
  • Airtable to AITable
  • Muse to OpenClaw
  • GitHub Copilot to Cline
  • Datadog to Netdata
  • Microsoft Teams to Rocket.Chat
  • Pinecone to Qdrant
  • Zapier to n8n
  • Devin AI to OpenHands
  • Firebase to Supabase
  • 1Password to KeePassXC
  • Confluence to Docmost
  • Contentful to Strapi
  • Adobe Premiere Pro to Shotcut
  • ChatGPT to AnythingLLM
  • LangSmith to Langfuse