free · runs locally · open source
One Endpoint for
All AI Providers
9Router sits between your coding tools and 40+ AI providers. Its RTK token saver trims 20–40% of every request, and when a quota runs dry it falls back from subscription to cheap to free models — so you never stop coding.
- 20–40% tokens saved
- 40+ providers
- 100+ models
- $0 · MIT licensed
Claude Max · Copilot · Codex
GLM $0.6/1M · MiniMax $0.2/1M
Kiro · OpenCode Free · Vertex
Claude Max · Copilot · Codex
GLM $0.6/1M · MiniMax $0.2/1M
Kiro · OpenCode Free · Vertex
// quick start
Get started in 30 seconds
No cloud signup, no credit card. 9Router runs entirely on your machine.
- 1
Run 9Router
One command starts the router and local dashboard. No account, no config files.
- 2
Connect providers
Open the dashboard at localhost:20128 and link subscriptions, API keys, or free providers.
- 3
Point your tools at it
Set your CLI’s base URL to http://localhost:20128/v1 and keep coding.
$ npx 9router
› Starting 9Router…
› API ready on http://localhost:20128/v1
› Dashboard: http://localhost:20128/dashboard
✓ Ready to route
then point your tool at it:
# ~/.claude/settings.json
{
"env": {
"ANTHROPIC_BASE_URL": "http://localhost:20128",
"ANTHROPIC_AUTH_TOKEN": "<key from dashboard>",
"ANTHROPIC_MODEL": "kr/claude-sonnet-4.5"
}
}// how it works
Route every request to the cheapest model that can handle it
One local process between your tools and the providers. It saves tokens on the way in and never lets a rate limit stop you.
1. Your tools send requests
Claude Code, Codex, Cursor, Cline — anything that lets you change the base URL talks to 9Router instead of a provider.
2. 9Router compresses & translates
RTK trims bulky tool output (git diff, grep, ls) before it reaches the model and translates between OpenAI and Claude formats.
3. The best available tier answers
9Router tracks quota per provider and routes each request to the highest tier that still has room.
fallback cascade
zero downtime
// features
Everything a router should do
Built for developers who live in AI coding tools and refuse to waste tokens.
works with the tools you already use
- Claude Code
- Codex
- Cursor
- Cline
- RooCode
- OpenCode
- GitHub Copilot
- Gemini CLI
- Antigravity
- OpenClaw
// faq
Frequently asked questions
Stop paying for tokens
you don’t need to spend
One command, and every AI tool you use gets cheaper, more resilient, and quota-proof.