Tủ GitHub repo xịn
Avatar decolua

GitHub repo xịn · Vui Coding chọn

decolua/9router

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

28,9 NGitHub stars
5,3 NForks
2,1 NOpen issues
2Lượt nhấp GitHub
JavaScriptNgôn ngữ chính

Tóm tắt nhanh

Repo này làm được gì?

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

Mô tả từ GitHub

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.

Bắt đầu với repo

Cài đặt và sử dụng

Hướng dẫn cài đặt

**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` ---

Hướng dẫn sử dụng

- Track token usage per provider and model - Cost estimation and spending trends - Monthly reports and insights - Optimize your AI spending > **💡 IMPORTANT - Understanding Dashboard Costs:** > > The "cost" displayed in Usage Analytics is **for tracking and comparison purposes only**. > 9Router itself **never charges** you anything. You only pay providers directly (if using paid services). > > **Example:** If your dashboard shows "$290 total cost" while using Kiro free models, this represents > what you would have paid using paid APIs directly. Your actual cost = **$0** (Kiro free tier: ~50 credits/mo). > > Think of it as a "savings tracker" showing how much you're saving by using free models or > routing through 9Router!

Đối chiếu README gốc

Chủ đề liên quan

#ai-agents#ai-gateway#anthropic#chatgpt#claude#claude-code#cline#codex#copilot#cursor#deepseek#free-ai
Mở trên GitHub

Cùng hệ sinh thái

Repo liên quan