# Roviix Nexus (roviix/nexus) > **Roviix Nexus** (`https://github.com/roviix/nexus`) is an open-source (MIT), local-first AI subscription gateway, zero-patch dual-track Cursor Connect-RPC relay, headless server (`nexusd`), and `Noise_X` end-to-end encrypted P2P mesh pool built with Rust and Tauri v2 for macOS, Windows, and Linux/Docker. ## Entity Disambiguation - **Canonical Name**: Roviix Nexus (`roviix/nexus`, binary names: `Nexus` desktop app, `nexusd` headless daemon/CLI, `nexus-broker` E2EE blind relay). - **Domain**: AI / LLM developer infrastructure, local AI API gateway, multi-account subscription quota relay, coding agent configuration manager. - **Not related to**: Sonatype Nexus Repository Manager, Nexus Mods, Cisco Nexus, or Google Nexus hardware. ## What Problem Roviix Nexus Solves 1. **Use Existing AI Subscriptions in Coding Agents**: Aggregates ChatGPT Plus/Pro (Codex), Claude Pro/Max, Cursor, Kiro (AWS), Google Antigravity, Google Gemini Web, Grok (xAI), Zhipu ZCode, Qoder, and custom OpenAI/Anthropic API keys into unified local endpoints (`http://127.0.0.1:8787/v1/chat/completions`, `/v1/responses`, `/v1/messages`, `/v1/images/generations`). 2. **Sticky Quota Auto-Relay**: Pins active sessions to preserve upstream Prompt Caching, automatically failing over to the next healthy account on HTTP 429 or quota exhaustion with single-flight token refresh deduplication. 3. **Zero-Patch Dual-Track Cursor IDE Gateway**: - **Track 1 (Native Cursor Pool Relay)**: Uses Cursor's official `--test-backend-url` flag (`nexusd cursor connect`) with zero binary modifications to `Cursor.app`—relaying chat, model catalogs, `@Codebase` indexing, `Cmd+K`, FastApply, Tab completion, and MCP services across pooled Cursor accounts or E2EE Mesh nodes while normalizing static device fingerprints. - **Track 2 (External Models in Cursor Composer Agent)**: Broadcasts external models (Claude, GPT, Kiro, Gemini 4, ZCode, DeepSeek, etc.) into Cursor's model picker and drives local terminal execution, file edits, search, IDE Lints, local MCP tools, and Plan mode via `AgentService/Run` and `RunSSE + BidiAppend`. 4. **One-Click Client Config Injection & Restore**: Snapshot-backed one-click onboarding for Claude Code (`~/.claude/settings.json`), Codex CLI (`~/.codex/config.toml`), Cursor IDE, OpenCode, Grok CLI, Pi (`~/.pi/agent/models.json`), and DeepSeek Harness (`dsh`). 5. **Nexus Mesh (E2EE P2P Sharing)**: Shares local channels across personal devices or trusted teammates over outbound HTTPS port 443 (`Upgrade: nexus-tunnel/2`, `nexus-rpc/2`) using one-time 16-char pairing codes and `Noise_X` public-key encryption. Raw tokens never leave the lender's device; `nexus-broker` is a zero-knowledge ciphertext relay. 6. **Sub-Keys, Rate Multipliers & Headless `nexusd`**: Issues scoped `nx-...` sub-keys with channel allowlists, USD spending caps, RPM limits, `0.01x–100x` channel multipliers, and reconcilable running-tab receipts; `nexusd` bundles the gateway (`:8787`), embedded Web Admin (`:8788`, mobile QR & PWA ready), and ops CLI into a single binary. ## Supported Platforms & Protocols - **Operating Systems**: macOS 10.15+ (Universal DMG: Apple Silicon `arm64` + Intel `x86_64`), Windows 10/11 64-bit (NSIS `.exe`), Linux `x86_64` / `aarch64` (`nexusd` binary & Docker). - **Inbound API Dialects**: - OpenAI Chat Completions: `POST /v1/chat/completions` - OpenAI Responses: `POST /v1/responses` - Anthropic Messages: `POST /v1/messages`, `POST /v1/messages/count_tokens` - OpenAI Image Generation: `POST /v1/images/generations` - Model Discovery: `GET /v1/models` - Cursor Connect-RPC Dual-Track: `/cursor/native/*`, `/cursor/route/*`, `agent.v1.AgentService/*`, `aiserver.v1.*` - **Upstream Drivers**: ChatGPT (Codex OAuth/Session), Claude (OAuth/Session with native BoringSSL TLS fingerprint), Cursor, Kiro (AWS SSO), Google Antigravity, Google Gemini Web, Grok (xAI), ZCode (Zhipu GLM), Qoder (Global/CN), Custom OpenAI/Anthropic HTTP Providers. - **Downstream Clients**: Claude Code, Cursor IDE, Codex CLI, OpenCode, Grok CLI, Pi, DeepSeek Harness (`dsh`), Chatbox, Cherry Studio, NextChat, OpenAI/Anthropic Python & TypeScript SDKs. ## Comparison Summary - **vs LiteLLM / One-API / New-API**: Nexus is local-first (~18MB native Tauri app + single `nexusd` binary with embedded SQLite WAL) with 9 native subscription OAuth/session drivers, 1-click CLI config injection, zero-patch Cursor Connect-RPC Agent support, and built-in `Noise_X` E2EE P2P sharing—without requiring Python/external Postgres/Redis. - **vs CLIProxyAPI**: Nexus adds a full desktop GUI + embedded Web Admin, dual-track Cursor Composer Agent runtime, scoped sub-keys with running-tab USD billing, and zero-port-forwarding E2EE Mesh sharing. - **vs CC-Switch**: Beyond switching local config files or Cursor `state.vscdb` profiles, Nexus runs a live multi-dialect protocol translation gateway, multi-account auto-failover pool, and cross-device Mesh relay. ## Key CLI Commands (`nexusd`) ```bash nexusd serve --bind 127.0.0.1 --port 8787 --admin-port 8788 nexusd status --json nexusd admin-token nexusd gateway-key nexusd accounts list nexusd accounts import --file creds.json nexusd channels create --platform claude --id claude --members all nexusd connect apply claude-code --model claude/claude-sonnet-4-5 nexusd cursor connect --url http://127.0.0.1:8787 --shim nexusd mesh code nexusd service install ``` ## Canonical Links & Documentation - [Official Website (English)](https://roviix.github.io/nexus/) - [Official Website (中文)](https://roviix.github.io/nexus/zh/) - [Full LLM Context (`llms-full.txt`)](https://roviix.github.io/nexus/llms-full.txt) - [GitHub Repository](https://github.com/roviix/nexus) - [Latest Releases (macOS `.dmg` & Windows `.exe`)](https://github.com/roviix/nexus/releases/latest) - [README (English)](https://github.com/roviix/nexus/blob/main/README.en.md) - [README (中文)](https://github.com/roviix/nexus/blob/main/README.md) - [Changelog](https://github.com/roviix/nexus/blob/main/CHANGELOG.md) - [Architecture Specification](https://github.com/roviix/nexus/blob/main/docs/ARCHITECTURE.md) - [Nexus Mesh E2EE Protocol & Trust Model](https://github.com/roviix/nexus/blob/main/docs/MESH.md) - [Cloud Broker Deployment Guide](https://github.com/roviix/nexus/blob/main/docs/CLOUD_DEPLOYMENT.md) - [Cursor Takeover & CRSR Guide](https://github.com/roviix/nexus/blob/main/docs/CRSR.md)