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.

What it solves

9Router 是一个智能 AI 路由器,旨在防止因速率限制、订阅配额耗尽以及高额 API 成本而导致的编码中断。它允许开发者将多个 AI 提供商和模型连接到其 CLI 工具,同时自动管理代币使用与成本。

How it works

它充当您的 AI 编码工具(如 Claude Code、Cursor 或 Cline)与各种 AI 提供商之间的代理。路由器实现三层回退系统:首先尝试使用付费订阅,其次回退到低价 API 模型,最后使用免费提供商。它还包含“RTK Token Saver”,在工具输出(如 git diff 或文件列表)到达 LLM 之前进行压缩,减少输入代币消耗。

Who it’s for

使用 AI 驱动的 CLI 工具和 IDE 的开发者,想要最大化订阅价值、避免因速率限制导致的停机,并降低整体 API 支出。

Highlights

  • Smart 3-Tier Fallback: Automatically routes requests from Subscription → Cheap → Free models to ensure zero downtime.
  • RTK Token Saver: Compresses tool outputs (e.g., git diff, ls, grep) to save 20-40% of input tokens.
  • Universal Compatibility: Translates formats between OpenAI, Claude, Gemini, and others to work with any OpenAI-compatible CLI tool.
  • Wide Provider Support: Connects to over 40 API providers and 100+ models, including OAuth and free providers.
  • Quota Tracking: Provides real-time token counts and reset countdowns to maximize subscription usage.
  • Prompt Injection: Includes modes like "Caveman" and "Ponytail" to force LLMs to be more terse and write minimal code, saving output tokens.