{"data":{"slug":"decolua-9router","name":"9router","tagline":"Unlimited FREE AI coding with auto-fallback and token-saving features","github_url":"https://github.com/decolua/9router","owner":"decolua","repo":"9router","owner_avatar_url":"https://avatars.githubusercontent.com/u/8282593?v=4","primary_language":"JavaScript","stars":29223,"forks":5390,"topics":["ai-agents","ai-gateway","anthropic","chatgpt","claude","claude-code","cline","codex","copilot","cursor","deepseek","free-ai","gemini","gemini-cli","llm","llm-gateway","openai","openai-proxy","qwen","token-saver"],"archived":false,"github_pushed_at":"2026-09-10T17:11:20+00:00","maintenance_label":"Active","stars_delta_30d":6454,"url":"https://www.graphcanon.com/tools/decolua-9router","markdown_url":"https://www.graphcanon.com/tools/decolua-9router.md","api_url":"https://www.graphcanon.com/api/graphcanon/tools/decolua-9router","graph_url":"https://www.graphcanon.com/api/graphcanon/graph?tool=decolua-9router","description":"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.","homepage_url":"https://9router.com","license":"MIT","open_issues":2142,"watchers":161,"ai_summary":"9router is an AI gateway that connects multiple AI coding tools to free AI models via various providers, offering auto-fallback and token-saving capabilities.","readme_excerpt":"## ⚡ Quick Start\n\n**1. Install globally:**\n\n```bash\nnpm install -g 9router\n9router\n```\n\n🎉 Dashboard opens at `http://localhost:20128`\n\n**2. Connect a FREE provider (no signup needed):**\n\nDashboard → Providers → Connect **Kiro AI** (~50 credits/month free: Claude 4.5 + GLM-5 + MiniMax) or **OpenCode Free** (no auth) → Done!\n\n**3. Use in your CLI tool:**\n\n```\nClaude Code/Codex/OpenClaw/Cursor/Cline Settings:\n  Endpoint: http://localhost:20128/v1\n  API Key: [copy from dashboard]\n  Model: kr/claude-sonnet-4.5\n```\n\n**That's it!** Start coding with FREE AI models.\n\n**Alternative: run from source (this repository):**\n\nThis repository package is private (`9router-app`), so source/Docker execution is the expected local development path.\n\n```bash\ncp .env.example .env\nnpm install\nPORT=20128 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run dev\n```\n\nProduction mode:\n\n```bash\nnpm run build\nPORT=20128 HOSTNAME=0.0.0.0 NEXT_PUBLIC_BASE_URL=http://localhost:20128 npm run start\n```\n\nDefault URLs:\n\n- Dashboard: `http://localhost:20128/dashboard`\n- OpenAI-compatible API: `http://localhost:20128/v1`\n\n---\n\n---\n\n# Headroom service in same Docker network\nhttp://headroom:8787\n\n---\n\n## 💰 Pricing at a Glance\n\n| Tier                | Provider              | Cost         | Quota Reset      | Best For                                |\n| ------------------- | --------------------- | ------------ | ---------------- | --------------------------------------- |\n| **🚀 TOKEN SAVER**  | **RTK (built-in)**    | **FREE**     | Always on        | **Save 20-40% tokens on EVERY request** |\n| **💳 SUBSCRIPTION** | Claude Code (Pro/Max) | $20-200/mo   | 5h + weekly      | Already subscribed                      |\n|                     | Codex (Plus/Pro)      | $20-200/mo   | 5h + weekly      | OpenAI users                            |\n|                     | GitHub Copilot        | $10-19/mo    | Monthly          | GitHub users                            |\n|                     | Cursor IDE            | $20/mo       | Monthly          | Cursor users                            |\n| **💰 CHEAP**        | GLM-5.1 / GLM-4.7     | $0.6/1M      | Daily 10AM       | Budget backup                           |\n|                     | MiniMax M2.7          | $0.2/1M      | 5-hour rolling   | Cheapest option                         |\n|                     | Kimi K2.5             | $9/mo flat   | 10M tokens/mo    | Predictable cost                        |\n | **🆓 FREE**         | Kiro AI               | $0           | 50 credits/mo    | Claude 4.5 + GLM-5 + MiniMax free (paid tiers above) |\n |                     | OpenCode Free         | $0           | Varies*          | No auth, auto-fetch models (list changes over time) |\n |                     | Vertex AI             | $300 credits | New GCP accounts | Gemini 3 Pro + DeepSeek + GLM-5 (use Vertex AI Studio endpoint for free credits) |\n\n**💡 Pro Tip:** RTK + Kiro AI + OpenCode Free combo = **$0 cost + 20-40% token savings**!\n\n---\n\n---\n\n### Case 1: \"I have Claude Pro subscription\"\n\n**Problem:** Quota expires unused, rate limits during heavy coding\n\n**Solution:**\n\n```\nCombo: \"maximize-claude\"\n  1. cc/claude-opus-4-7        (use subscription fully)\n  2. glm/glm-5.1               (cheap backup when quota out)\n  3. kr/claude-sonnet-4.5      (free emergency fallback)\n\nMonthly cost: $20 (subscription) + ~$5 (backup) = $25 total\nvs. $20 + hitting limits = frustration\n```\n\n---\n\n### Case 2: \"I want zero cost\"\n\n**Problem:** Can't afford subscriptions, need reliable AI coding\n\n**Solution:**\n\n```\nCombo: \"free-forever\"\n  1. kr/claude-sonnet-4.5      (Claude 4.5 free via Kiro, ~50 credits/mo)\n  2. kr/glm-5                  (GLM-5 free via Kiro)\n  3. oc/<auto>                 (OpenCode Free, no auth)\n\nMonthly cost: $0\nQuality: Production-ready models + RTK saves 20-40% tokens\n```\n\n---\n\n### Example 1: Maximize Subscription → Cheap Backup\n\n```\nDashboard → Combos → Create New\n\nName: premium-coding\nModels:\n  1. cc/claude-opus-4-7 (Subscription pr","github_created_at":"2026-01-05T02:59:30+00:00","created_at":"2026-07-07T17:40:40.902999+00:00","updated_at":"2026-09-20T04:33:03.8986+00:00","categories":[{"slug":"ai-agents","name":"AI Agents","url":"https://www.graphcanon.com/categories/ai-agents","markdown_url":"https://www.graphcanon.com/categories/ai-agents.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/ai-agents"},{"slug":"developer-tools","name":"Developer Tools","url":"https://www.graphcanon.com/categories/developer-tools","markdown_url":"https://www.graphcanon.com/categories/developer-tools.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/developer-tools"}],"tags":[{"slug":"ai-agents","name":"ai-agents"},{"slug":"ai-gateway","name":"ai-gateway"},{"slug":"anthropic","name":"anthropic"},{"slug":"chatgpt","name":"chatgpt"},{"slug":"claude","name":"claude"},{"slug":"claude-code","name":"claude-code"},{"slug":"cline","name":"cline"},{"slug":"codex","name":"codex"}],"trust":{"provenance":{"is_fork":false,"github_id":1128025899,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-09-18T08:44:47.915Z","maintenance":{"label":"Active","score":82,"methodology":"github_public_v1","releases_90d":6,"days_since_push":7,"last_release_at":"2026-07-16T11:14:39Z","stars_delta_30d":6454,"open_issues_delta_30d":921},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-09-18T08:44:50.643Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"mcp":{"source":"repo_scan","observed_at":"2026-09-18T08:44:46.295Z","server_manifest":false},"scan":{"source":"repo_scan","observed_at":"2026-09-18T08:44:46.295Z"},"deploy":{"source":"dockerfile:Dockerfile","self_host":true,"observed_at":"2026-09-18T08:44:46.295Z","managed_saas":false},"has_cli":{"value":true,"source":"package.json:bin|scripts","observed_at":"2026-09-18T08:44:46.295Z"},"languages":{"value":["javascript"],"source":"github.language+package.json","observed_at":"2026-09-18T08:44:46.295Z"},"has_docker":{"value":true,"source":"dockerfile:Dockerfile","observed_at":"2026-09-18T08:44:46.295Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-09-18T08:44:46.295Z"}},"decision_facts":{"hosting":null,"pricing":null,"requirements":null,"constraints":null,"when_to_use":["When you need to maximize the use of your paid AI coding subscriptions by integrating with free fallback options.","If you are looking for a solution that can save up to 40% of tokens on every request through its RTK feature.","When you want to avoid hitting rate limits by automatically falling back to free or cheaper models.","If you are working on a budget and need to keep costs down by using free AI models and minimizing token usage."],"when_not_to_use":["If you require a single, high-performance AI coding tool without the complexity of managing fallbacks and multiple providers.","When you need a solution that does not involve setting up a local gateway and configuring endpoints for different AI models.","If you are working in an environment where the use of free or fallback AI models is not acceptable due to security or compliance reasons.","When you are looking for a tool that does not require manual configuration of API keys and endpoints for each AI model you wish to use."],"source":"enrich:decision_facts","observed_at":"2026-09-18T09:26:58.383Z"},"constraint_facets":null,"decision_summary":[{"label":"Adopt for","value":"9router is an AI gateway that connects multiple AI coding tools to free AI models via various providers, offering auto-fallback and token-saving capabilities."}]}}