Skip to content

9routerx

Single-binary local LLM gateway with provider fallback for coding CLI users

Permissive (OSI) · MIT AI-native

Listed by , founder & editor

84

Health

Thriving

Overview

Stars

268

Last commit

today

Nov 2026

Repository age

1 months

since Nov 2026

Latest version

v1.5.6

Nov 2026

Contributors

–

5 active in 90 days

Releases

18

last 12 months

Language

Go

9RouterX is a local AI gateway written in Go and shipped as one binary. It listens on loopback port 20128 by default and has an embedded Svelte dashboard. It exposes Chat Completions, Anthropic Messages, Responses, embeddings, model catalogs, Ollama-compatible chat, MCP and A2A routes, so coding CLIs and OpenAI-compatible tools can use one endpoint.

The registry holds 154 provider entries: 91 API-key, 28 OAuth, 29 free and 6 web-cookie. The free catalog lists 248 models across 36 providers, 24 of them keyless. Routing follows a three-tier cascade: subscription first, then cheap APIs, then free models when limits run out.

Other features include token-saving filters for tool output, with a claimed 20 to 40 percent reduction, a semantic cache, and per-key daily spending ceilings. It is MIT licensed and can run in Docker. It is a self-hosted alternative to OpenRouter and LiteLLM for a single user.

Who it's for

Developers using Claude Code, Codex or Cursor

One local endpoint handles routing, fallback and token trimming for several coding CLIs.

Skip if: You need a multi-tenant service for a team.

Developers with several subscriptions and free-tier accounts

The cascade uses subscription quota first and falls back to cheap and free providers on rate limits.

Skip if: You want one hosted bill across providers.

Cost-conscious users who want spending caps

Per-key daily USD ceilings can cut requests off at a set limit.

Skip if: You need a mature release history; the project is new.

The problem it solves

Coding agents hit rate limits, burn tokens on verbose tool output and spread across several subscriptions. This gateway sits on your machine and routes, trims and caps requests before they leave it.

Strengths

  • Single Go binary with embedded dashboard, no Node.js runtime
  • 154 provider entries and 248 free models across 36 providers
  • Subscription, cheap, then free failover cascade
  • 50+ per-tool output filters to cut token use
  • MIT license with Docker support

Trade-offs

  • No hosted pay-as-you-go billing across providers
  • Aimed at one local user, not multi-tenant hosting
  • Authentication varies by provider, so some need OAuth or cookies
  • Token savings figures are the project's own claim

9routerx replaces

Self-host 9routerx

Self-hostable
Yes
Docker Compose
The repository ships a Compose file

Frequently asked questions

Is 9RouterX free?

Yes. It is MIT licensed. You still pay any providers whose paid APIs you use.

Can I self-host it?

Yes. It runs locally as a single binary, and Docker is supported.

Which port does it use?

Port 20128 on loopback by default.

What API formats does it speak?

Chat Completions, Anthropic Messages, Responses, embeddings and Ollama-compatible chat, plus MCP and A2A routes.

Other OpenRouter alternatives

Compare all 5 OpenRouter alternatives →

Similar tools in LLM gateways and routers

jev-style

LLM gateways and routers

Small local decision models that classify text and route requests with calibrated

140 4 19 days ago Active Apache-2.0

Replaces Jev

MindsDB

LLM gateways and routers

Agent workspace for knowledge work and coding, with a choice of models and open agents

40k 6.2k 31 days ago Active MIT

claude-code-router

LLM gateways and routers

Local gateway that routes Claude Code, Codex and other agents to the providers you choose

38k 3.2k 3 days ago Thriving MIT

archgw

LLM gateways and routers

AI-native proxy and data plane for routing, guarding and tracing agent traffic

7.1k 499 30 days ago Active Apache-2.0

gpt-load

LLM gateways and routers

Self-hosted gateway that pools LLM API keys and subscriptions behind one endpoint

7.2k 799 today Thriving MIT

Helicone

LLM gateways and routers

AI gateway with request logging and tracing for teams running LLM apps

6.3k 709 6 days ago Slowing Apache-2.0

Replaces LangSmith