9router-go

9router-go

Never stop coding. Save 20-40% tokens with RTK + auto-fallback to FREE & cheap AI models.

9router-go is a single Go binary that serves both the proxy APIs and the dashboard — no Node.js at runtime. This page is the entry point to the whole wiki.

Start here

You want to… Open
Install and run Installation
Use it from a CLI tool (Claude Code, Codex, Cursor…) Client Setup
See every endpoint API
Get to know the dashboard Dashboard
Connect AI providers Providers
Build fallback chains Combos
Cut token spend Token Saver
See what RTK actually saved Usage & Analytics
Limit who spends what Governance
Protect credentials and prompts Security
Understand routing internals Architecture
See how data is stored Database
Run it in production Operations
Configure everything in the dashboard Settings
Compare with upstream 9Router Parity
See what was ported, and from where Advanced Features
See what was ported from new-api New-API Ports
A model keeps failing — hold it back without hurting its siblings Advanced Features
Every CLI command and env var CLI
Contribute Contributing
Browse screenshots Screenshots

How it compares with 9Router

9Router is the upstream project this is built against: a Node.js + Next.js gateway. 9router-go is a reimplementation of the same contract in Go, and the difference is not the API — it is what you have to run.

9router-go 9Router (upstream)
Runtime Single Go binary Node.js + Next.js
Dashboard Embedded Svelte 5 React 19
Database SQLite (modernc, pure Go) SQLite
Schema Same, additive Same
Docker Single binary Node
Port 20130 20128

What is identical: request and response schemas for /v1/* (Chat Completions, Messages, Embeddings, Audio, Models), dashboard endpoints /api/* (Connections, Combos, ProxyPools, Settings, ProviderNodes, Usage, Auth), combo expansion, model fallback, account rotation, and strike-breaker quota handling. Both read the same ~/.9router/db/data.sqlite, so a connection you add in either dashboard shows up in the other — no import, no export, no migration step.

What 9router-go adds: per-custom-provider limits (RPM/TPM/concurrency/quota/expiry), per-API-key rate limiting with a FIFO queue, USD and token budgets with hard cutoff, an AES-GCM credential vault, Argon2id API key hashing, PII and injection guardrails, a semantic response cache, and Prometheus metrics.

What differs by design: SSE streams flow through io.Reader/io.Writer and are never buffered whole, and SQLite reads are batched — one query per page, never N+1.

What upstream still has and 9router-go does not — the other half of the comparison, from the repository's comparison document:

Full detail, including what is still unported: Parity and the repository's comparison document.

Running in 30 seconds

9router-go
# Dashboard: http://localhost:20130 (initial password: 123456)

Dashboard → Providers → connect Kiro AI (≈50 free credits per month) or OpenCode Free (no auth), then point your CLI tool at http://localhost:20130/v1.

Which version am I on?

9router-go version

Some features on this site arrived in a specific release. Where that matters, the page says so — for example the Advanced Features page lists which release each port landed in, and flags the ones that are still on a branch rather than in a release you can download.

The version in the sidebar footer is the release these pages document, not the binary the site was built from. The two differ while experimental work is in flight: the build being developed is 1.9.15-exp.16, while the release 9router-go update offers is still 1.9.14 — so the footer reads 1.9.14, because that is the release whose behaviour the pages describe. A page whose since frontmatter is newer than that release is marked new in the sidebar: the docs for two releases sit at the same URL, and without the mark a reader takes an experimental flag as the shipped contract.

What is in the box

Area What you get
Proxy APIs OpenAI Chat, Claude Messages, Responses, embeddings, images, video, audio, search, batches
Routing Combos with fallback, round-robin, sticky, capacity, and fusion
Token savers RTK compression plus Caveman, Ponytail, and ADHD output styles
Governance Per-key rate limits, USD/token budgets, plans, model allowlists
Security AES-GCM credential vault, Argon2id key hashing, PII and injection guardrails, SSRF protection
Providers 150+ providers, OAuth for most, custom OpenAI/Anthropic-compatible nodes
Operations Docker, tunnels, self-update, background loops, Prometheus metrics

The search box at the top left searches titles, headings, and endpoints across every wiki page. Results are also shareable: the URL becomes ?q=... (query) and #... (a specific section inside a page), so whoever you send it to opens exactly the part you meant.

Search