JSPM

  • Created
  • Published
  • Downloads 18172
  • Score
    100M100P100Q163321F
  • License MIT

9Router CLI - Start and manage 9Router server

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

    npm version License

    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

    # Install globally
    npm install -g 9router
    9router
    
    # Or run directly with npx (recommended)
    npx 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 options

    Dashboard: 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

    🛠️ 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:

    🙏 Acknowledgments

    📄 License

    MIT License - see LICENSE for details.