Claude Code model router

9router

Connects Claude Code and other coding tools to free model providers through one router.

31,898 stars 6,212 forksModel routers & proxies Source

Install

Install
npm install -g 9router
From source
git clone https://github.com/decolua/9router.git

From the README

# 9Router - FREE AI Router & Token Saver

  Never stop coding. Save 20-40% tokens with RTK + auto-fallback to FREE & cheap AI models.

  Connect All AI Code Tools (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini, OpenCode, Cline, OpenClaw...) to 40+ AI Providers & 100+ Models.

🚀 Quick Start • 💡 Features • 📖 Setup • 🌐 Website

🇧🇷 Português (Brasil) • 🇻🇳 Tiếng Việt • 🇨🇳 中文 • 🇯🇵 日本語 • 🇷🇺 Русский • 🇹🇭 ไทย • 🇮🇷 فارسی • 🇮🇩 Indonesia • 🇪🇸 Español • 🇫🇷 Français

🤔 Why 9Router?

Stop wasting money, tokens and hitting limits:

- ❌ Subscription quota expires unused every month
- ❌ Rate limits stop you mid-coding
- ❌ Tool outputs (git diff, grep, ls...) burn tokens fast
- ❌ Expensive APIs ($20-50/month per provider)
- ❌ Manual switching between providers

9Router solves this:

- ✅ RTK Token Saver - Auto-compress tool_result content, save 20-40% tokens per request
- ✅ Maximize subscriptions - Track quota, use every bit before reset
- ✅ Auto fallback - Subscription → Cheap → Free, zero downtime
- ✅ Multi-account - Round-robin between accounts per provider
- ✅ Universal - Works with Claude Code, Codex, Cursor, Cline, any CLI tool

🔄 How It Works

⚡ Quick Start

1. Install globally:

🎉 Dashboard opens at http://localhost:20128

2. Connect a FREE provider (no signup needed):

Dashboard → Providers → Connect Kiro AI (~50 credits/month free: Claude 4.5 + GLM-5 + MiniMax) or OpenCode Free (no auth) → Done!

3. Use in your CLI tool:

That's it! Start coding with FREE AI models.

Alternative: run from source (this repository):

This repository package is private (9router-app), so source/Docker execution is the expected local development path.

Production mode:

Default URLs:

- Dashboard: http://localhost:20128/dashboard
- OpenAI-compatible API:…
Read the full README on GitHub

Details

Language
JavaScript
License
MIT
Last updated
28 October 2026
Topics
ai-agentsai-gatewayanthropicchatgptclaudeclaude-codeclinecodexcopilotcursordeepseekfree-ai

FAQ

What is 9router?

Connects Claude Code and other coding tools to free model providers through one router. It is a model router for Claude Code, from decolua/9router on GitHub.

How do I install 9router?

Run npm install -g 9router, then follow the setup in the README.

Is 9router popular?

decolua/9router has 31,898 GitHub stars and 6,212 forks, and is included in 1 curated Claude Code list. It was last updated on 28 October 2026.

More model routers & proxies

OmniRoute

84k

cheaper-inference/OmniRoute

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

Model routers & proxies13k

Magpie

29k

yetone/magpie

Menu bar app that points Claude Code and Codex at alternative models like Kimi or DeepSeek.

Model routers & proxies2.5k

Caveman

117k

JuliusBrussee/caveman

why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Model routers & proxies/plugin install6.8k

LibreChat

47k

LibreChat-AI/LibreChat

Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active

Model routers & proxies9.6k

Headroom

79k

headroomlabs-ai/headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

Model routers & proxies/plugin install6.2k

Reverse Skill

44k

zhaoxuya520/reverse-skill

Reverse Engineering / Authorized Penetration Testing / Security Research Skill Router Pack AI-powered routing + On-demand toolchain bootstrapping + Self-evolving knowledge base Supports Claude Code, Kiro, Cursor, Cline, and other AI coding clients 逆向/渗透/安全技能路由包 - AI 自动路由 + 按需自举工具链 + 自动进化经验库 | 支持 Claude Code / Kiro / Cursor / Cline 等代码 AI 客户端

Model routers & proxies6.5k

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.