One endpoint. Every AI tool. Auto-fallback. Token compression.
Windows (PowerShell):
irm https://raw.githubusercontent.com/EfkaStudio-prd/G-ROUTER/main/install.ps1 | iexLinux / macOS (Bash):
curl -fsSL https://raw.githubusercontent.com/EfkaStudio-prd/G-ROUTER/main/install.sh | bashThe installer will:
- Verify Node.js (≥22.22.2) and Git
- Clone or update the repository to
~/golden-router - Install all dependencies via
npm install - Generate JWT and API key secrets
- Build the production bundle
- Install the global
golden-routerCLI
Golden Router is a production-grade unified AI gateway that routes any LLM tool through a single endpoint. Plug Claude Code, Codex, Cursor, Cline, Copilot, or any OpenAI-compatible CLI into 200+ providers — including 50+ free tiers — with automatic fallback, cost optimization, and 15-95% token compression.
- 🌐 200+ AI Providers — OpenAI, Anthropic, Gemini, DeepSeek, Groq, xAI, Mistral, Cerebras, Cloudflare AI, NVIDIA NIM, and many more
- 🆓 50+ Free Tiers — Including 11 free-forever providers (Kiro, Qoder, Pollinations, LongCat...)
- 🔀 14 Routing Strategies — Priority, weighted, round-robin, cost-optimized, context-relay, auto, LKGP, and more
- 🗜️ RTK + Caveman Compression — Stack savings: 78–95% token reduction on tool-heavy sessions
- 🛡️ Resilience Built-In — Circuit breakers, connection cooldown, model lockout (3 independent layers)
- 🔌 MCP + A2A Protocols — 37 MCP tools, JSON-RPC 2.0 A2A, full agent automation
- 🖥️ Multi-Platform — Web · Desktop (Electron) · PWA · Termux (Android) · Docker
- 🔒 Local-First & Private — AES-256-GCM at rest, zero telemetry, 100% open-source
After running the installer:
golden-routerThen open the dashboard at http://localhost:20128.
Point any AI tool at:
Base URL: http://localhost:20128/v1
API Key: [generated — see Dashboard → Endpoints]
Model: auto # smart routing across all your providers
Claude Code · Codex CLI · Cursor · Cline · Copilot · Gemini CLI · OpenCode · Kilo Code · Continue · Antigravity · Windsurf · Hermes · Roo · any OpenAI-compatible client
- Framework: Next.js 16 (App Router) + React 19
- Runtime: Node.js 22.22.2+ / 24+
- Language: TypeScript 5.9
- Database: better-sqlite3 (local) + Supabase (optional cloud sync)
- Auth: Clerk (optional) + local API keys
- Styling: Tailwind CSS v4 + shadcn/ui
- Streaming: Server-Sent Events via
open-sseworkspace - i18n: 40+ languages via next-intl
- Deployment Guide
- CLI Tools Setup
- Compression Engines
- MCP Server
- A2A Server
- Auto-Combo Engine
- Security & Authorization
git clone https://github.com/EfkaStudio-prd/G-ROUTER.git golden-router
cd golden-router
cp .env.example .env.local
npm install
npm run build
npm startPull requests welcome! See CONTRIBUTING.md for the testing & coverage requirements.
MIT © EfkaStudio — see LICENSE
Built with ❤️ for developers who never want to stop coding.
GitHub · Issues · Discussions