decolua /9router
Unlimited FREE AI coding. Connect Claude Code, Codex, Cursor, Cline, Copilot, Antigravity to FREE Claude/GPT/Gemini via 40+ providers. Auto-fallback, RTK -40% tokens, never hit limits.
★ 32,481⑂ 6,359👁 140⑃ 3,007● 2,300▤ 73
Download: feat: Grok Imagine video, Copilot Claude route, i18n th/fa version 0.5.35feat-0.5.35 ↓0.5.352026-07-16
+48
Daily
+584
Weekly
+1,799
Monthly
32,481
stars
6,359
forks
140
watchers
3,007
prs
2,300
issues
73
releases
README
9Router - FREE AI Router & Token Saver
Never stop coding. Save 20-40% tokens with RTK + auto-fallback to FREE & cheap AI models.
Connect All AI Code Tools (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini, OpenCode, Cline, OpenClaw...) to 40+ AI Providers & 100+ Models.
🚀 Quick Start • 💡 Features • 📖 Setup • 🌐 Website
🇧🇷 Português (Brasil) • 🇻🇳 Tiếng Việt • 🇨🇳 中文 • 🇯🇵 日本語 • 🇷🇺 Русский • 🇹🇭 ไทย • 🇮🇷 فارسی • 🇮🇩 Indonesia • 🇪🇸 Español • 🇫🇷 Français
---
🤔 Why 9Router?
Stop wasting money, tokens and hitting limits:
- ❌ Subscription quota expires unused every month
- ❌ Rate limits stop you mid-coding
- ❌ Tool outputs (git diff, grep, ls...) burn tokens fast
- ❌ Expensive APIs ($20-50/month per provider)
- ❌ Manual switching between providers
9Router solves this:
- ✅ RTK Token Saver - Auto-compress tool_result content, save 20-40% tokens per request
- ✅ Maximize subscriptions - Track quota, use every bit before reset
- ✅ Auto fallback - Subscription → Cheap → Free, zero downtime
- ✅ Multi-account - Round-robin between accounts per provider
- ✅ Universal - Works with Claude Code, Codex, Cursor, Cline, any CLI tool
---
🔄 How It Works
┌─────────────┐
│ Your CLI │ (Claude Code, Codex, OpenClaw, Cursor, Cline...)
│ Tool │
└──────┬──────┘
│ http://localhost:20128/v1
↓
┌─────────────────────────────────────────────┐
│ 9Router (Smart Router) │
│ • RTK Token Saver (cut tool_result tokens) │
│ • Format translation (OpenAI ↔ Claude) │
│ • Quota tracking │
│ • Auto token refresh │
└──────┬──────────────────────────────────────┘
│
├─→ [Tier 1: SUBSCRIPTION] Claude Code, Codex, GitHub Copilot
│ ↓ quota exhausted
├─→ [Tier 2: CHEAP] GLM ($0.6/1M), MiniMax ($0.2/1M)
│ ↓ budget limit
└─→ [Tier 3: FREE] Kiro, OpenCode Free, Vertex ($300 credits)
Result: Never stop coding, minimal cost + 20-40% token savings via RTK
---
⚡ Quick Start
1. Install globally:
bash
npm install -g 9router
9router
🎉 Dashboard opens at http://localhost:20128
2. Connect a FREE provider (no signup needed):
Dashboard → Providers → Connect Kiro AI (~50 credits/month free: Claude 4.5 + GLM-5 + MiniMax) or OpenCode Free (no auth) → Done!
3. Use in your CLI tool:
Claude Code/Codex/OpenClaw/Cursor/Cline Settings:
Endpoint: http://localhost:20128/v1
API Key: [copy from dashboard]
Model: kr/claude-sonnet-4.5
That's it! Start coding with FREE AI models.
Alternative: run from source (this repository):
This repository package is private (9router-app), so source/Docker execution is the expected local development path.
bash
cp .env.example .env
npm install
PORT=20128 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run dev
Production mode:
bash
Create Temporary Memory For Build
sudo fallocate -l 2G /swapfile_temp
sudo chmod 600 /swapfile_temp
sudo mkswap /swapfile_temp
sudo swapon /swapTop issues
#4983Two days later, OpenCode Zen has adjusted its policy again, and the latest version 5104 has returned to 40331 comments · 2026-10-17#987[DB] No SQLite driver available (better-sqlite3 + sql.js both failed)26 comments · 2026-05-09#5107OpenCode Issue25 comments · 2026-10-22#5368OpenCode maybe change again? 429 for me 1 November23 comments · 2026-11-01#5218OpenCode Fix 42919 comments · 2026-10-25#1101Error: cannot find module 'next'14 comments · 2026-05-13#4781HTTP 403: [403]: {"type":"error","error":{"type":"FreeTierError","message":"OpenCode's free tier can only be used from within OpenCode. Download it at https://opencode.ai and keep building."}}13 comments · 2026-10-13#3274antigravity 429 resource has been exhausted meanwhile all my account still 100% avaible quota13 comments · 2026-08-13
Discussions
#5676API Error: 400 [400]1 comments · 2026-11-14#5645Per-API-key account pinning (choose which provider accounts each key can use)0 comments · 2026-11-12#5635per-API-key routing (choose provider and account for each 9router token)0 comments · 2026-11-12#5628This version of Kiro is no longer supported0 comments · 2026-11-12#5519Be Careful with Custom System Prompts in Antigravity0 comments · 2026-11-07#5451Showcase: 9Router Fleet Manager — Multi-Tenant Orchestrator & Port Guardian for Teams0 comments · 2026-11-04#5369Bug About Combos in v0.5.1120 comments · 2026-11-01#5301When will reranker support (/v1/rerank) be available?1 comments · 2026-10-28
Latest release
feat: Grok Imagine video, Copilot Claude route, i18n th/fa version 0.5.35 v0.5.35 2026-07-16Features: - xAI: Grok Imagine video generation (/v1/videos) + CLI - CLI tools: Grok Build setup — writes [model.9router] to ~/.grok/config.toml - GitHub Copilot: route Claude models through Copilot native /v1/messages - Kiro: add GPT-5.6 model family (2596) - RTK: X-9Router-Token-Saver header to bypass token savers per request - Providers: quota visibility settings - Translator: drop temperature for all Claude models - i18n: Thai (th) + Persian (fa) translations / README Fixes: - Providers: bulk-add API keys no longer overwrite existing keys (gap-fill Key N) - Anthropic: lowercase anthropic-v