hubSmart AI Router · OpenAI-Compatible

One Router.
60+ AI Providers. Zero Downtime.

Connect every CLI/IDE to all major AI providers through one OpenAI-compatible endpoint.

9Router is a smart gateway between your tools (Cursor, Claude Code, Codex, Cline, Copilot…) and 60+ AI providers. Smart 3-tier fallback maximizes your subscriptions and keeps you coding when limits hit. Bonus: built-in RTK & Caveman save 20–65% tokens.

npm install -g 9router9router
60+AI Providers
9Service Kinds
10+CLI Tools
3-TierAuto Fallback
9Router smart routing illustration

api9 Service Kinds OpenAI-Compatible

Every endpoint is OpenAI-compatible. Point your tool to one URL — run LLM, Embedding, TTS, STT, Image, Video, Web Search and more.

chat

Chat / LLM

OpenAI-compatible chat completions across 60+ providers.

data_array

Embeddings

Voyage, Jina, OpenAI, Cohere, Mistral, NVIDIA, Together, Fireworks.

record_voice_over

Text-to-Speech

ElevenLabs, Deepgram, Inworld, AWS Polly, Google/Edge TTS, OpenAI.

mic

Speech-to-Text

Deepgram, AssemblyAI, OpenAI Whisper, Qwen STT.

brush

Image Generation

Fal, Stability, BFL Flux, Recraft, OpenAI, Gemini, MiniMax.

image_search

Vision / Image-to-Text

OpenAI, Gemini, Anthropic, Groq, xAI, Mistral, HuggingFace.

movie

Video Generation

Runway ML, Topaz.

travel_explore

Web Search

Tavily, Brave, Serper, Exa, Linkup, Perplexity, Google PSE, SearchAPI.

language

Web Fetch

Tavily, Exa, Firecrawl, Jina Reader.

How 9Router Works

Install once, connect providers, code non-stop with smart 3-tier fallback.

1
download

Install & Connect

  • npm install -g 9router
  • Dashboard opens automatically
  • OAuth or API key per provider
2
hub

Smart 3-Tier Routing

Tier 1 — Subscription
Claude Code · Codex · Gemini · Copilot
Tier 2 — Cheap
GLM $0.60 · MiniMax $0.20 · Kimi $9/mo
Tier 3 — FREE
iFlow · Qwen · Kiro · OpenCode unlimited

⚡ Auto fallback when quota runs out

3
code

Code Non-Stop

  • Point your CLI to localhost:20128
  • Zero downtime, automatic switching
  • Track quota & usage in real time

hub60+ AI Providers

OAuth, API key or browser cookie. Featured 24 below — full list inside the app.

FREE Forever8 providers
Kiro AI
iFlow
Qwen
OpenCode Free
OpenRouter
NVIDIA NIM
Gemini
Cloudflare AI
OAuth Subscription6 providers
Claude Code
OpenAI Codex
GitHub Copilot
Cursor IDE
Kilo Code
Cline
API Key10 providers
GLM Coding
Kimi
MiniMax
OpenAI
Anthropic
DeepSeek
Groq
xAI Grok
Mistral
Azure OpenAI

terminalCLI / IDE Integrations

Point any tool to localhost:20128. Per-tool setup guides included.

terminalCLI Tools (10)

Claude Code

Anthropic Claude CLI

OpenAI Codex

OpenAI Codex CLI

OpenClaw

Open Claw assistant

Cursor

AI code editor

Cline

AI coding assistant

Kilo Code

Kilo Code AI

Roo

Roo AI

Continue

Continue AI

Factory Droid

Factory AI

Hermes Agent

Self-improving agent

shieldMITM Bridge — IDE Subscription Intercept

Intercept Antigravity / GitHub Copilot / Kiro IDE traffic — use IDE subscriptions to call any backend through 9Router (mind each tool's policy).

Antigravity

Google Antigravity IDE

GitHub Copilot

VS Code Copilot intercept

Kiro IDE

AWS Kiro IDE intercept

auto_awesomeAdvanced Features

Combos, Translator, RTK, Caveman, Multi-account, Cloud sync, Tunnel, Proxy pools, MITM bridge.

alt_route

Smart Combos

Chain providers into one virtual provider with sticky round-robin and automatic fallback.

monitoring

Real-time Quota

Live token tracking, reset countdown, cost estimation per provider.

translate

Format Translator

Convert between OpenAI / Anthropic / Gemini formats — any tool with any provider.

group

Multi-Account

Multiple accounts per provider, round-robin load balancing, automatic failover.

cloud_sync

Cloud Sync + Tunnel

Cloudflare edge tunnel — use your router from anywhere, 300+ global locations.

vpn_lock

Proxy Pools

Vercel relay, outbound proxy, rotate IPs for region-restricted providers.

shield

MITM Bridge

Intercept Antigravity / Copilot / Kiro IDE traffic — use IDE subscriptions with any backend.

api

OpenAI-Compatible

One endpoint speaks chat, embeddings, TTS, STT, image, video, search and fetch.

dashboard

Visual Dashboard

Manage providers, keys, combos and usage from a clean local UI.

Built-in Bonus

And while we're at it, save 20–65% tokens for free

RTK and Caveman Mode ship with 9Router. They quietly compress what goes in and trim what comes out — same answers, fewer tokens.

compress
INPUT

RTK Token Saver

−20–40%

Auto-compress tool_result content (git diff, grep, ls, find, tree…) before it reaches the LLM. Lossless, safe, default ON.

47K tokens
+28K tokens
same context · same answer
format_size
OUTPUT

Caveman Mode

−65%

Inject a terse-style system prompt — LLM replies stay technical but compact. Five intensity levels.

verbose paragraph
+telegraphic
why use many token when few do trick

💡 Combine with FREE-tier providers and you're routing for $0/month with built-in token savings.

rocket_launchGet Started in Two Commands

Install globally, connect providers, code with smart auto-fallback.

1

Install Globally

One command installs 9Router system-wide.

npm install -g 9router
2

Connect Providers

Open the dashboard and add OAuth or API keys per tier.

FREECHEAPSUBSCRIPTION
3

Point Your Tool

Set Cursor / Cline / Claude Code / Codex to the OpenAI-compatible endpoint.

http://localhost:20128/v1
terminal — 9router setup
$npm install -g 9router
9Router installed globally
$9router
> Server: localhost:20128
> Dashboard: localhost:20128/dashboard
> Ready to route ✓
infoThen point your tool to http://localhost:20128/v1

What Developers Say

Real developers. Real workflows. Zero rate limits.

Finally no more rate-limit errors at 2am. 9Router auto-switches to a free tier.

@devnull_kaiSenior Engineer

Claude Code quota used to expire unused every month. Not anymore.

@priya_codesFull Stack Dev

Two commands and I was set. Endless coding sessions.

@tomasz_wBackend Dev

3-tier fallback is genius. Subscription → cheap → free, zero downtime.

@alex_buildsIndie Hacker

Switched from juggling 3 API keys. 9Router does it all for me.

@sarah_devStaff Engineer

GLM at $0.60/1M as backup? I’m paying almost nothing now.

@minh_le_devFreelancer

Cursor, Cline, Claude Desktop — point to localhost:20128 and done.

@rustam_devDevOps

Open source, no lock-in, runs locally. Exactly what I needed.

@chen_xi_devML Engineer

Finally no more rate-limit errors at 2am. 9Router auto-switches to a free tier.

@devnull_kaiSenior Engineer

Claude Code quota used to expire unused every month. Not anymore.

@priya_codesFull Stack Dev

Two commands and I was set. Endless coding sessions.

@tomasz_wBackend Dev

3-tier fallback is genius. Subscription → cheap → free, zero downtime.

@alex_buildsIndie Hacker

Switched from juggling 3 API keys. 9Router does it all for me.

@sarah_devStaff Engineer

GLM at $0.60/1M as backup? I’m paying almost nothing now.

@minh_le_devFreelancer

Cursor, Cline, Claude Desktop — point to localhost:20128 and done.

@rustam_devDevOps

Open source, no lock-in, runs locally. Exactly what I needed.

@chen_xi_devML Engineer

Free Gemini CLI + Claude Code = unlimited coding.

@marco_codesStartup Founder

The quota dashboard is incredibly satisfying to watch.

@anya_kFrontend Dev

My team had 3 AI subscriptions. 9Router pools them all.

@james_tTech Lead

iFlow as an emergency fallback means I literally never stop.

@nguyen_devSolo Dev

Install once, forget rate limits forever.

@fatima_bPlatform Eng

MiniMax M2.7 at $0.20/1M is insane. 9Router routes to it automatically.

@lars_eOSS Dev

Quota countdown + auto-switch should be in every AI tool.

@diana_mPrincipal Eng

npm install -g 9router and you’re done. Incredibly simple.

@kenji_sSoftware Architect

Free Gemini CLI + Claude Code = unlimited coding.

@marco_codesStartup Founder

The quota dashboard is incredibly satisfying to watch.

@anya_kFrontend Dev

My team had 3 AI subscriptions. 9Router pools them all.

@james_tTech Lead

iFlow as an emergency fallback means I literally never stop.

@nguyen_devSolo Dev

Install once, forget rate limits forever.

@fatima_bPlatform Eng

MiniMax M2.7 at $0.20/1M is insane. 9Router routes to it automatically.

@lars_eOSS Dev

Quota countdown + auto-switch should be in every AI tool.

@diana_mPrincipal Eng

npm install -g 9router and you’re done. Incredibly simple.

@kenji_sSoftware Architect

Stop Wasting Your AI Subscriptions

Subscription quota expires unused every month

Rate limits cut your coding session mid-flow

Manually switching between providers wastes time

9Router solves this
Track quota in real time, use it before reset
Auto fallback to cheap or free when quota runs out
Zero downtime with smart 3-tier routing
FREE tier available
No credit card
Open source · MIT
Get Started Free