9Router - FREE AI Router & Token Saver

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

15,878
Stars
2,388
Forks
605
Issues
63
Subscribers

Stop wasting money, tokens and hitting limits

Subscription Quota Expires

Every month, your paid AI quota goes unused, wasting your money

Rate Limits Stop You

Mid-coding, your AI tool hits rate limits, breaking your workflow

Tool Outputs Burn Tokens

Git diffs, grep results, and file listings eat up 30-50% of your token budget

Expensive APIs

Pay $20-50/month per provider, even when cheaper alternatives exist

Manual Switching

Constantly switching between providers manually wastes time and context

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 - never waste unused minutes

🔄

Auto Fallback

Subscription → Cheap → Free, zero downtime when limits are hit

👥

Multi-Account

Round-robin between accounts per provider for load balancing

🌐

Universal

Works with Claude Code, Codex, Cursor, Cline, any CLI tool

How It Works

Smart AI Routing System

Your CLI Tool
Claude Code, Codex, Cursor, Cline...
9Router (Smart Router)
• RTK Token Saver
• Format Translation
• Quota Tracking
• Auto Token Refresh
Provider Tiers
1. SUBSCRIPTION
2. CHEAP
3. FREE

Key Features

🚀 RTK Token Saver

Auto-compress tool outputs (git diff, grep, ls...) before sending to LLM, saving 20-40% input tokens per request

🎯 Smart 3-Tier Fallback

Auto-route: Subscription → Cheap → Free. Never stop coding, zero downtime

📊 Real-Time Quota Tracking

Live token count + reset countdown. Maximize subscription value

🔄 Format Translation

OpenAI ↔ Claude ↔ Gemini ↔ Cursor ↔ Kiro ↔ Vertex. Works with any CLI tool

👥 Multi-Account Support

Multiple accounts per provider. Load balancing + redundancy

🔄 Auto Token Refresh

OAuth tokens refresh automatically. No manual re-login needed

Quick Start

1

Install Globally

npm install -g 9router
9router

🎉 Dashboard opens at http://localhost:20128

2

Connect FREE Provider

Dashboard → Providers → Connect Kiro AI or OpenCode Free → Done!

3

Configure CLI Tool

Endpoint: http://localhost:20128/v1
API Key: [from dashboard]
Model: kr/claude-sonnet-4.5

Pricing at a Glance

Maximize Your AI Value

🚀 TOKEN SAVER
RTK (built-in)
FREE - Always on
💳 SUBSCRIPTION
Claude Code (Pro/Max)
$20-200/mo
💰 CHEAP
GLM / MiniMax
$0.2-0.6/1M
🆓 FREE
Kiro AI / OpenCode Free
$0 - Unlimited

Use Cases

Maximize Subscription Value

Problem: Quota expires unused, rate limits during heavy coding

Combo: cc/claude-opus-4-7 → glm/glm-5.1 → kr/claude-sonnet-4.5
Monthly cost: $25 total (vs $20 + frustration)

Zero Cost Coding

Problem: Can't afford subscriptions, need reliable AI coding

Combo: kr/claude-sonnet-4.5 → kr/glm-5 → oc/auto
Monthly cost: $0 (20-40% token savings via RTK)

24/7 Coding, No Interruptions

Problem: Deadlines, can't afford downtime

5-layer fallback: Subscription → Subscription → Cheap → Cheapest → Free
Result: Zero downtime for mission-coding

Frequently Asked Questions

Why does my dashboard show high costs? +

The dashboard tracks your token usage and displays estimated costs as if you were using paid APIs directly. This is not actual billing - it's a reference to show how much you're saving by using free models or existing subscriptions through 9Router.

Will I be charged by 9Router? +

No. 9Router is free, open-source software that runs on your own computer. It never charges you anything. You only pay subscription providers (Claude Code $20/mo, Codex $20-200/mo) directly on their websites. 9Router itself never charges anything.

Are FREE providers really unlimited? +

Yes! The current FREE providers (Kiro, OpenCode Free, Vertex) are genuinely free with no hidden charges. These are free services offered by those respective companies, and 9Router just routes your requests to them.

Start Saving Tokens Today

Join 15,878+ developers who never pay full price for AI coding