9Router CLI (v0.4.6) is a command-line tool for running a local AI endpoint proxy server with a web dashboard. It consolidates access to 15+ AI providers (Claude, OpenAI, Gemini, GitHub Copilot, Qwen, iFlow, DeepSeek, etc.) behind a single OpenAI-compatible endpoint. It supports OAuth2 and API key authentication, automatic format translation between provider-specific schemas (OpenAI, Claude, Gemini, Codex), a combo system for model fallback, and intelligent account rotation on rate limits or errors. The CLI installs globally or runs via npx. It is designed for tools like Claude Code, Cline, RooCode, AmpCode, and Cursor IDE. The project is actively maintained with a focus on simplicity and multi-provider unification, differentiating from single-provider or heavier proxy solutions.
npm install 9routerVerified import paths — ran on the pinned version, not inferred.
Installs and runs the 9Router proxy server with optional port and browser flags.
Upgrade Node.js to version 18 or higher.
Use --port flag to specify a different port, e.g., 9router --port 3000.
Ensure server is started with default settings or explicitly open http://localhost:20128/dashboard.
Use --skip-update to suppress or update manually via npm.
Install globally with 'npm install -g 9router' or use 'npx 9router'.
Use npx instead: 'npx 9router', or fix npm permissions: 'sudo npm install -g 9router'.
Use npx: 'npx 9router', or ensure npm global bin directory is in PATH.
Kill the process using port 20128, or specify a different port: '9router --port 3000'.