Home/AI Agents/9router
9router logo

9router

decolua/9router

Unlimited FREE AI coding with auto-fallback and token savings

GraphCanon updated today · GitHub synced today

26k stars4.6k forksLast push 6d JavaScript MIT

Decision brief

9router is a gateway service that connects multiple coding AI agents with free providers, providing token savings through RTK and offering unlimited free access to certain AI models.

Good fit when

  • Use when you need to connect to various coding AI agents like Claude Code, Codex, Cursor, Cline, Copilot, and others via a unified gateway.
  • Ideal for developers seeking cost-effective solutions with features such as RTK for reducing token usage by up to 40%.

Avoid when

  • Not suitable if you specifically need advanced or high-priority services from premium providers like Claude Code Pro/Max or Codex Plus/Pro, which offer dedicated support and higher limits.
  • Avoid using this tool if your coding requirements exceed the capabilities of free models connected via 9router's gateway service.
Pricing:
unknown - Offers a 'TOKEN SAVER' tier with built-in RTK for FREE, which saves up to 40% on tokens. Also supports connections to completely FREE providers like Kiro AI and OpenCode Free without any sign-up or on

Observed Jul 11, 2026 · Source: enrich:decision_facts

Verify the decision

Adoption

Package downloads where a registry match exists. GitHub stars (25,841) are secondary evidence.

Docker Hub pulls (30d)
238,966·Docker Hub API·today

Maintenance and security

Full trust report
Maintenance
Very active (5d since push)
As of today
Provenance
Not a fork · Personal account
As of today
Security (OSV)
No lockfile
As of 1mo

Public GitHub metadata and optional OSV scans. Signals, not a guarantee. Trust methodology.

Install

npm install 9router
npm

How it fits your stack(10)

Typed graph edges - alternatives, integrations, successors, and dependencies. Ranked by relationship type, not raw GitHub stars.

Integrates

Relationship graph

Optional deeper exploration of typed edges and category neighbours.

Similar tools

Same-category neighbours not already linked as typed edges.

Evidence and technical details

Sourced facts, taxonomy, compatibility claims, README excerpt, and machine-readable endpoints.

Overview

9router is a gateway service that connects multiple coding AI agents, including Claude Code, Codex, Cursor, Cline, Copilot, and others to free providers like Kiro AI. It offers token saving features through RTK, providing a cost-effective solution for developers.

Capability facts

Deploy
Self-host

Source: dockerfile:Dockerfile · Aug 20, 2026

Docker
Dockerfile present

Source: dockerfile:Dockerfile · Aug 20, 2026

CLI
CLI entrypoint

Source: package.json:bin|scripts · Aug 20, 2026

MCP server
No MCP server detected

Source: repo_scan · Aug 20, 2026

Languages
javascript

Source: github.language+package.json · Aug 20, 2026

Categories

Compatibility

Sourced claims from the README excerpt - not unsourced marketing copy.

Node.js runtimeNode.js

Source: README excerpt (regex_v1, Aug 20, 2026)

npm install -g 9router
Source link
Works with CursorCursor

Source: README excerpt (regex_v1, Aug 20, 2026)

Claude Code/Codex/OpenClaw/Cursor/Cline Settings:
Source link

Tags

README

⚡ Quick Start

1. Install globally:

npm install -g 9router
9router

🎉 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:

Claude Code/Codex/OpenClaw/Cursor/Cline Settings:
  Endpoint: http://localhost:20128/v1
  API Key: [copy from dashboard]
  Model: kr/claude-sonnet-4.5

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.

cp .env.example .env
npm install
PORT=20128 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run dev

Production mode:

npm run build
PORT=20128 HOSTNAME=0.0.0.0 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run start

Default URLs:

  • Dashboard: http://localhost:20128/dashboard
  • OpenAI-compatible API: http://localhost:20128/v1


Headroom service in same Docker network

http://headroom:8787


💰 Pricing at a Glance

TierProviderCostQuota ResetBest For
🚀 TOKEN SAVERRTK (built-in)FREEAlways onSave 20-40% tokens on EVERY request
💳 SUBSCRIPTIONClaude Code (Pro/Max)$20-200/mo5h + weeklyAlready subscribed
Codex (Plus/Pro)$20-200/mo5h + weeklyOpenAI users
GitHub Copilot$10-19/moMonthlyGitHub users
Cursor IDE$20/moMonthlyCursor users
💰 CHEAPGLM-5.1 / GLM-4.7$0.6/1MDaily 10AMBudget backup
MiniMax M2.7$0.2/1M5-hour rollingCheapest option
Kimi K2.5$9/mo flat10M tokens/moPredictable cost
🆓 FREEKiro AI$050 credits/moClaude 4.5 + GLM-5 + MiniMax free (paid tiers above)
OpenCode Free$0Varies*No auth, auto-fetch models (list changes over time)
Vertex AI$300 creditsNew GCP accountsGemini 3 Pro + DeepSeek + GLM-5 (use Vertex AI Studio endpoint for free credits)

💡 Pro Tip: RTK + Kiro AI + OpenCode Free combo = $0 cost + 20-40% token savings!



Case 1: "I have Claude Pro subscription"

Problem: Quota expires unused, rate limits during heavy coding

Solution:

Combo: "maximize-claude"
  1. cc/claude-opus-4-7        (use subscription fully)
  2. glm/glm-5.1               (cheap backup when quota out)
  3. kr/claude-sonnet-4.5      (free emergency fallback)

Monthly cost: $20 (subscription) + ~$5 (backup) = $25 total
vs. $20 + hitting limits = frustration

Case 2: "I want zero cost"

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

Solution:

Combo: "free-forever"
  1. kr/claude-sonnet-4.5      (Claude 4.5 free via Kiro, ~50 credits/mo)
  2. kr/glm-5                  (GLM-5 free via Kiro)
  3. oc/<auto>                 (OpenCode Free, no auth)

Monthly cost: $0
Quality: Production-ready models + RTK saves 20-40% tokens

Example 1: Maximize Subscription → Cheap Backup

Dashboard → Combos → Create New

Name: premium-coding
Models:
  1. cc/claude-opus-4-7 (Subscription pr

For agents

This page has a .md twin and JSON over the API.

Was this helpful?

Anonymous feedback helps us improve pages and translations.