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.
Install / Use
npx skills add decolua/9routerInstalls into whichever agent you are using.
CLAUDE.md
Claude Code project instructions
Quality Score
Category
AI & Machine LearningSupported Platforms
Tags
Skill content
View source on GitHub9Router - 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.
<a href="https://trendshift.io/repositories/22628" target="_blank"><img src="https://trendshift.io/api/badge/repositories/22628" alt="decolua%2F9router | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
🚀 Quick Start • 💡 Features • 📖 Setup • 🌐 Website
🇻🇳 Tiếng Việt • 🇨🇳 中文 • 🇯🇵 日本語 • 🇷🇺 Русский • 🇹🇭 ไทย • 🇮🇷 فارسی • 🇮🇩 Indonesia
</div>🤔 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:
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.
cp .env.example .env
npm install
PORT=20128 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run dev
Production mode:
npm run build
PORT=20128 HOSTNAME=0.0.0.0 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run start
Default URLs:
- Dashboard:
http://localhost:20128/dashboard - OpenAI-compatible API:
http://localhost:20128/v1
Video Guides
<div align="center"> <table> <tr> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=X69n5Lm06Yw"> <img src="https://img.youtube.com/vi/X69n5Lm06Yw/maxresdefault.jpg" alt="Tiết kiệm chi phí LLM với 9Router" width="300"/> </a><br/> <b>🇻🇳 Tiếng Việt</b><br/> <sub>Tiết kiệm chi phí LLM cho OpenClaw với 9Router<br/>by <a href="https://www.youtube.com/c/M%C3%ACAIblog">Mì AI</a></sub> </td> <td align="center" width="320"> <a href="https://youtu.be/VQAw612S27Y"> <img src="https://img.youtube.com/vi/VQAw612S27Y/maxresdefault.jpg" alt="9Router + Claude Code FREE Unlimited Setup" width="300"/> </a><br/> <b>🇵🇰 اردو / हिन्दी</b><br/> <sub>9Router + Claude Code FREE Unlimited Setup<br/>by <a href="https://www.youtube.com/@BuildAIWithHamid">Build AI With Hamid</a></sub> </td> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=raEyZPg5xE0"> <img src="https://img.youtube.com/vi/raEyZPg5xE0/maxresdefault.jpg" alt="9Router Setup Tutorial" width="300"/> </a><br/> <b>🇺🇸 English</b><br/> <sub>9Router + Claude Code FREE Setup<br/>by <a href="https://www.youtube.com/@BuildAIWithHamid">Build AI With Hamid</a></sub> </td> <td align="center" width="320"> <a href="https://youtu.be/3dF5GIYMrcQ?si=bAyfyiHbARJQAHj_"> <img src="https://img.youtube.com/vi/3dF5GIYMrcQ/hqdefault.jpg" alt="9Router Setup Tutorial" width="300"/> </a><br/> <b>🇺🇸 English</b><br/> <sub>9Router + Claude Code FREE Setup<br/>by <a href="https://www.youtube.com/@BuildAIWithHamid">Build AI With Hamid</a></sub> </td> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=o3qYCyjrFYg"> <img src="https://img.youtube.com/vi/o3qYCyjrFYg/maxresdefault.jpg" alt="Claude Code FREE Forever" width="300"/> </a><br/> <b>🇺🇸 English</b><br/> <sub>Claude Code FREE Forever — Unlimited Models<br/>by <a href="https://www.youtube.com/@BuildAIWithHamid">Build AI With Hamid</a></sub> </td> </tr> <tr> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=Ttpc26m39Dw"> <img src="https://img.youtube.com/vi/Ttpc26m39Dw/maxresdefault.jpg" alt="Claude CLI Free Setup" width="300"/> </a><br/> <b>🇺🇸 English</b><br/> <sub>Claude CLI Free Setup with 9Router 🚀<br/>by <a href="https://www.youtube.com/@CodeVerseSoban">CodeVerse Soban</a></sub> </td> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=G-5A_D5Pm6Y"> <img src="https://img.youtube.com/vi/G-5A_D5Pm6Y/maxresdefault.jpg" alt="Cài đặt OpenClaw Free A-Z" width="300"/> </a><br/> <b>🇻🇳 Tiếng Việt</b><br/> <sub>Cài Đặt OpenClaw Free Từ A-Z + 9Router<br/>by <a href="https://www.youtube.com/@maigia">Mai Gia</a></sub> </td> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=JXmg8_gccgE"> <img src="https://img.youtube.com/vi/JXmg8_gccgE/maxresdefault.jpg" alt="FREE OpenClaw with Claude Opus" width="300"/> </a><br/> <b>🇺🇸 English</b><br/> <sub>FREE OpenClaw + Claude Opus 4.6<br/>by <a href="https://www.youtube.com/@BuildAIWithHamid">Build AI With Hamid</a></sub> </td> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=CkVZZUSTXAI"> <img src="https://img.youtube.com/vi/CkVZZUSTXAI/mqdefault.jpg" alt="Claude CLI Free Setup" width="300"/> </a><br/> <b>🇮🇩 Indonesia</b><br/> <sub>Koding 24 Jam Anti Rate Limit! Hemat Token AI 65% | Tutorial Quick Setup 9Router 🚀<br/>by <a href="https://www.youtube.com/@krisswuh">Krisswuh</a></sub> </td> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=TXGv4eofe1I"> <img src="https://img.youtube.com/vi/TXGv4eofe1I/mqdefault.jpg" alt="Cara Deploy 9Router di Hugging Face GRATIS Non-Stop! | Alternatif VPS RAM 16GB" width="300"/> </a><br/> <b>🇮🇩 Indonesia</b><br/> <sub>Cara Deploy 9Router di Hugging Face GRATIS Non-Stop! | Alternatif VPS RAM 16GB<br/>by <a href="https://www.youtube.com/@krisswuh">Krisswuh</a></sub> </td> </tr> <tr> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=GyX-DLvePW8"> <img src="https://img.youtube.com/vi/GyX-DLvePW8/hqdefault.jpg" alt="این شکلی از هر API ای استفاده کن برای هوش مصنوعی" width="300"/> </a><br/> <b>🇮🇷 Persian-فارسی</b><br/> <sub dir="rtl">این شکلی از هر API ای استفاده کن برای هوش مصنوعی<br/>by <a href="https://www.youtube.com/@Matin_SenPai">Matin SenPai</a></sub> </td> <td align="center" width="320"> <a href="https://www.youtube.com/watch?v=hPusYX-5Pmw"> <img src="https://img.youtube.com/vi/hPusYX-5Pmw/maxresdefault.jpg" alt="Hướng Dẫn Setup OpenClaw + 9Router: Tạo Bot Zalo AI Tự Động Từ A-Z" width="300"/> </a><br/> <b>🇻🇳 Tiếng Việt</b><br/> <sub>Hướng Dẫn Setup OpenClaw + 9Router: Tạo Bot Zalo AI Tự Động Từ A-Z<br/>by <a href="https://github.com/tuanminhhole">tuanminhhole</a></sub> </td> <td align="center" width="320"></td> <td align="center" width="320"></td> <td align="center" width="320"></td> </tr> </table> </div>🎬 Made a video about 9Router? Submit a Pull Request adding your video to this section — we'll merge it!
🛠️ Supported CLI Tools
9Router works seamlessly with all major AI coding tools:
<div align="center"> <table> <tr> <td align="center" width="120"> <img src="./public/providers/claude.png" width="60" alt="Claude Code"/><br/> <b>Claude-Code</b> </td> <td align="center" width="120"> <img src="./public/providers/openclaw.png" width="60" alt="OpenClaw"/><br/> <b>OpenClaw</b> </td> <td align="center" width="120"> <img src="./public/providers/codex.png" width="60" alt="Codex"/><br/> <b>Codex</b> </td> <td align="center" width="120"> <img src="./public/providers/opencode.png" width="60" alt="OpenCode"/><br/> <b>OpenCode</b> </td> <td align="center" width="120"> <img src="./public/providers/cursor.png" width="60" alt="Cursor"/><br/> <b>Cursor</b> </td> <td align="center" width="120"> <img src="./public/providers/antigravity.png" width="60" alt="Antigravity"/><br/> <b>Antigravity</b> </td> </tr> <tr> <td align="center" width="120"> <img src="./public/providers/cline.png" width="60" alt="Cline"/><br/> <b>Cline</b> </td> <td align="center" width="120"> <img src="./public/providers/continue.png" width="60" alt="Continue"/><br/> <b>Continue</b> </td> <td align="center" width="120"> <img src="./public/providers/droid.png" width="60" alt="Droid"/><br/> <b>Droid</b> </td> <td align="center" width="120"> <img src="./public/providers/roo.png" width="60" alt="Roo"/><br/> <b>Roo</b> </td> <td align="center" width="120"> <img src="./public/providers/copilot.png" width="60" alt="Copilot"/><br/> <b>Copilot</b> </td> <td align="center" width="120"> <img src="./public/providers/kilocode.png" width="60" alt="Kilo Code"/><br/> <b>Kilo Code</b> </td> </tr> <tr> <td align="center" width="120"> <img src="./public/providers/opendesign.png" width="60" alt="OpenDesign"/><br/>Truncated for display — read the full file on GitHub.
Related Skills
caveman
107.1k🪨 why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.
claude-mem
94.4kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
84.2kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
Understand-Anything
83.5kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
