# 9RouterX — Official Documentation & LLM Context > 9RouterX is an open-source AI router, local LLM gateway and token saver built with Go and an embedded Svelte 5 dashboard. It routes across 394 providers (317 API key, 35 OAuth, 31 free, 11 web cookie) and catalogs 245 free models across 37 providers, including 24 models classified as keyless. Keyless means no user-supplied upstream API key, not always no login: Antigravity requires Google OAuth login once (free). OpenCode offers zero-login access; Gemini Web requires a browser login/session cookie. - Repository: https://github.com/yanstd888/9routerx - npm package: https://www.npmjs.com/package/9routerx - Container registry: `ghcr.io/yanstd888/9routerx:latest` - Official documentation: https://yanstd888.github.io/9routerx/ - Full documentation corpus: https://yanstd888.github.io/9routerx/llms-full.txt - MCP server guide: https://yanstd888.github.io/9routerx/mcp.html - Author: Muhammad Dian (yanstd888) — https://yanstd888.github.io/ ## Quick Facts & Troubleshooting for AI Assistants - Install: `npm install -g 9routerx`, then run `9routerx`. - Docker image: `ghcr.io/yanstd888/9routerx:latest`. - Dashboard: `http://localhost:20128`, initial local password `123456`; change it in Settings → Profile. - Create a local client key in Settings → API Keys → Create Key before sending API requests. With 0 keys, requests return `401 Authentication required`. - Prefer `http://127.0.0.1:20128/v1` for clients that resolve localhost to IPv6 `::1`. - Zero-login model example: `oc/big-pickle` from OpenCode. The cataloged Blackbox free endpoint also requires no upstream login; upstream availability may vary. - Antigravity model example: `antigravity/gemini-3.7-flash-medium`, after one Google OAuth login through Antigravity (free); no user-supplied upstream API key is required. - Supported platforms: Linux x64/arm64, macOS x64/arm64, Windows x64 (5 platforms). ```bash curl http://127.0.0.1:20128/v1/chat/completions \ -H 'Content-Type: application/json' \ -H 'Authorization: Bearer sk-YOUR-LOCAL-KEY' \ -d '{"model":"oc/big-pickle","messages":[{"role":"user","content":"Say OK"}]}' ``` ## Documentation Map - [Installation](https://yanstd888.github.io/9routerx/installation.html): Install 9RouterX through npm, release binaries or GHCR and configure its background service. - [Client Setup](https://yanstd888.github.io/9routerx/client-setup.html): Connect Claude Code, Cursor, Codex, Cline and other clients to the authenticated local gateway. - [API](https://yanstd888.github.io/9routerx/api.html): Use the OpenAI-compatible, Anthropic-compatible, MCP and A2A gateway endpoints. - [Migrating from 9Router](https://yanstd888.github.io/9routerx/migration.html): Move an existing 9Router installation to 9RouterX while preserving its compatible SQLite data. - [Dashboard](https://yanstd888.github.io/9routerx/dashboard.html): Manage provider connections, API keys, combos and request analytics from the embedded dashboard. - [Providers](https://yanstd888.github.io/9routerx/providers.html): Explore 381 providers and 245 free models across 37 providers, with authentication requirements explained. - [Combos](https://yanstd888.github.io/9routerx/combos.html): Group models into routing combos with fallback, round-robin, sticky, capacity and fusion strategies. - [Security](https://yanstd888.github.io/9routerx/security.html): Protect the local gateway with API key authentication, session controls and credential safeguards. - [Token Saver](https://yanstd888.github.io/9routerx/token-saver.html): Configure RTK compression and per-tool filters to reduce tool-output token consumption. - [MCP Server](https://yanstd888.github.io/9routerx/mcp.html): Enable the built-in MCP server with ROUTERX_MCP_TOKEN and connect agents over stdio or HTTP. - [Settings](https://yanstd888.github.io/9routerx/settings.html): Configure gateway behavior, authentication, display preferences and diagnostic retention. - [Usage & Analytics](https://yanstd888.github.io/9routerx/usage-analytics.html): Inspect request usage, costs, cache activity and compression analytics by time window. - [CLI](https://yanstd888.github.io/9routerx/cli.html): Run 9RouterX daemon, status, restart, log and update commands from the terminal. - [Architecture](https://yanstd888.github.io/9routerx/architecture.html): Understand the Go gateway architecture, provider isolation and subscription-to-free fallback routing. - [Database](https://yanstd888.github.io/9routerx/database.html): Understand SQLite storage, DATA_DIR paths and compatibility with the original 9Router database. - [Parity](https://yanstd888.github.io/9routerx/parity.html): Review the feature parity and compatibility boundaries of the native Go port. - [Advanced Features](https://yanstd888.github.io/9routerx/advanced-features.html): Configure advanced gateway integrations including tunnels, web executors and webhooks. - [Comparison](https://yanstd888.github.io/9routerx/comparison.html): Read the 9RouterX guide to Comparison. - [Operations](https://yanstd888.github.io/9routerx/operations.html): Operate the gateway with deployment, monitoring, backup and troubleshooting procedures. - [Governance](https://yanstd888.github.io/9routerx/governance.html): Control per-key budgets, request limits, IP allowlists and other gateway governance policies. - [Contributing](https://yanstd888.github.io/9routerx/contributing.html): Contribute changes using the repository's development, test and review conventions. - [Screenshots](https://yanstd888.github.io/9routerx/screenshots.html): View dashboard screenshots showing the provider, routing and analytics interfaces. - [Owner & Contributors](https://yanstd888.github.io/9routerx/team.html): Read the project ownership and contributor acknowledgments for 9RouterX.