{"data":{"slug":"decolua-9router","name":"9router","tagline":"Unlimited FREE AI coding with auto-fallback and token savings","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":25841,"forks":4635,"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-08-14T10:08:34+00:00","maintenance_label":"Very active","stars_delta_30d":3072,"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":1700,"watchers":142,"ai_summary":"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.","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-08-20T00:01:01.400642+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":"inference-serving","name":"Inference & Serving","url":"https://www.graphcanon.com/categories/inference-serving","markdown_url":"https://www.graphcanon.com/categories/inference-serving.md","api_url":"https://www.graphcanon.com/api/graphcanon/categories/inference-serving"}],"tags":[{"slug":"ai-agents","name":"ai-agents"},{"slug":"free-ai","name":"free-ai"},{"slug":"openai-proxy","name":"openai-proxy"},{"slug":"token-saver","name":"token-saver"}],"trust":{"provenance":{"is_fork":false,"github_id":1128025899,"owner_type":"User","methodology":"github_public_v1","parent_repo":null,"near_duplicate_slugs":[]},"computed_at":"2026-08-20T00:01:00.275Z","maintenance":{"label":"Very active","score":96,"methodology":"github_public_v1","releases_90d":12,"days_since_push":5,"last_release_at":"2026-07-16T11:14:39Z","stars_delta_30d":3072,"open_issues_delta_30d":479},"security_summary":{"status":"no_lockfile","scanner":null,"low_count":0,"high_count":0,"last_scan_at":"2026-07-11T11:17:16.263Z","medium_count":0,"scan_profile":"none","critical_count":0}},"capability_facts":{"mcp":{"source":"repo_scan","observed_at":"2026-08-20T00:01:00.821Z","server_manifest":false},"scan":{"source":"repo_scan","observed_at":"2026-08-20T00:01:00.821Z"},"deploy":{"source":"dockerfile:Dockerfile","self_host":true,"observed_at":"2026-08-20T00:01:00.821Z","managed_saas":false},"has_cli":{"value":true,"source":"package.json:bin|scripts","observed_at":"2026-08-20T00:01:00.821Z"},"languages":{"value":["javascript"],"source":"github.language+package.json","observed_at":"2026-08-20T00:01:00.821Z"},"has_docker":{"value":true,"source":"dockerfile:Dockerfile","observed_at":"2026-08-20T00:01:00.821Z"},"license_spdx":{"value":"MIT","source":"github.license","observed_at":"2026-08-20T00:01:00.821Z"}},"decision_facts":{"hosting":null,"pricing":{"model":"unknown","summary":"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"},"requirements":null,"constraints":{"pricing_model":"unknown"},"when_to_use":["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%.","Best used if you wish to avoid subscription costs entirely or manage multiple free provider accounts simultaneously."],"when_not_to_use":["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."],"source":"enrich:decision_facts","observed_at":"2026-07-11T14:07:32.729Z"},"constraint_facets":{"pricing_model":"unknown"},"decision_summary":[{"label":"Pricing","value":"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"},{"label":"Adopt for","value":"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."}]}}