9Router is a JavaScript-based AI gateway and token optimization tool designed to connect multiple AI coding assistants to over 40 AI providers while reducing costs and preventing rate limiting. The project addresses a core problem for developers using AI coding tools: subscription quotas that expire unused, rate limits that interrupt workflows, token waste from verbose tool outputs, expensive API subscriptions ranging from 20 to 50 dollars monthly per provider, and the friction of manually switching between different AI services.
The core functionality centers on three main capabilities. The RTK Token Saver feature automatically compresses tool result content to reduce token consumption by 20 to 40 percent per request. The auto-fallback system creates a seamless chain from paid subscriptions to cheaper alternatives to free providers with zero downtime. Multi-account support enables round-robin distribution across multiple accounts per provider, maximizing available quota before hitting limits.
9Router works as a universal proxy compatible with all major AI coding tools including Claude Code, Cursor, Cline, Copilot, Codex, Antigravity, OpenClaw, Continue, Droid, Roo, and Kilo Code. The system exposes an OpenAI-compatible API endpoint at localhost:20128/v1 and provides a dashboard interface at localhost:20128/dashboard for configuration and monitoring. Users can connect free providers like Kiro AI for unlimited Claude 4.5 access or OpenCode Free without authentication, as well as paid services like Vertex AI which offers 300 dollars in free credits.
The repository supports over 40 API key providers in addition to OAuth-based services from Claude, Anthropic, GitHub, Cursor, Codex, and Kimchi. The project includes internationalized documentation in Vietnamese, Chinese, Japanese, and Russian, reflecting its global user base. Multiple video tutorials demonstrate setup procedures for different tools and deployment strategies, including free deployment on Hugging Face.
The repository has grown by one stargazer since the previous tracking period and gained one additional open issue. The project is classified as a router and middleware system for HTTP request handling and URL mapping in a Node.js environment, functioning as a REST API gateway for AI model access.