9router: AI Router That Saves 40% on Tokens and Automatically Switches to Free or Low-Cost Models
decolua/9router
About the project
Integrates endpoints for major AI coding tools such as Claude Code, Cursor, and Codex, connecting over 40 AI providers and more than 100 models. It features smart routing that automatically switches to low-cost or free models when a subscribed model’s quota is exhausted, preventing work interruptions caused by exceeding subscription limits or hitting rate limits.

Using RTK technology, it compresses tool output content such as git diff and grep results, reducing input tokens by 20–40%. Additionally, applying Caveman mode or Ponytail prompts encourages concise LLM responses, reducing output tokens by up to 65%. It also automatically handles format conversion between OpenAI and Anthropic formats, ensuring compatibility with various APIs without requiring changes to client code.
It maximizes cost efficiency by configuring services with free credits, such as Kiro AI, OpenCode Free, and Vertex AI, alongside low-cost APIs like GLM and MiniMax in a tiered setup. Self-hosted speech and embedding servers like whisper.cpp and vLLM can also be registered as OpenAI-compatible endpoints for unified management. This solution is ideal for developers looking to reduce wasted monthly subscription fees and build an uninterrupted coding environment.
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.
JavaScript
This introduction was generated automatically by AI. Check the original for the author's claims and context. Copyright belongs to the original author.
Our guide explains how the AI works. Report errors, attribution issues, or removal requests via Contact.