[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-111166":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":25,"topics":26,"createdAt":10,"pushedAt":46,"updatedAt":47,"readmeContent":48,"aiSummary":49,"trendingCount":16,"starSnapshotCount":16,"syncStatus":50,"lastSyncTime":51,"discoverSource":52},111166,"9routerx","yanstd888\u002F9routerx","yanstd888"," 9RouterX (9R Next Go Generation): Single-binary Go AI router, LLM gateway & 20-40% token saver. Route Claude Code, Cursor & Codex across 155 providers, 28 OAuth & 248 free models (24 keyless) — OpenAI, Claude, Gemini, DeepSeek, Groq, Ollama & MCP.","https:\u002F\u002Fyanstd888.github.io\u002F9routerx",null,"Go",268,159,5,12,0,3,22,209,16,73.61,"Other",false,"main",true,[5,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45],"ai-gateway","ai-proxy","ai-routing","api-gateway","claude-code","cursor","free-ai-apis","golang","litellm-alternative","llm-gateway","llm-router","llmops","mcp-server","multi-llm","openai-proxy","openrouter-alternative","prompt-compression","semantic-cache","token-saver","2026-11-23 00:53:04","2026-11-23 14:30:38","\u003Cdiv align=\"center\">\n\n![9RouterX — Local AI Router, LLM Gateway, and Token Saver Single Binary](docs\u002F9routerx-readme-hero-motion.gif)\n\n# 9RouterX — FREE AI Router & Token Saver (Single Binary)\n\n**High-performance local AI gateway and OpenAI\u002FAnthropic-compatible LLM router compiled into a single Go binary.**\n\nCut tool-output token consumption by **20–40%**, automate multi-tier failover (**Subscription → Cheap → Free**), and route across **155 AI providers** and **248 free models** with zero Node.js runtime overhead.\n\n[![CI](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F9routerx\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F9routerx\u002Factions\u002Fworkflows\u002Fci.yml)\n[![Release CI](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F9routerx\u002Factions\u002Fworkflows\u002Frelease.yml\u002Fbadge.svg)](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F9routerx\u002Factions\u002Fworkflows\u002Frelease.yml)\n[![GitHub release](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fv\u002Frelease\u002Fyanstd888\u002F9routerx?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F9routerx\u002Freleases)\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F9routerx.svg?style=flat-square)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F9routerx)\n[![npm downloads](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fdm\u002F9routerx.svg?style=flat-square)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F9routerx)\n[![GitHub downloads](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fdownloads\u002Fyanstd888\u002F9routerx\u002Ftotal?style=flat-square)](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F9routerx\u002Freleases)\n[![Telegram Community](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FTelegram-%40aiclub__id-26A5E4?style=flat-square&logo=telegram)](https:\u002F\u002Ft.me\u002Faiclub_id)\n[![Source port](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fport-20128-2563EB?style=flat-square)](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002F)\n\n[Quick Start](#quick-start) • [Why 9RouterX?](#why-9routerx) • [Key Features](#key-features) • [Supported Clients](#supported-ai-coding-clients) • [Free Providers](#free-ai-providers-and-keyless-models-catalog) • [Database Sharing](#sharing-a-database-with-9router) • [Screenshots](#screenshots) • [Setup Guide](#setup-guide-summary-and-wiki-documentation) • [Comparison](#architecture-comparison) • [FAQ](#frequently-asked-questions-faq) • [Docs](#docs) • [Wiki](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002F)\n\n**155** Providers · **28** OAuth One-Click · **29** Free-Tier · **248** Free Models (**24** Keyless) · **20–40%** Token Saved · **5** Platforms · **1** Binary\n\n\u003C\u002Fdiv>\n\n---\n\n> **What is 9RouterX?**\n>\n> **9RouterX** is an open-source, self-hosted AI routing gateway, local LLM proxy, and request\u002Fresponse token optimizer written in Go with an embedded Svelte 5 + Vite + Tailwind 4 web dashboard (listening on default port `20128`). It exposes a unified OpenAI-compatible (`\u002Fv1\u002Fchat\u002Fcompletions`, `\u002Fv1\u002Fmessages`, `\u002Fv1\u002Fresponses`, `\u002Fv1\u002Fembeddings`, `\u002Fv1\u002Fmodels`) and Anthropic-compatible local proxy endpoint that connects AI coding assistants (Claude Code, Cursor, OpenAI Codex CLI, Cline, Roo Code, OpenCode, Antigravity, Gemini CLI, OpenClaw) to **155 AI providers**—comprising **91 API key services**, **28 one-click OAuth integrations**, **29 free-tier providers** (**248 cataloged free models across 36 providers**, including **24 cataloged keyless models** requiring no user-supplied upstream API key; Antigravity still requires one Google OAuth login), and **4 web cookie providers**.\n\n## Why 9RouterX?\n\nAI-assisted software engineering workflows suffer from fragmented monthly subscriptions, sudden upstream rate limits, runaway token billing, and bloated CLI tool context windows. 9RouterX resolves these operational bottlenecks locally at the gateway layer before your requests leave your machine:\n\n* **Unused Monthly Quotas & Rate-Limit Interruptions → Smart 3-Tier Cascade (`Subscription → Cheap → Free`):** Stop losing unused monthly subscription credits or hitting `429 Too Many Requests` in the middle of a complex multi-file refactor. 9RouterX prioritizes your active **Subscription** tier first (via 28 one-click OAuth or 4 web cookie providers), overflows seamlessly to **Cheap API** providers (such as DeepSeek, Groq, Fireworks, or Nebius), and automatically falls back to **Free-Tier \u002F Keyless** models (`248 free models across 36 providers`, including `24 keyless models`) when primary limits are exhausted.\n* **Verbose CLI & Tool-Call Outputs → 20–40% Token Saver Suite:** Autonomous coding agents regularly burn tens of thousands of input tokens reading raw terminal logs, directory trees, build outputs, and repetitive JSON responses. Built-in RTK compression (`internal\u002Ftokensaver`, `internal\u002Fcompression`), **50+ ready-made per-tool output filters** (`git diff`, `git log`, `grep`, `ripgrep`, `docker logs`, `npm install`, `pnpm`, `cargo build`, `go test`, `terraform plan`, `kubectl`, `pytest`, and friends), GCF\u002Ftabular headroom compression (`internal\u002Fcompression\u002Fgcf`, `internal\u002Fheadroom`), context squeezing, and output style directives (Caveman, Ponytail, ADHD, and Anti-Slop modes) strip redundant noise before forwarding requests upstream.\n* **Uncontrolled API Spend → Per-Key Financial Governance & Guardrails:** Enforce strict daily USD spending ceilings with hard cutoffs checked when each request starts (`internal\u002Fbudget`), per-key request rate limits, CIDR\u002FIP whitelists, per-key system prompt injection, and scoped endpoint permissions (`internal\u002Fpolicy`, `internal\u002Fguardrails`, `internal\u002Fkeikey`) before distributing local gateway keys (`sk-...`) to autonomous agents, CI pipelines, or team members.\n* **Silent Endpoint Failures & Broken Tool Calls → Active Health Probing & Auto-Repair:** Upstream LLM providers frequently return malformed JSON tool-call arguments, truncated schemas, or suffer silent latency degradation. 9RouterX repairs broken tool-call structures in transit (`tool-call repair fallback`), guards against SSRF dispatch and leaks via PII masking, and continuously tracks live endpoint health (`internal\u002Fmodelhealth`, `internal\u002Fresilience`) with a 3-tier circuit breaker to bypass degraded nodes automatically.\n* **Redundant Repeated Prompts → Semantic & Prompt Caching:** Reduce round-trip latency and API token billing through local vector-similarity semantic caching (`internal\u002Fsemanticcache`) combined with automatic upstream prompt cache header passthrough (`internal\u002Fpromptcache`) and zero-allocation FastJSON parsing (`internal\u002Ffastjson`).\n* **Heavy Runtime Dependencies → Single Self-Contained Go Binary:** No Node.js runtime memory bloat, no Python virtual environments, and no external PostgreSQL or Redis containers required. Everything—including the reactive Svelte 5 dashboard, SQLite storage engine, MCP server, and MITM inspector—runs from a single native binary across Linux (`x64`\u002F`arm64`), macOS (`x64`\u002F`arm64`), and Windows (`x64`).\n\n## System Architecture\n\n```text\n  AI Coding Clients (Claude Code, Cursor, Codex, Cline, OpenCode, Gemini CLI, OpenClaw)\n                                           │\n                   http:\u002F\u002Flocalhost:20128\u002Fv1 (OpenAI \u002F Anthropic \u002F MCP \u002F A2A)\n                                           ▼\n┌─────────────────────────────────────────────────────────────────────────────────────┐\n│                             9RouterX Single Go Binary                               │\n│  ┌────────────────────────┐  ┌────────────────────────┐  ┌───────────────────────┐  │\n│  │  Governance & Policy   │→ │   Token Saver Suite    │→ │  Semantic & Prompt    │  │\n│  │  • Daily Cost Cutoff   │  │   • RTK Compression    │  │       Caching         │  │\n│  │  • Rate Limit \u002F IP WL  │  │   • 50+ Tool Filters   │  │  • Vector Similarity  │  │\n│  │  • Guardrails & Vault  │  │   • GCF \u002F Headroom     │  │  • Prompt Passthrough │  │\n│  │  • PII Mask \u002F SSRF Grd │  │   • Tool-Call Repair   │  │  • FastJSON Engine    │  │\n│  └────────────────────────┘  └────────────────────────┘  └───────────────────────┘  │\n│                                           │                                         │\n│                                           ▼                                         │\n│  ┌───────────────────────────────────────────────────────────────────────────────┐  │\n│  │          Smart Combo Router & Resilience Engine (Model Health Probes)         │  │\n│  │     Strategies: Fallback │ Round-Robin │ Sticky │ Least-Used │ Capacity       │  │\n│  └───────────────┬────────────────────────┬────────────────────────┬─────────────┘  │\n└──────────────────┼────────────────────────┼────────────────────────┼────────────────┘\n                   ▼                        ▼                        ▼\n       [Tier 1: Subscription]      [Tier 2: Cheap API]     [Tier 3: Free \u002F Keyless]\n        28 One-Click OAuth +        91 API Key Providers    248 Free Models across\n        4 Web Cookie Providers      (DeepSeek, Groq...)     36 Providers (24 Keyless)\n```\n\n## Key Features\n\n| Feature Group | Capabilities & Internal Modules |\n| :--- | :--- |\n| `\u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\u003Cpath d=\"M16 3h5v5M4 20L21 3M21 16v5h-5M15 15l6 6M4 4l5 5\"\u002F>\u003C\u002Fsvg>` **Routing & Fallback** | **Auto 3-Tier Fallback** (`Subscription → Cheap → Free`), **Combo Routing** (`fallback`, `round-robin`, `sticky`, `capacity`, `fusion` via `internal\u002Frouting`, `internal\u002Fcombos` & `internal\u002Fcombopresets`), multi-account round-robin load balancing, active **Model Health** probing (`internal\u002Fmodelhealth`), and 3-stage circuit-breaker resilience (`internal\u002Fresilience`). |\n| `\u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\u003Cpath d=\"M13 2L3 14h9l-1 8 10-12h-9l1-8z\"\u002F>\u003C\u002Fsvg>` **Token Saver Suite** | **20–40% tool-output token savings** (`internal\u002Ftokensaver`, `internal\u002Fcompression`), **RTK Compression**, **50+ ready-made per-tool output filters** (for `git diff`, `grep`, `docker logs`, `npm install`, `terraform plan`, and friends), **GCF\u002FTabular Headroom** (`internal\u002Fcompression\u002Fgcf`, `internal\u002Fheadroom`), **Context Squeezer** for long histories, **Output Style Directives** (`Caveman`, `Ponytail`, `ADHD`), **Anti-Slop Injector** (`internal\u002Ftokensaver\u002Fantislop`), and automated **Tool-Call Repair Fallback**. |\n| `\u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\u003Cpath d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z\"\u002F>\u003C\u002Fsvg>` **Governance per Key** | **Daily Cost Ceiling + Hard Cutoff** (`internal\u002Fbudget`, checked per request), per-key request rate limits, **IP Whitelist**, per-key custom system prompts, granular endpoint permissions, reusable **Plan Templates** (`internal\u002Fpolicy`, `internal\u002Fguardrails`, `internal\u002Fkeikey`), SSRF dispatch protection, PII masking, encrypted credential storage (`internal\u002Fvault`, `internal\u002Fsessionvault`), and audit logs (`internal\u002Fsecuritylog`). |\n| `\u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\u003Ccircle cx=\"12\" cy=\"12\" r=\"10\"\u002F>\u003Cpath d=\"M2 12h20M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z\"\u002F>\u003C\u002Fsvg>` **Providers & Auth** | **155 total providers**: **91 API Key** providers, **28 One-Click OAuth** integrations, **29 Free-Tier** providers, and **4 Web Cookie** providers (`internal\u002Fbrowsercookies`, `internal\u002Fbrowserlogin`). Supports custom OpenAI-\u002FAnthropic-compatible base URLs, custom HTTP headers, Kiro `external_idp` JSON auth import, per-key proxy pools, and Codex quota tracking (`internal\u002Fcodexquota`). |\n| `\u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\u003Cpath d=\"M20.59 13.41l-7.17 7.17a2 2 0 0 1-2.83 0L2 12V2h10l8.59 8.59a2 2 0 0 1 0 2.82z\"\u002F>\u003Cline x1=\"7\" y1=\"7\" x2=\"7.01\" y2=\"7\"\u002F>\u003C\u002Fsvg>` **Free Tier & Keyless** | **29 free-tier providers** (23 `CategoryFreeTier` + 6 `CategoryFree`) and **248 free models cataloged across 36 providers**, including **24 cataloged keyless models** without a user-supplied upstream API key (`antigravity`, `opencode`, `blackbox`); Antigravity requires Google OAuth login once. Tracks daily, monthly, credit, one-time, and uncapped quota regimes automatically. |\n| `\u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\u003Cellipse cx=\"12\" cy=\"5\" rx=\"9\" ry=\"3\"\u002F>\u003Cpath d=\"M21 12c0 1.66-4 3-9 3s-9-1.34-9-3\"\u002F>\u003Cpath d=\"M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5\"\u002F>\u003C\u002Fsvg>` **Cache & Performance** | **Semantic Cache** (`internal\u002Fsemanticcache`) for vector-matched query deduplication, upstream **Prompt Cache** optimization (`internal\u002Fpromptcache`), and high-throughput **FastJSON** serialization (`internal\u002Ffastjson`). |\n| `\u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\u003Cpolyline points=\"22 12 18 12 15 21 9 3 6 12 2 12\"\u002F>\u003C\u002Fsvg>` **Observability** | **Extended Logging + Payload Inspector**, custom usage analytics windows (`12h`, `14d`, custom date ranges), Tremor-inspired data visualizations (`bits-ui` + `layerchart`), distributed **Tracing** (`internal\u002Ftracing`, `internal\u002Fobserv`), **Uptime** monitoring (`internal\u002Fuptime`), **Security Log**, multi-target **Webhooks + Notifications** (`internal\u002Fnotifications`), and **Telegram Bot** alerts (`internal\u002Ftelegram`). |\n| `\u003Csvg width=\"16\" height=\"16\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\">\u003Crect x=\"2\" y=\"2\" width=\"20\" height=\"8\" rx=\"2\" ry=\"2\"\u002F>\u003Crect x=\"2\" y=\"14\" width=\"20\" height=\"8\" rx=\"2\" ry=\"2\"\u002F>\u003Cline x1=\"6\" y1=\"6\" x2=\"6.01\" y2=\"6\"\u002F>\u003Cline x1=\"6\" y1=\"18\" x2=\"6.01\" y2=\"18\"\u002F>\u003C\u002Fsvg>` **Infra & Extras** | **Single Go Binary** across 5 OS\u002Farch targets, background daemon CLI (`start`\u002F`stop`\u002F`restart`\u002F`status`\u002F`logs`), Docker container (`ghcr.io`), desktop **Tray App**, built-in **Tunnel** (`internal\u002Ftunnel`), self-**Updater** (`internal\u002Fupdater`), encrypted **Sync Bundle** backup\u002Frestore (`internal\u002Fsyncbundle`), **TLS Stealth** (`internal\u002Ftlsstealth`), **MITM Traffic Inspection** (`internal\u002Fmitm`), **MCP Server** (`internal\u002Fmcpserver`), **A2A Protocol** (`internal\u002Fa2a`), and **Media TTS\u002FSTT**. |\n\n## Quick Start\n\nInstall 9RouterX, create your local gateway API key in the dashboard on port `20128`, and execute your first routed completion in 3 steps.\n\n### 1. Install 9RouterX\n\nUpgrading from 9Router? Data carries over automatically; run `9routerx service take-over` to replace the old gateway and its autostart in one step ([migration guide](wiki\u002Fmigration.md)).\n\n**Option A — Via npm (Recommended for Linux, macOS, and Windows):** requires Node.js **>= 18**.\n\n```bash\nnpm install -g 9routerx\n```\n\n**Option B — Via Official Installer Script (Linux \u002F macOS \u002F Windows):**\n\n```bash\n# Linux & macOS\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002Fyanstd888\u002F9routerx\u002Fmain\u002Finstall.sh | sh\n\n# Windows (PowerShell)\nirm https:\u002F\u002Fraw.githubusercontent.com\u002Fyanstd888\u002F9routerx\u002Fmain\u002Finstall.ps1 | iex\n```\n\n**Option C — Prebuilt Standalone Binaries:**\n\nDownload the standalone archive for `linux-x64`, `linux-arm64`, `darwin-x64`, `darwin-arm64`, or `win32-x64` directly from [GitHub Releases](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F9routerx\u002Freleases).\n\n### 2. Start & Create API Key\n\n```bash\n9routerx\n# Dashboard: http:\u002F\u002Flocalhost:20128 (Default password: 123456 — change in Settings → Profile)\n# Next: Settings → API Keys → Create Key → copy your key (sk-...)\n```\n\n* **Default Login:** First login uses the default compatibility password `123456`. Change it immediately in **Settings → Profile**.\n* **Gateway Auth Note:** `RequireApiKey` (`internal\u002Fmiddleware\u002Fauth.go`) validates client keys against your local SQLite database (`0 keys configured = 401 Authentication required`). Always create at least one gateway API key (`sk-...`) in **Settings → API Keys** before sending requests.\n\n### 3. Send Your First Request (OpenCode, No Upstream Login)\n\nOnce you have created your local gateway key (`sk-YOUR-KEY`), test with `oc\u002Fbig-pickle` from OpenCode Free without an upstream login. For `antigravity\u002Fgemini-3.7-flash-medium`, sign in with Google through Antigravity once first (free); no user-supplied upstream API key is needed.\n\n```bash\ncurl http:\u002F\u002F127.0.0.1:20128\u002Fv1\u002Fchat\u002Fcompletions \\\n  -H \"Content-Type: application\u002Fjson\" \\\n  -H \"Authorization: Bearer sk-YOUR-KEY\" \\\n  -d '{\n    \"model\": \"oc\u002Fbig-pickle\",\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"Verify 9RouterX local gateway on port 20128 in one sentence.\"}\n    ]\n  }'\n```\n\n### Keep the Terminal Free (Background Mode)\n\nRun 9RouterX as a background daemon without tying up an active terminal session:\n\n```bash\n9routerx start          # launch in background (writes DATA_DIR\u002Frun\u002Fgateway.pid)\n9routerx status         # check running PID and active port\n9routerx restart        # restart background instance\n9routerx logs -n 100    # tail the last 100 lines of DATA_DIR\u002Frun\u002Fgateway.log\n9routerx stop           # stop the background daemon\n```\n\n* **PID & Logs:** Background state is stored in `DATA_DIR\u002Frun\u002Fgateway.pid` and daemon output is written to `DATA_DIR\u002Frun\u002Fgateway.log`.\n* **Windows Note:** On Windows, `9routerx stop` uses `TerminateProcess` (which skips graceful in-flight drain). For a graceful drain on Windows, trigger **Shutdown** from the web dashboard or use `9routerx restart`.\n\n### Running with Docker (GHCR)\n\nRun 9RouterX in a container with persistent SQLite storage mounted on port `20128`:\n\n```bash\ndocker run -d \\\n  --name 9routerx \\\n  --restart unless-stopped \\\n  -p 20128:20128 \\\n  -v ~\u002F.9router:\u002Fdata \\\n  -e DATA_DIR=\u002Fdata \\\n  ghcr.io\u002Fyanstd888\u002F9routerx:latest\n```\n\n* **Experimental Builds:** To test bleeding-edge commits from the experimental branch, pull `ghcr.io\u002Fyanstd888\u002F9routerx:exp` (`docker pull ghcr.io\u002Fyanstd888\u002F9routerx:exp`). Experimental workflow builds only publish to the `exp` tag and never overwrite `latest`.\n\n### Install Alternatives & Build from Source\n\n**Release binary:** download from [GitHub Releases](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F9routerx\u002Freleases\u002Flatest) and verify against `SHA256SUMS.txt`.\n\n**Experimental builds:** unpublished work ships as experimental builds — GitHub Releases marks them **Pre-release** (so `9routerx update` keeps pointing at stable), and GHCR tags them `exp` (`ghcr.io\u002Fyanstd888\u002F9routerx:exp`), never `latest`. Opt in only to help shake out bugs.\n\n**Build from source:** prerequisites Go 1.27 and Bun 1.x (dashboard is embedded into the binary, so build web first) — then `make build`. Full flags and steps: [wiki — installation](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002Finstallation.html).\n\n**Start on boot:** autostart\u002Fservice installation is documented in the wiki — [installation](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002Finstallation.html).\n\n## Sharing a Database with 9Router\n\n9RouterX is engineered as a drop-in compatible upgrade for existing **9Router** and **9router-go** installations. It listens on the exact same default port (`20128`) and opens the same `DATA_DIR\u002Fdb\u002Fdata.sqlite` database—meaning your configured **providers, OAuth connections, combos, client API keys, and usage history carry over automatically without migration**.\n\n| Deployment Mode | Default `DATA_DIR` \u002F SQLite Database Path |\n| :--- | :--- |\n| **Linux \u002F macOS (Native)** | `~\u002F.9router` (opens `~\u002F.9router\u002Fdb\u002Fdata.sqlite`) |\n| **Windows (Native)** | `%APPDATA%\\9router` (opens `%APPDATA%\\9router\\db\\data.sqlite`) |\n| **Docker Container** | Mount host `~\u002F.9router:\u002Fdata` with `-e DATA_DIR=\u002Fdata` |\n\n* **Caveat:** Do not run both 9Router and 9RouterX against the same SQLite file simultaneously. Stop the old process first (or back up `data.sqlite` before switching) so only one binary holds the SQLite write lock.\n\n## Screenshots\n\nEvery screen ships in dark and light themes, at desktop and mobile widths. The\nfull gallery — with per-page commentary — lives on the wiki's\n[**Screenshots**](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002Fscreenshots.html) page.\n\n| | Dark | Light |\n|---|---|---|\n| **Providers** — connect AI providers and manage custom OpenAI\u002FAnthropic-compatible endpoints | ![Providers view, dark theme — the provider catalog and connection list in the 9RouterX dashboard](docs\u002Fscreenshots\u002Fproviders.png) | ![Providers view, light theme — the same provider catalog and connection list in light mode](docs\u002Fscreenshots\u002Fproviders-light.png) |\n\n## Supported AI Coding Clients\n\n9RouterX works out of the box with any OpenAI-compatible, Anthropic-compatible, MCP, or A2A client:\n\n* **Claude Code** (`@anthropic-ai\u002Fclaude-code`)\n* **OpenAI Codex CLI**\n* **Cursor**\n* **Antigravity**\n* **Gemini CLI**\n* **OpenCode**\n* **Cline \u002F Roo Code**\n* **OpenClaw**\n\n> **IPv6 Resolution Note (`localhost` vs `127.0.0.1`):** Some CLI tools (upstream documentation specifically notes **OpenClaw** and certain Node\u002FGo CLIs) may resolve `localhost` to IPv6 `::1` first and fail to connect. If a client refuses to connect via `localhost`, use explicit IPv4 **`http:\u002F\u002F127.0.0.1:20128`** instead.\n\n### Example 1: Claude Code Setup\n\nRoute Claude Code through `http:\u002F\u002Flocalhost:20128` to enable 20–40% tool-output token compression, 50+ per-tool filters, and multi-provider failover:\n\n```bash\nexport ANTHROPIC_BASE_URL=\"http:\u002F\u002Flocalhost:20128\"\nexport ANTHROPIC_API_KEY=\"sk-YOUR-KEY\"\nclaude\n```\n\n### Example 2: Codex \u002F OpenCode \u002F OpenClaw (Explicit IPv4 `127.0.0.1`)\n\n```bash\nexport OPENAI_BASE_URL=\"http:\u002F\u002F127.0.0.1:20128\u002Fv1\"\nexport OPENAI_API_KEY=\"sk-YOUR-KEY\"\n```\n\n### Example 3: Cline \u002F Cursor JSON Configuration\n\n```json\n{\n  \"apiProvider\": \"openai-compatible\",\n  \"openAiBaseUrl\": \"http:\u002F\u002F127.0.0.1:20128\u002Fv1\",\n  \"openAiApiKey\": \"sk-YOUR-KEY\",\n  \"openAiModelId\": \"oc\u002Fbig-pickle\"\n}\n```\n\n### Example 4: Gemini CLI \u002F Custom Anthropic-Compatible Clients\n\n```bash\nexport GEMINI_API_BASE_URL=\"http:\u002F\u002F127.0.0.1:20128\u002Fv1\"\nexport GEMINI_API_KEY=\"sk-YOUR-KEY\"\n```\n\n## Free AI Providers and Keyless Models Catalog\n\n9RouterX includes a built-in catalog of **248 free models across 36 providers** (verified in `freemodels.go`), featuring **24 cataloged keyless models** (`antigravity`, `opencode`, `blackbox`) without a user-supplied upstream API key. Antigravity requires Google OAuth login once (free); OpenCode offers zero-login access. Gemini Web requires a browser login\u002Fsession cookie.\n\n### Supported Free Quota Regimes\n\n* **`keyless`**: No user-supplied upstream provider API key (`antigravity`, `opencode`, `blackbox`). Antigravity requires Google OAuth login once; OpenCode and the cataloged Blackbox free endpoint do not require an upstream login.\n* **`recurring-daily`**: Free request or token allowance resets automatically every 24 hours.\n* **`recurring-monthly`**: Free quota refreshes each calendar or billing month.\n* **`recurring-credit`**: Periodic free credit grants replenished by the provider.\n* **`recurring-uncapped`**: Rate-limited free endpoints without hard lifetime exhaustion caps.\n* **`one-time-initial`**: Initial trial credit pool granted upon account creation.\n\n### Complete Free Provider Directory (36 Providers · 248 Free Models)\n\n| Provider | Model free | Keyless | Quota \u002F Access Regime |\n| :--- | :---: | :---: | :--- |\n| `bazaarlink` | 32 | — | Free API tier (`recurring-daily` \u002F `recurring-uncapped`) |\n| `bluesminds` | 22 | — | Free API tier (`recurring-daily` \u002F `recurring-uncapped`) |\n| `vertex` | 21 | — | Google Cloud credits \u002F free tier (`one-time-initial` \u002F `recurring-credit`) |\n| `kilo-gateway` | 12 | — | Free gateway tier (`recurring-daily`) |\n| `fireworks` | 10 | — | Initial \u002F recurring free inference credits (`one-time-initial`) |\n| `antigravity` | 9 | 9 | **Free after Google OAuth login once; no user-supplied upstream API key (e.g. `gemini-3.7-flash-high\u002Fmedium\u002Flow`)** |\n| `opencode` | 9 | 9 | **Keyless (`keyless` — zero upstream setup)** |\n| `cloudflare-ai` | 9 | — | Recurring daily free Workers AI neurons (`recurring-daily`) |\n| `qoder` | 9 | — | One-click OAuth free coding tier (`recurring-daily` \u002F `recurring-monthly`) |\n| `opencode-zen` | 9 | — | Free developer coding tier (`recurring-daily`) |\n| `ollama` | 8 | — | Local \u002F free cloud endpoints (`recurring-uncapped`) |\n| `hyperbolic` | 8 | — | Initial trial inference credits (`one-time-initial`) |\n| `nous` | 7 | — | Nous Research free API tier (`recurring-credit` \u002F `one-time-initial`) |\n| `api-airforce` | 7 | — | Recurring daily \u002F uncapped free tier (`recurring-daily`) |\n| `kiro` | 7 | — | Free developer tier + `external_idp` auth support (`recurring-monthly`) |\n| `blackbox` | 6 | 6 | **Keyless (`keyless` — zero upstream setup)** |\n| `cohere` | 6 | — | Recurring monthly trial evaluation key (`recurring-monthly`) |\n| `huggingface` | 6 | — | Serverless inference API free tier (`recurring-daily`) |\n| `groq` | 5 | — | Recurring daily high-speed LPU free tier (`recurring-daily`) |\n| `mistral` | 5 | — | La Plateforme experiment free tier (`recurring-monthly`) |\n| `sambanova` | 5 | — | Recurring free developer cloud tier (`recurring-daily`) |\n| `glm-cn` | 4 | — | One-click OAuth \u002F Zhipu CN free models (`recurring-daily`) |\n| `gemini` | 4 | — | Google AI Studio recurring daily free tier (`recurring-daily`) |\n| `nvidia` | 4 | — | NVIDIA NIM developer free credit tier (`one-time-initial` \u002F `recurring-credit`) |\n| `llm7` | 4 | — | One-click OAuth free routing tier (`recurring-daily`) |\n| `openrouter` | 3 | — | Recurring `:free` and `openrouter\u002Fauto` model endpoints (`recurring-daily`) |\n| `agnes` | 3 | — | Free API inference tier (`recurring-daily`) |\n| `glm` | 2 | — | Zhipu GLM global free models (`recurring-daily`) |\n| `cerebras` | 2 | — | Recurring daily wafer-scale free inference tier (`recurring-daily`) |\n| `deepseek` | 2 | — | Initial credit \u002F off-peak developer tier (`one-time-initial`) |\n| `morph` | 2 | — | Fast code-apply free developer tier (`recurring-monthly`) |\n| `tokenharbor` | 2 | — | Free API routing tier (`recurring-daily`) |\n| `baidu` | 1 | — | Ernie \u002F Qianfan free model (`recurring-daily`) |\n| `nebius` | 1 | — | Nebius AI Studio trial credit free model (`one-time-initial`) |\n| `sensenova` | 1 | — | SenseTime free model endpoint (`recurring-daily`) |\n| `tencent` | 1 | — | Tencent Hunyuan free model endpoint (`recurring-daily`) |\n| **Total (36 Providers)** | **248** | **24** | **Verified in `freemodels.go`** |\n\n## Provider Categories Breakdown (155 Providers)\n\n9RouterX organizes its **155 supported providers** into four distinct authentication architectures:\n\n1. **91 API Key Providers:** Standard bearer token providers including OpenAI, Anthropic, Google Gemini, Groq, DeepSeek, Fireworks, Mistral, Cohere, Cerebras, SambaNova, NVIDIA NIM, OpenRouter, xAI, Together AI, Perplexity, Hyperbolic, Nebius, Cloudflare Workers AI, and 70+ global and regional inference platforms.\n2. **28 One-Click OAuth Providers:** Authenticate directly from the web dashboard without manually copying static tokens:\n   `antigravity`, `claude`, `cline`, `clinepass`, `codebuddy-cn`, `codebuddy-intl`, `codex`, `cursor`, `github`, `gitlab`, `glm-cn`, `grok-cli`, `iflow`, `jina-reader`, `kilocode`, `kimi`, `llm7`, `minimax-code-global`, `muse`, `qoder`, `qoder-cn`, `runcrate`, `topaz`, `voyage-ai`, `xai`, `xiaomi-mimo`, `zcode`, `zed`.\n3. **29 Free-Tier Providers:** Dedicated zero-cost provider configurations (**23 `CategoryFreeTier` + 6 `CategoryFree`**) engineered for automated fallback routing when paid quotas expire.\n4. **4 Web Cookie Providers:** Session-authenticated browser integrations powered by the internal `browsercookies` and `browserlogin` encrypted vault modules.\n\n### Adding a Custom Provider\n\nYou can register any custom OpenAI-compatible or Anthropic-compatible upstream server directly in the dashboard (`http:\u002F\u002Flocalhost:20128` → **Providers** → **Add Custom**):\n\n* Set custom base URLs for local or private inference servers (vLLM, Ollama, llama.cpp, LM Studio, LiteLLM, or enterprise gateways).\n* Inject custom HTTP authentication or routing headers per provider.\n* Attach dedicated per-key outbound HTTP\u002FSOCKS5 proxy pools and configure SSRF dispatch guard rules.\n\n## Embedded Dashboard Overview\n\n9RouterX compiles a reactive **Svelte 5 + Vite + Tailwind 4** management interface (built with `shadcn-svelte`, `bits-ui`, and `layerchart`) directly into the Go binary at `http:\u002F\u002Flocalhost:20128` (default password: `123456`):\n\n* **Token Saver & Compression Analytics:** Monitor real-time 20–40% token reduction ratios, RTK compression metrics, **50+ ready-made per-tool output filters**, GCF\u002Ftabular headroom stats, output style directives (`Caveman`, `Ponytail`, `ADHD`, `Anti-Slop`), context squeezer activity, and semantic cache hit rates.\n* **Connections & 1-Click OAuth Manager:** Configure all 155 providers, trigger browser OAuth flows for 28 providers, import Kiro `external_idp` JSON credentials, inspect live model health latency, and assemble multi-tier combo routing presets (`fallback`, `round-robin`, `sticky`, `capacity`, `fusion`).\n* **Per-Key Governance & Custom Usage Ranges:** Issue client API keys (`sk-...`) with daily USD cutoffs enforced at request start, request rate limits, IP whitelists, and custom system prompts; inspect Tremor-style usage charts across `12h`, `14d`, or custom date ranges; and inspect full request\u002Fresponse JSON payloads in the Extended Logging & Payload Inspector.\n\n## Setup Guide Summary and Wiki Documentation\n\nFor advanced deployment and module configuration, refer to the [**Official 9RouterX Documentation & Wiki**](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002F):\n\n* [**Installation, Background CLI & Docker Guide**](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002Finstallation.html) — Custom port configuration (default `20128`), daemon commands (`start`\u002F`stop`\u002F`restart`\u002F`status`\u002F`logs`), autostart on boot, desktop tray mode, and GHCR containers.\n* [**Combo Routing & 3-Tier Failover**](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002F) — Setting up `Subscription → Cheap → Free` cascades plus `fallback`, `round-robin`, `sticky`, `capacity`, and `fusion` strategies.\n* [**Token Saver, RTK Compression & 50+ Tool Filters**](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002F) — Tuning compression aggressiveness, per-tool CLI output filters, GCF tabular compression, Caveman\u002FPonytail\u002FADHD directives, anti-slop rules, and tool-call repair.\n* [**Key Governance, Budgets & Alerts**](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002F) — Configuring daily USD cost cutoffs, plan templates, SSRF\u002FPII guards, multi-target webhooks, and Telegram bot notifications.\n* [**MCP Server, A2A, MITM & TLS Stealth**](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002F) — Connecting Model Context Protocol clients, Agent-to-Agent workflows, inspecting traffic on `http:\u002F\u002Flocalhost:20128`, and syncing encrypted configuration bundles.\n\n## Architecture Comparison\n\nFactual comparison between **9RouterX**, upstream **9router-go**, and the original **9Router (Next.js)**:\n\n| Capability \u002F Metric | **9RouterX** (This Repository) | **9router-go** (Upstream Port) | **9Router** (Original Next.js) |\n| :--- | :--- | :--- | :--- |\n| **Runtime Binary** | **Single Native Go Binary** | Single Native Go Binary | Node.js + Next.js Runtime |\n| **Default Port** | **`20128`** | `20128` | `20128` |\n| **Database Compatibility** | **Drop-in `DATA_DIR\u002Fdb\u002Fdata.sqlite` sharing** | `DATA_DIR\u002Fdb\u002Fdata.sqlite` | `~\u002F.9router\u002Fdb\u002Fdata.sqlite` |\n| **Embedded Dashboard** | **Svelte 5 + Vite + Tailwind 4 (`shadcn-svelte` + `layerchart`)** | Embedded Web UI | Next.js React Web App |\n| **Supported Providers** | **155 Providers (91 API · 28 OAuth · 29 Free · 4 Cookie)** | Core Provider Subset | Core JS Providers |\n| **Cataloged Free Models** | **248 Free Models across 36 Providers (24 Keyless)** | Static Subset | Manual Configuration |\n| **Token Saver Suite** | **20–40% RTK Compression, 50+ Tool Filters, GCF Headroom, Context Squeezer, Tool Repair** | Not Included | Not Included |\n| **Per-Key Governance** | **Daily Cost Cutoff, Request Limits, IP Whitelist, Plan Templates, PII Masking** | Basic Key Auth | Basic Key Auth |\n| **Caching Layer** | **Semantic Cache + Prompt Cache + FastJSON** | Passthrough | Passthrough |\n| **Advanced Modules** | **MCP Server, A2A, TLS Stealth, MITM Inspector, Multi-Target Webhooks, Telegram Bot, Vault** | Core Proxy Routing | Core Proxy Routing |\n| **Supported Platforms** | **5 Platforms** (`linux-x64`, `linux-arm64`, `win32-x64`, `darwin-x64`, `darwin-arm64`) | Go Target Builds | Requires Node.js Environment |\n\n## Frequently Asked Questions (FAQ)\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>1. Does 9RouterX support Claude Code, Cursor, Codex, and Cline?\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nYes. 9RouterX exposes both Anthropic-compatible (`http:\u002F\u002Flocalhost:20128`) and OpenAI-compatible (`http:\u002F\u002Flocalhost:20128\u002Fv1`) endpoints, alongside built-in MCP Server and A2A protocol support. You can connect Claude Code, Cursor, OpenAI Codex CLI, Cline, Roo Code, OpenCode, OpenClaw (use explicit IPv4 `http:\u002F\u002F127.0.0.1:20128`), Antigravity, and Gemini CLI directly to port `20128`.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>2. Is 9RouterX free, and how do the 24 keyless models work?\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nYes. 9RouterX is free and open-source software (MIT License) that runs locally as a single binary with no proxy markup fees. It ships with **29 free-tier providers** and **248 cataloged free models across 36 providers**, including **24 cataloged keyless models** (`antigravity`, `opencode`, `blackbox`) without a user-supplied upstream API key. Antigravity (for example `antigravity\u002Fgemini-3.7-flash-medium`) requires a Google OAuth login once, which is free. Use `oc\u002Fbig-pickle` from OpenCode for a zero-login test. Create a local 9RouterX gateway key in Settings → API Keys → Create Key (`http:\u002F\u002Flocalhost:20128`, default password `123456`) before making API requests; 0 keys returns `401 Authentication required`.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>3. How is 9RouterX different from LiteLLM or OpenRouter?\u003C\u002Fstrong>\u003C\u002Fsummary>\n\n* **Versus OpenRouter:** OpenRouter is a cloud intermediary that adds per-token markup fees and routes prompts through external third-party servers. 9RouterX runs **100% locally on your machine** as a single binary with zero markup.\n* **Versus LiteLLM:** LiteLLM requires a Python environment; advanced budget\u002Fusage tracking needs external databases (PostgreSQL\u002FRedis). **9RouterX** compiles a full AI gateway, **Svelte 5 dashboard**, **20–40% Token Saver suite (with 50+ per-tool filters)**, **semantic cache**, **per-key USD budget cutoffs checked at request start**, and **28 one-click OAuth flows** into a **single zero-dependency Go binary** backed by an embedded SQLite file.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>4. How does the 20–40% Token Saver work without breaking code generation?\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nAI coding agents consume massive context windows when reading CLI outputs, directory listings, and tool responses. 9RouterX's `tokensaver` and `compression` modules apply RTK compression, **50+ ready-made per-tool output filters** (`git diff`, `grep`, `docker logs`, `npm install`, `terraform plan`), GCF tabular headroom compression, context squeezing, output style directives (`Caveman`, `Ponytail`, `ADHD`), and anti-slop rules to tool outputs in transit—cutting 20–40% of token volume while repairing malformed JSON tool calls automatically.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>5. Can I migrate from 9Router or 9router-go without losing my keys and combos?\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nYes. 9RouterX shares the exact same default port (`20128`) and SQLite database schema (`DATA_DIR\u002Fdb\u002Fdata.sqlite`). Stop your existing 9Router instance and start 9RouterX—all providers, OAuth connections, combos, client API keys, and usage statistics carry over immediately without migration scripts.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>6. What happens when my primary AI subscription hits a rate limit?\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nWhen a request hits a `429` rate limit, quota exhaustion, or upstream `5xx` error, 9RouterX's `resilience` circuit breaker and `modelhealth` probes automatically cascade the request through your configured combo tier (**Subscription OAuth → Cheap API Key → Free-Tier \u002F Keyless**) without dropping your active coding session.\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cstrong>7. How do I run 9RouterX in the background or update to the latest release?\u003C\u002Fstrong>\u003C\u002Fsummary>\n\nUse the built-in daemon commands: `9routerx start`, `9routerx status`, `9routerx restart`, `9routerx logs -n 100`, and `9routerx stop`. To update, run `npm install -g 9routerx@latest`, `9routerx update`, or pull the latest GHCR container (`ghcr.io\u002Fyanstd888\u002F9routerx:latest`).\n\u003C\u002Fdetails>\n\n## Contributing\n\nIssues and pull requests use templates, so pick the right one rather than opening a blank report:\n\n- **Bug report** — something behaves incorrectly. Include a reproduction, `9routerx version`, OS, and the log excerpt around the failure.\n- **Feature request** — the problem you cannot solve today, the surface it touches, and whether upstream already has it.\n- **Question** — configuration and usage help.\n\nPRs follow the checks CI runs: `go vet .\u002F...`, `go test -count=1 .\u002F...`, `make test-integration`, plus `cd web && bun test` and `make vet-svelte` for anything touching the dashboard. Before writing code, skim [`AGENTS.md`](AGENTS.md) — provider isolation and the Go\u002FSvelte conventions keep reviews fast.\n\n## Docs\n\n**Full documentation, searchable:** [**9routerx Wiki**](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002F) — installation, usage, API reference, dashboard, providers, governance, architecture, database, CLI, and a screenshot gallery. Every page supports `?q=` search and `#section` deep links.\n\nRepository references:\n\n- [`ARCHITECTURE.md`](ARCHITECTURE.md) — routing, providers, runtime layout\n- [`DATABASE.md`](DATABASE.md) — SQLite schema & operator contract\n- [`CHANGELOG.md`](CHANGELOG.md) — release history. Work merged since the last tag lives in `.changes\u002F` fragments and is folded in at the next release; the dashboard's changelog modal shows both. Check what you are running with `9routerx version`.\n\n## Acknowledgments\n\n| Repository | Stars | Contribution to 9RouterX |\n|---|---|---|\n| [decolua\u002F9router](https:\u002F\u002Fgithub.com\u002Fdecolua\u002F9router) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fdecolua\u002F9router?style=social) | the original Next.js gateway & dashboard that 9RouterX preserves compatibility with (same SQLite data dir, no-migration upgrade path) |\n| [luqman-v1\u002F9router-go](https:\u002F\u002Fgithub.com\u002Fluqman-v1\u002F9router-go) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fluqman-v1\u002F9router-go?style=social) | the Go + Svelte port 9RouterX continues from; gateway core, provider lanes, CLI |\n| [serenhope\u002F9router](https:\u002F\u002Fgithub.com\u002Fserenhope\u002F9router) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fserenhope\u002F9router?style=social) | per-key governance, token-saver suite, security log, web executors, dashboard features ported into 9RouterX |\n| [cheaper-inference\u002FOmniRoute](https:\u002F\u002Fgithub.com\u002Fcheaper-inference\u002FOmniRoute) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fcheaper-inference\u002FOmniRoute?style=social) | SSRF dispatch guard + PII masking, routing strategies, circuit breaker, multi-target webhooks, Tremor-style data-viz patterns |\n| [router-for-me\u002FCLIProxyAPI](https:\u002F\u002Fgithub.com\u002Frouter-for-me\u002FCLIProxyAPI) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Frouter-for-me\u002FCLIProxyAPI?style=social) | Kiro `external_idp` auth JSON importer (port of their auth format, see `internal\u002Fhandlers\u002Foauth\u002Fkiro_external_idp.go`) |\n| [rtk-ai\u002Frtk](https:\u002F\u002Fgithub.com\u002Frtk-ai\u002Frtk) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Frtk-ai\u002Frtk?style=social) | the request-side token-compression concept behind the RTK Token Saver (20-40% input savings) |\n| [headroomlabs-ai\u002Fheadroom](https:\u002F\u002Fgithub.com\u002Fheadroomlabs-ai\u002Fheadroom) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fheadroomlabs-ai\u002Fheadroom?style=social) | GCF\u002Ftabular compression concepts ported into `internal\u002Fcompression\u002Fgcf` and `internal\u002Fheadroom` |\n| [JuliusBrussee\u002Fcaveman](https:\u002F\u002Fgithub.com\u002FJuliusBrussee\u002Fcaveman) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FJuliusBrussee\u002Fcaveman?style=social) | the terse-output style directive (Caveman mode, `internal\u002Ftokensaver\u002Fcaveman.go`) |\n| [DietrichGebert\u002Fponytail](https:\u002F\u002Fgithub.com\u002FDietrichGebert\u002Fponytail) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002FDietrichGebert\u002Fponytail?style=social) | the structured-output style directive (Ponytail mode) |\n| [ayghri\u002Fi-have-adhd](https:\u002F\u002Fgithub.com\u002Fayghri\u002Fi-have-adhd) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fayghri\u002Fi-have-adhd?style=social) | the scannable\u002Fbulleted output style (ADHD mode) |\n| [miqdadbadjuber\u002Fanti-slop](https:\u002F\u002Fgithub.com\u002Fmiqdadbadjuber\u002Fanti-slop) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fmiqdadbadjuber\u002Fanti-slop?style=social) | antislop injector rules bundled in `internal\u002Ftokensaver\u002Fantislop` with their original text and attribution preserved |\n| [huntabyte\u002Fshadcn-svelte](https:\u002F\u002Fgithub.com\u002Fhuntabyte\u002Fshadcn-svelte) | ![stars](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fstars\u002Fhuntabyte\u002Fshadcn-svelte?style=social) | the dashboard component layer (chart, table, tooltip, separator via bits-ui + layerchart) |\n\n9RouterX stands on this lineage — thank you to the upstream maintainers and their communities for the gateway, the port, and the ideas this project builds on. The complete three-layer ownership inventory (inherited \u002F ported \u002F original) lives in [ATTRIBUTION.md](ATTRIBUTION.md), and everyone whose commit landed in the repository is credited on the wiki's [**Owner & Contributors**](https:\u002F\u002Fyanstd888.github.io\u002F9routerx\u002Fteam.html) page.\n\n## License\n\nMIT License — see [`LICENSE`](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F9routerx\u002Fblob\u002Fmain\u002FLICENSE).\n\n---\n\n## Attribution\n\n**9RouterX — all source code port and modification by [yanstd888](https:\u002F\u002Fgithub.com\u002Fyanstd888\u002F) — [t.me\u002Faiclub_id](https:\u002F\u002Ft.me\u002Faiclub_id).**\n\nThis repository is an independent Go + Svelte port of [9Router](https:\u002F\u002Fgithub.com\u002Fdecolua\u002F9router) (MIT); all port and modification work is by Muhammad Dian (yanstd888). Re-hosting this code without the LICENSE copyright notice and this attribution violates the MIT license terms. For the full file-by-file ownership breakdown, see [`ATTRIBUTION.md`](ATTRIBUTION.md).\n","9RouterX 是一款用 Go 编写的单二进制本地 AI 路由网关，提供 OpenAI\u002FAnthropic 兼容的统一 API 接口，支持在 155 家 AI 服务商（含 248 个免费模型、24 个免密模型）间智能路由请求。核心功能包括多级故障转移（订阅→低价→免费）、响应内容 Token 节省（20–40%）、语义缓存、Prompt 压缩及 MCP 协议支持。适用于开发者本地部署轻量级 LLM 网关、降低 API 成本、统一接入多个免费\u002F付费模型，以及为 Claude Code、Cursor 等 AI 编程工具提供后端代理。",2,"2026-11-24 04:40:19","CREATED_QUERY"]