9router logo

9router

Free

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.

FreeFree tier
Inputs: text, audio, image, video, urlOutputs: text, audio, image, video
Type
Open Source

About 9router

9Router is a free, open-source AI router that provides a unified OpenAI-compatible endpoint to connect CLI tools (Cursor, Claude Code, Codex, Cline, Copilot, Antigravity) and IDEs to 60+ AI providers. It features a smart 3-tier auto-fallback system to maximize subscriptions and prevent downtime when rate limits are hit. 9Router supports 9 service kinds including LLM chat, embeddings, text-to-speech, speech-to-text, image generation, vision/image-to-text, video generation, web search, and web fetch. Advanced features include smart combos, format translators, multi-account load balancing, cloud sync with global tunnel, proxy pools, and MITM bridge for intercepting IDE subscription traffic. The built-in RTK Caveman optimization reduces token usage by 20–65%.

Key Features

Smart 3-tier auto fallback (subscription, cheap, free providers) to prevent downtime
One OpenAI-compatible endpoint for all providers and service types
60+ AI providers including free, OAuth, and API-based options
9 service kinds: LLM chat, embeddings, TTS, STT, image generation, vision, video generation, web search, web fetch
CLI/IDE support for Claude Code, Codex, Cursor, Cline, Copilot, Antigravity, Kilo Code, and more
RTK Caveman token optimization saving 20–65% tokens
Real-time quota tracking and cost estimation per provider
Format translator between OpenAI/Anthropic/Gemini formats
Multi-account load balancing and automatic failover per provider
Cloud sync with Cloudflare edge tunnel (300+ global locations)

Pros & Cons

Pros
  • Free forever with 8 free providers included
  • Smart automatic fallback prevents coding interruptions when quotas are exhausted
  • Supports 60+ providers including major ones like OpenAI, Anthropic, Google, and many free options
  • OpenAI-compatible endpoint makes integration trivial with any tool that supports OpenAI's API
  • Broad service coverage (LLM, embeddings, TTS, STT, images, video, web search) in one router
  • Advanced features like multi-account load balancing, format translation, and cloud sync at no cost
  • RTK Caveman token savings can significantly reduce costs for heavy users
Cons
  • Requires installation and configuration of providers (API keys, OAuth) which can be upfront effort
  • Relies on availability of third-party providers; free tiers may have limited rate or become unavailable
  • Documentation and provider list is partially hidden behind the app dashboard
  • MITM bridge feature may conflict with tool terms of service (users should check each tool's policy)

Best For

Developers who want to avoid hitting AI provider rate limits by automatically falling back to alternative providersConnecting multiple CLI coding assistants (Claude Code, Codex, Cursor) to a pool of free and paid AI modelsUsing IDE subscriptions (e.g., GitHub Copilot, Kiro IDE) to call any backend through a local routerRouting different service types (TTS, STT, image generation) through a single endpoint while managing multiple provider keysLoad balancing across multiple accounts of the same provider for increased capacityAccessing region-restricted AI providers via proxy rotation

FAQ

What is 9Router?
9Router is a free, open-source AI router that provides a single OpenAI-compatible endpoint to connect your CLI/IDE tools to over 60 AI providers, with smart 3-tier fallback to avoid rate limits and downtime.
How does the 3-tier fallback work?
Tier 1 uses your subscription providers (e.g., Claude Code, Codex, Gemini, Copilot). Tier 2 falls back to cheap providers like GLM ($0.60) or MiniMax ($0.20). Tier 3 uses free providers like iFlow, Qwen, Kiro, OpenCode. Automatic fallback when quota runs out.
What providers are supported?
9Router supports 60+ providers including free providers (Kiro AI, iFlow, Qwen, OpenCode, NVIDIA NIM, Gemini Cloudflare AI) and subscription/OAuth providers (Claude Code, OpenAI Codex, GitHub Copilot, Cursor IDE, Anthropic, DeepSeek, Groq, Azure OpenAI, and many more). A full list is available inside the app.
Is 9Router free?
Yes, 9Router is free and open source under the MIT license. It includes 8 free forever providers and all features are available at no cost.
How do I install and use 9Router?
Install via npm: 'npm install -g 9router'. The dashboard opens automatically. You can connect providers via OAuth, API key, or browser cookie. Point your CLI tool to localhost:20128 to start routing.