Package Exports
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (9router) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
9Router CLI
9Router - AI endpoint proxy with web dashboard. Unified access to 15+ AI providers (Claude, OpenAI, Gemini, GitHub Copilot, and more) through a single endpoint.
📦 Installation
# Run directly with npx (recommended)
npx 9router
# Or install globally
npm install -g 9router
9router🚀 Usage
9router # Start server with default settings
9router --port 8080 # Custom port
9router --no-browser # Don't open browser
9router --skip-update # Skip auto-update check
9router --help # Show all optionsDashboard: Open http://localhost:20128/dashboard in your browser
✨ Features
- 🔄 Multi-Provider Support: Claude, OpenAI, Gemini, GitHub Copilot, Qwen, iFlow, DeepSeek, and more
- 🔐 OAuth & API Key Auth: Support both OAuth2 and API key authentication
- 🎯 Format Translation: Auto-translate between OpenAI, Claude, Gemini, Codex formats
- 🌐 Web Dashboard: Manage providers, combos, API keys, and settings
- 🎲 Combo System: Create model combos with automatic fallback
- ♻️ Intelligent Fallback: Auto account rotation on rate limits/errors
- 📊 Usage Tracking: Real-time monitoring for all API requests
- 🔍 WebSearch Hook: Model-based web search for Claude Code CLI
🛠️ CLI Integration
Works seamlessly with:
- Claude Code (Anthropic)
- OpenAI Codex
- Cline, RooCode, AmpCode
- Cursor IDE
- Any tool supporting OpenAI-compatible API
💾 Data Location
User data stored at:
- macOS/Linux:
~/.9router/db.json - Windows:
%APPDATA%/9router/db.json
📚 Documentation
For full documentation, advanced configuration, and development guide, visit:
- GitHub: https://github.com/decolua/9router
- Full README: https://github.com/decolua/9router/blob/main/app/README.md
🙏 Acknowledgments
- CLIProxyAPI: Original Go implementation
- ccs: WebSearch hook reference
📄 License
MIT License - see LICENSE for details.