decolua / 9router
Connect All AI Code Tools (Claude Code, Cursor, Antigravity, Copilot, Codex, Gemini, OpenCode, Cline, OpenClaw...) to 40+ AI Providers & 100+ Models
View on GitHubAI Architecture Analysis
This repository is indexed by RepoMind. By analyzing decolua/9router in our AI interface, you can instantly generate complete architecture diagrams, visualize control flows, and perform automated security audits across the entire codebase.
Our Agentic Context Augmented Generation (Agentic CAG) engine loads full source files into context on-demand, avoiding the fragmentation of traditional RAG systems. Ask questions about the architecture, dependencies, or specific features to see it in action.
Repository Overview (README excerpt)
Crawler view# 9Router - Free AI Router **Never stop coding. Auto-route to FREE & cheap AI models with smart fallback.** **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 π»π³ TiαΊΏng Viα»t β’ π¨π³ δΈζ β’ π―π΅ ζ₯ζ¬θͺ --- π€ Why 9Router? **Stop wasting money and hitting limits:** β’ β Subscription quota expires unused every month β’ β Rate limits stop you mid-coding β’ β Expensive APIs ($20-50/month per provider) β’ β Manual switching between providers **9Router solves this:** β’ β **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, Gemini CLI, Cursor, Cline, any CLI tool --- π How It Works --- β‘ Quick Start **1. Install globally:** π Dashboard opens at **2. Connect a FREE provider (no signup needed):** Dashboard β Providers β Connect **Claude Code** or **Antigravity** β OAuth login β 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 ( ), so source/Docker execution is the expected local development path. Production mode: Default URLs: β’ Dashboard: β’ OpenAI-compatible API: --- π₯ Video Tutorial πΊ Complete Setup Guide - 9Router + Claude Code FREE **π¬ Watch the complete step-by-step tutorial:** β’ β 9Router installation & setup β’ β FREE Claude Sonnet 4.5 configuration β’ β Claude Code integration β’ β Live coding demonstration **β±οΈ Duration:** 20 minutes | **π₯ By:** Developer Community βΆοΈ Watch on YouTube --- π οΈ Supported CLI Tools 9Router works seamlessly with all major AI coding tools: Claude-Code OpenClaw Codex OpenCode Cursor Antigravity Cline Continue Droid Roo Copilot Kilo Code --- π Supported Providers π OAuth Providers Claude-Code Antigravity Codex GitHub Cursor π Free Providers iFlow AI 8+ models β’ Unlimited Qwen Code 3+ models β’ Unlimited Gemini CLI 180K/month FREE Kiro AI Claude β’ Unlimited π API Key Providers (40+) OpenRouter GLM Kimi MiniMax OpenAI Anthropic Gemini DeepSeek Groq xAI Mistral Perplexity Together AI Fireworks Cerebras Cohere NVIDIA SiliconFlow ...and 20+ more providers including Nebius, Chutes, Hyperbolic, and custom OpenAI/Anthropic compatible endpoints --- π‘ Key Features | Feature | What It Does | Why It Matters | |---------|--------------|----------------| | π― **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 seamless | 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 | | π¨ **Custom Combos** | Create unlimited model combinations | Tailor fallback to your needs | | π **Request Logging** | Debug mode with full request/response logs | Troubleshoot issues easily | | πΎ **Cloud Sync** | Sync config across devices | Same setup everywhere | | π **Usage Analytics** | Track tokens, cost, trends over time | Optimize spending | | π **Deploy Anywhere** | Localhost, VPS, Docker, Cloudflare Workers | Flexible deployment options | π Feature Details π― Smart 3-Tier Fallback Create combos with automatic fallback: π Real-Time Quota Tracking β’ Token consumption per provider β’ Reset countdown (5-hour, daily, weekly) β’ Cost estimation for paid tiers β’ Monthly spending reports π Format Translation Seamless translation between formats: β’ **OpenAI** β **Claude** β **Gemini** β **OpenAI Responses** β’ Your CLI tool sends OpenAI format β 9Router translates β Provider receives native format β’ Works with any tool that supports custom OpenAI endpoints π₯ Multi-Account Support β’ Add multiple accounts per provider β’ Auto round-robin or priority-based routing β’ Fallback to next account when one hits quota π Auto Token Refresh β’ OAuth tokens automatically refresh before expiration β’ No manual re-authentication needed β’ Seamless experience across all providers π¨ Custom Combos β’ Create unlimited model combinations β’ Mix subscription, cheap, and free tiers β’ Name your combos for easy access β’ Share combos across devices with Cloud Sync π Request Logging β’ Enable debug mode for full request/response logs β’ Track API calls, headers, and payloads β’ Troubleshoot integration issues β’ Export logs for analysis πΎ Cloud Sync β’ Sync providers, combos, and settings across devices β’ Automatic background sync β’ Secure encrypted storage β’ Access your setup from anywhere Cloud Runtime Notes β’ Prefer server-side cloud variables in production: β’ (internal callback URL used by sync scheduler) β’ (cloud sync endpoint base) β’ and are still supported for compatibility/UI, but server runtime now prioritizes / . β’ Cloud sync requests now use timeout + fail-fast behavior to avoid UI hanging when cloud DNS/network is unavailable. π Usage Analytics β’ Track token usage per provider and model β’ Cost estimation and spending trends β’ Monthly reports and insights β’ Optimize your AI spending > **π‘ IMPORTANT - Understanding Dashboard Costs:** > > The "cost" displayed in Usage Analytics is **for tracking and comparison purposes only**. > 9Router itself **never charges** you anything. You only pay providers directly (if using paid services). > > **Example:** If your dashboard shows "$290 total cost" while using iFlow models, this represents > what you would have paid using paid APIs directly. Your actual cost = **$0** (iFlow is free unlimited). > > Think ofβ¦