cd /news/ai-agents/show-hn-nexus-local-runtime-for-ai-a… · home › topics › ai-agents › article
[ARTICLE · art-180279] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=↑ positive

Show HN: Nexus – Local runtime for AI agents with checkpoint rollback

A developer released Nexus, a local runtime for AI agents that adds persistent task state, checkpoints and rollback, an action-ledger write-ahead log, a token guardrail and three meta-tools spanning 330 canonical capabilities, with installers for Windows (.exe), macOS (.dmg) and Linux (.deb/.AppImage) on GitHub. Nexus connects web AI assistants such as ChatGPT via a built-in MCP tunnel, local open-source models through compatible MCP clients, and native MCP coding agents including Claude Code and OpenCode over Streamable HTTP MCP, executing tools against ComfyUI, Blender, Unity, Playwright, Git repositories and terminals on the user's own machine. Since v1.5.1, requests to the local MCP gateway at http://127.0.0.1:8787/mcp may omit the token only when they come from the loopback address with no tunnel or proxy forwarding headers, and the project recommends starting new clients on the default Read-Only access level.

key takeaway

Nexus exposes 330 canonical capabilities through three meta-tools and keeps agent state in an action-ledger WAL with checkpoint rollback, so agents can resume and undo tasks outside the chat window; since v1.5.1 its local MCP gateway accepts token-less requests only from loopback with no forwarding

read16 min views53 publishedDec 2, 2026
Show HN: Nexus – Local runtime for AI agents with checkpoint rollback
Image: Michielbdejong (auto-discovered)

The Local Execution Layer for AI

Persistent execution with checkpoints and rollback for web AI, local LLMs, and MCP agents, on your own machine.

Action Ledger WAL · Checkpoint Rollback · Persistent Tasks · Token Guardrail · 3 Meta-Tools · 330 Canonical Capabilities · User-Controlled Security

Download Nexus · Quick Start · Watch Demos

Three Meta-Tools · Showcase · Limitations · WebAgent · Privacy · License

Nexus separates AI model reasoning from local tool execution. It connects browser-based AI assistants, local open-source models (via compatible MCP clients), and native MCP coding agents to a shared, user-governed execution environment—covering ComfyUI, Blender, Unity, Playwright, Git repositories, terminals, and external MCP servers.

Nexus is a local runtime that keeps tasks, memory and rollback state outside the chat window. MCP is one of the ways AI clients reach it.

Nexus brings together four complementary layers:

  • Universal Connectivity — Connect supported web AI assistants, local LLMs, and native MCP clients.
  • Execution Intelligence — Discover, compose, and execute tools through a context-efficient 3-meta-tool architecture.
  • Persistent Runtime — Maintain task state, project memory, checkpoints, and reusable skills beyond individual conversations.
  • Real-World Capabilities — Operate development environments, desktop applications, browsers, creative software, and external MCP services.

Nexus does not replace your favorite AI. It extends what your AI can actually do.

AI / Client Integration Method Notes
ChatGPT MCP Tunnel (built into Nexus) OpenAI tunnel, outbound only; see ChatGPT setup
Google AI Studio WebAgent Direct local workspace & script execution
Gemini WebAgent Supported browser workflows
DeepSeek / Kimi / Qwen / Z.ai / Duck.ai WebAgent Browser-to-local execution
OpenCode Streamable HTTP MCP Cloud models and local Ollama / LM Studio models
Claude Code Streamable HTTP MCP One-line claude mcp add setup
Cursor / Windsurf / Antigravity / Codex CLI Streamable HTTP MCP Standard mcpServers JSON or CLI setup
Local Open-Source LLMs Compatible MCP Clients Connect Ollama, LM Studio, or vLLM via OpenCode, Cline, or Roo Code

Integration notes are based on each client's documented MCP support; not every client listed has been tested end to end.

First, pick your way in — the options below are three doors into the same local runtime: Option A installs the desktop app (Nexus Control Center), Option B connects your AI client (ChatGPT via the built-in MCP tunnel, other web AIs via WebAgent, or MCP clients such as OpenCode and Claude Code), and Option C builds from source. Choose the one that matches how you work, then follow its steps.

  1. Download the latest installer from GitHub Releases (.exe for Windows,.dmg for macOS,.deb /.AppImage for Linux).
  2. Launch Nexus Control Center . The bundled runtime, MCP gateway (http://127.0.0.1:8787/mcp ), and background runner start automatically.

Security Tip: Start with Read-Only (default) when testing a new client or lightweight local model. Verify your workspace boundaries before enabling Read & Write or Full Control.

Access rules for /mcp (since v1.5.1): a request may omit the token only when it comes from this machine (loopback address, no tunnel or proxy forwarding headers, loopback Host) and its browser origin, if any, is the WebAgent extension, the desktop app, a loopback page or a supported AI site. WebAgent uses this path. Everything else needs a token. lb_ token scopes are enforced on both 8787 and 18080: a Read-Only token cannot call write tools, and a Read & Write token cannot run scripts or commands. Requests without a token are not scope-limited, so any program on your machine, or a script on a supported AI site if that site were compromised, can use Nexus fully while it runs. Details: HTTP_ROUTES.md.

  1. Authorize a workspace : InNexus Control Center → Workspace → Projects , clickAuthorize Project and select your folder (start withread-only to test).
  2. Copy your local token : Go toSettings → AI Connections , select**Read-Only (Default)** (or Read & Write /Full Control once verified), and copy thelb_... token.

OpenCode (Cloud or Local Ollama / LM Studio Models):

opencode mcp add nexus --url http://127.0.0.1:8787/mcp --header "Authorization=Bearer <YOUR_NEXUS_TOKEN>"
opencode mcp list

Claude Code:

claude mcp add --transport http nexus http://127.0.0.1:8787/mcp --header "Authorization: Bearer <YOUR_NEXUS_TOKEN>"
claude mcp list

Standard MCP Clients (mcpServers JSON — Cursor / Windsurf / Cline):

{
  "mcpServers": {
    "nexus": {
      "url": "http://127.0.0.1:8787/mcp",
      "headers": {
        "Authorization": "Bearer <YOUR_NEXUS_TOKEN>",
        "MCP-Protocol-Version": "2024-11-05"
      }
    }
  }
}

WebAgent (Browser AI):

WebAgent is the companion browser extension that connects web AI chats to Nexus. Install it in Chrome / Edge, open a supported web AI — DeepSeek, Gemini, AI Studio, Kimi, Qwen, Z.ai or Duck.ai — and the extension links that chat to your local Nexus runtime at http://127.0.0.1:8787, so the AI can work in the workspace you authorized. Nexus runs on your machine and does not upload your files itself; WebAgent is only the bridge between the chat and the runtime. The AI service you chat with still receives whatever content the model reads or returns. The full, up-to-date list of supported sites lives in the WebAgent repository. ChatGPT does not use WebAgent; see below.

  1. Install WebAgent in Chrome / Edge.
  2. Confirm the endpoint in WebAgent settings is http://127.0.0.1:8787 , then open your web AI tab.
  3. Verify the connection : ask the web AI to list the files in your authorized workspace folder. If it answers with the real listing, you are connected.

ChatGPT connects to Nexus directly, without WebAgent. The desktop app ships OpenAI's tunnel client, which makes only outbound connections to OpenAI's tunnel service; you do not expose a port to the internet and do not need ngrok or cloudflared. Full guide with screenshots: Tutorial 05, section 6.

  1. At OpenAI, create an API key at platform.openai.com/api-keys and a tunnel atplatform.openai.com/settings/organization/tunnels (you get a Tunnel ID starting withtunnel_ ).
  2. In Nexus, open Settings → AI Connections → ChatGPT & Tunnel , pick token scopes (start withRead-Only ), and clickAuto-Generate Token & Save to DPAPI .
  3. Click Configure Tunnel , enter the Tunnel ID and the API key asRuntime API Key , clickSave & Connect , thenTest Readiness until it showsChatGPT Ready . If you need a proxy, pickSystem Proxy orCustom Proxy under Outbound Network.
  4. In ChatGPT, open Plugins → Add → Add custom MCP server , name itNexus , chooseTunnel and your tunnel, setAuthentication toNo authentication , accept the warning and clickCreate as a plugin .

Security: ChatGPT can reach Nexus only through the tunnel in your own OpenAI organization. From v1.5.1, a request that arrives through a tunnel or proxy must carry a valid token: without one it gets 401 MISSING_TOKEN (or 403 ORIGIN_NOT_ALLOWED if it does not come from an allowed origin or the ChatGPT connector), with an unknown one 401 TOKEN_NOT_FOUND. A request with an lb_ token is limited to that token's scopes; for example, a Read-Only token calling a write tool gets 403 with MCP_SCOPE_DENIED. While a Full Control (Extended) session is active (the session mode, not the Full Control token preset), the token temporarily has full permissions. Anyone who can use your ChatGPT account can call these tools within the token's scopes. The Runtime API Key and the token are stored with Windows DPAPI and passed only to the tunnel client. Stop Tunnel stops it on its own; closing the Nexus main window shuts down Nexus and the tunnel. On Windows 11 with a 1.5.0 build (December 2, 2026), ChatGPT discovered tools, listed projects and ran actions through the tunnel, and every forwarded request carried the lb_ token. Requests with any X-Forwarded-* header count as forwarded and need a token.

For this example, authorize a dedicated test workspace with Read & Write permissions and enable the required code execution permissions. Then send this prompt to your AI client:

Create a small Python application with app.py, README.md, and config.json in a single local workflow. Run the application, verify its output, introduce a deliberate code error, restore the previous working version, and re-run app.py to verify recovery.

This exercises local scripting, filesystem operations, command execution, SHA-256 concurrency protection, and rollback in one workflow.

  • Unauthorized / 403 / scope errors (lb_... token) : Confirm the bearer token is active in the Desktop Control Center and that its authorized workspace and capability scopes include the target folder or action.
  • Port 8787 or 18080 already in use :8787 is the external MCP Gateway / WebAgent port and18080 is the internal Core Server port. Stop any lingering instance or overrideNEXUS_BRIDGE_PORT /NEXUS_CORE_URL before launching.
  • The ChatGPT tunnel page shows a Local Endpoint on 18080 : that is the address the tunnel client uses inside your machine. All other clients keep usinghttp://127.0.0.1:8787/mcp .
  • Client cannot reach http://127.0.0.1:8787/mcp : Verify the Nexus desktop app or local runner is running, and ensure local firewall rules or proxy settings are not blocking127.0.0.1 loopback traffic.
  • macOS says Nexus can't be opened on first launch : The macOS builds are not notarized yet. Right-click (or Control-click)Nexus in Applications and chooseOpen , then confirm. You only need to do this once.
  • Blank window on Linux (AppImage) : Fixed for the reported Wayland setup (#7 ). If you still see it, open an issue with your distro, desktop session and startup log.

Prerequisites: Node.js >= 24, pnpm >= 10, Rust stable.

git clone https://github.com/ysunyang4/Nexus.git
cd Nexus
pnpm install
pnpm run build
pnpm --filter @localbridge/desktop dev
  • OpenCode + Nexus + Skill*(1-line setup, single-turn nexus_run_script, and SHA-256 verified localbridge_file_restore)* :

nexus.mp4 #

  • ChatGPT Web → Live Local VS Code Workspace*(recorded with the WebAgent extension, before ChatGPT moved to the MCP tunnel)* :

chatgpt.x.nexus_compressed.mp4 #

  • Google AI Studio → Live Code Generation, Execution & Rollback :

aistdio.x.nexus_compressed.mp4 #

Nexus Control Center: Engine status, MCP gateway readiness, runner state, and authorized workspaces.

| AI Connections & Token Scopes DPAPI-secured local tokens with Read-Only, Read & Write, and Full Control presets. | Skills Center & Hot-Reload Modular SKILL.md workflows paired with Nexus MCP. | | WebAgent Browser Bridge Connect Gemini, AI Studio, and DeepSeek web tabs to your local workstation. | MCP Plugin Center Unify ComfyUI, Blender, Unity, Playwright, and external MCP servers under one gateway. |

More tools should not mean more context overhead. Nexus exposes 330 capabilities through three universal meta-tools:

Meta-Tool Purpose
nexus_discover_tools Search relevant capabilities and compact signatures on demand
nexus_execute_action Execute a targeted operation or controlled orchestrator
nexus_run_script Compose and execute multi-step Python / Node.js workflows locally

Powerful AI execution should not require massive context windows. Through its three-meta-tool architecture, local scripting, structured results, and persistent project memory, Nexus reduces the operational complexity that local and lightweight models must handle.

Mechanism illustration (conceptual comparison, not a benchmark measurement):

Traditional Step-by-Step Tool Calling         Nexus Local Batch / Script Mode
─────────────────────────────────────         ───────────────────────────────
AI requests file read                         AI submits multi-step script
  └─▶ returns full file content                 └─▶ Nexus executes locally:
AI requests file edit                                 • reads file & passes contentHash
  └─▶ returns edit result                             • edits file with CAS protection
AI requests test run                                  • runs tests & inspects output
  └─▶ returns raw test logs                     └─▶ returns concise summary to AI
AI evaluates result
  • T13 paired comparison (Antigravity + Gemini 4 Hydrogen Medium, Windows 11) : Same model, run against Nexus v1.4.3 in two separate clean sandbox subdirectories (t13_native vst13_nex ). Measured on v1.4.3. Later releases changed the script runner; these numbers have not been re-measured on the latest version.

    • Task (T13) : Create 5 files (f1.txt –f5.txt ) with 1 line each, read all 5 files, count total lines, and writesummary.txt .
    • Native mode (t13_native) : 11 tool calls, 252 returned characters.
    • Nexus mode (t13_nex, nexus_run_script) : 1 tool call, 19 returned characters.
  • Separate workflow demo (OpenCode 1.19.3 + DeepSeek V4.1 Flash, Windows 11) : Verified a single-turn multi-file script + rollback workflow (separate from the T13 paired comparison).

  • Not yet tested : Systematic quantitative benchmarking on localOllama 7B/8B models has not been completed. See**docs/BENCHMARKS.md** for full details.

  • AI Software Engineering : Codebase analysis, CAS-protected multi-file edits (expectedHash ), builds, tests, Git worktree isolation, LSP symbol navigation, andlocalbridge_file_restore / checkpoint rollback.

  • AI Computer Use & Browser Automation : Windows desktop interaction (WinRT OCR, UI Automation, human takeover and execution interruption controls) and Playwright browser automation.

  • Creative & External MCP Workflows : Unified access toComfyUI, Blender, Unity , documents, and external MCP servers.

| Clean Quad Topology Optimized edge flow and non-destructive modifiers. | Procedural Hard-Surface & PBR Real-time procedural glass and liquid shaders. |

| AI Game Developer Tab & Shaders Interactive shader parameter tuning inside Unity. | Scene Hierarchy & Simulation Automated GameObject hierarchy and camera setup. |

  • Nexus : The product and Desktop Control Center application.

  • LocalBridge (@localbridge/*, lb_...) : The underlying workspace packages, local runner daemon, and MCP client token prefix.

  • nx-xxxxxxxx : Short handle prefix generated by nexus_session_handoff for cross-session resumption.

  • Schema-Validated Execution : 330 canonical tools defined in@localbridge/protocol with strict input schemas and behavior hints.

  • WAL-Based Action Ledger & Recovery : Pre-execution logging for crash recovery, idempotent replay,localbridge_file_restore , and checkpoints.

  • Persistent Intelligence & Secret Redaction : SQLite memory with automatic, pattern-based credential redaction before disk persistence (pattern matching does not guarantee detection of every credential format), plusnx-xxxxxxxx handoff handles.

  • Command Risk & Path Sandboxing : AST command classification (SAFE ,CAUTION ,DANGEROUS ), Windows Job Objects,fs.realpathSync.native canonical containment, symlink/junction escape prevention, and sensitive file masking (.env* ,*.pem ,*.key ).

  • Local HTTP Routes : Some local routes do not require a token and are protected by origin and Host checks instead. SeeHTTP_ROUTES.md andTHREAT_MODEL.md , and check thatGlobal MCP Safety showsPROTECTED on theMCP Servers page of the desktop app.

  Web AI (WebAgent)   |   Local Open-Source LLMs   |   Native MCP Clients (OpenCode / Claude Code / Cursor)
                                          │
                                          │ Streamable HTTP (http://127.0.0.1:8787/mcp)
                                          │
                                          │      ChatGPT ── OpenAI tunnel (outbound only) ──► 127.0.0.1:18080/mcp
                                          ▼
┌────────────────────────────────────────────────────────────────────────┐
│                   Nexus Desktop Control Center (Tauri 2)               │
│  Integrated MCP Gateway (8787) · Internal Core Server (18080) · SQLite │
└──────────────────────────────────┬─────────────────────────────────────┘
                                   │ Bidirectional JSON-RPC 2.0 (WebSocket)
                                   ▼
┌────────────────────────────────────────────────────────────────────────┐
│                   Nexus Local Runner Daemon                            │
│  330 Canonical Tools · Action Ledger WAL · Worktrees · LSP · Skills    │
│  Windows Computer Use · Browser Engine · External MCP Providers        │
└────────────────────────────────────────────────────────────────────────┘

(Note: 127.0.0.1:8787 is the external MCP gateway endpoint; 127.0.0.1:18080 is the internal Core Server / Control Center API port.)

Nexus/
├── apps/
│   ├── desktop/          # Tauri 2 + React + Vite Desktop Control Center
│   ├── runner/           # Local execution daemon (330 tools, Action Ledger, Computer Use)
│   ├── server/           # Fastify Core Server (18080) & MCP Gateway (8787)
│   └── bridge/           # Nexus MCP Bridge & 3-meta-tool gateway
├── packages/
│   ├── protocol/         # Protocol types, 330 Canonical tool definitions, RPC schemas
│   ├── security/         # Sandboxing, path verification, and command risk engine
│   └── shared/           # Structured logger (Pino), config , crypto utilities
├── tests/                # Compliance, contract, and runtime test suites
├── docs/                 # Benchmarks, architectural specs, and guides
└── scripts/              # Build automation, bundling tools, and release scripts
  • Primary Test Environment : Live hardware and end-to-end verification was primarily performed onWindows 11 .
  • Platform-Specific Features : Windows UI Automation, WinRT OCR, and DPAPI credential storage are Windows-only (N/A on macOS/Linux).
  • External Software Plugins : Blender and Unity integrations require installing their respective editor plugins/bridges.
  • Local Small Models : Systematic quantitative benchmarks on localOllama 7B/8B models have not been run yet.
Capability Windows macOS Linux
MCP Gateway & 3 Meta-Tools Supported Builds published (reported working by users) Builds published (reported working by users)
Local Runner & Filesystem / Git / LSP Supported Builds published (reported working by users) Builds published (reported working by users)
Persistent Memory & Session Handoff Supported Builds published (reported working by users) Builds published (reported working by users)
Windows UI Automation & WinRT OCR Supported N/A N/A
DPAPI Credential Vault Supported N/A N/A
Blender / Unity MCP Plugin-dependent Plugin-dependent Plugin-dependent

macOS and Linux builds are published on the Releases page and are in community use. Reported issues are tracked on GitHub Issues. The author's own end-to-end verification is on Windows 11, as noted above.

pnpm run typecheck
pnpm run build
pnpm run test
cargo check --manifest-path apps/desktop/src-tauri/Cargo.toml

If Nexus has accelerated your workflow, voluntary donations help sustain open-source maintenance:

🟢 WeChat Pay 🔵 Alipay 🟡 Binance Pay ☕ Ko-fi
Method Network / Platform Address / Account Notes
USDT (on-chain) TRON (TRC-20) TPRrDW8DGsrDmcnWvanTbFz7XEJuywu21i Send only on the TRON (TRC-20) network
Binance Pay Internal Transfer UID: 1292741809 Internal transfer between Binance users
Ko-fi Web (PayPal) https://ko-fi.com/ryansun Buy me a coffee
  • License (GNU AGPL-3.0) : Nexus is distributed under the GNU Affero General Public License v3.0 (AGPL-3.0-only ). SeeBrand Guidelines andTHIRD_PARTY_NOTICES.md for branding and dependency notices.
  • WebAgent (GPL-3.0) : WebAgent, the browser extension, is a separate project licensed under GPL-3.0; seeits repository .
  • Security (SECURITY.md) : Nexus defaults toread-only access with command executiondisabled ;safe-only mode runs only inspection commands and SAFE tests, andproject-code runs most toolchain commands, including shells, without per-command approval (seeTHREAT_MODEL ). If you explicitly enableread-write ,project-code , or Unrestricted Mode, you assume responsibility for commands executed and files modified.

Nexus is dual licensed.

  • AGPL-3.0 (free): anyone, including companies, can use Nexus for personal or commercial purposes at no cost. If you modify Nexus and distribute it, or let users interact with a modified version over a network, the AGPL-3.0 requires you to make the source of that modified version available to those users under the same license.
  • Commercial license (paid): for companies that want to build Nexus into a closed-source or proprietary product, or keep their modifications private, without the AGPL-3.0 source-sharing obligations. Terms are agreed case by case. Contact the author atysunyang4@gmail.com .

Dual licensing is possible because the author holds the copyright to the Nexus code. Outside contributions may require a Contributor License Agreement (CLA) before they can be merged, so that the project can continue to offer both licenses.

If Nexus is useful to you, you can support its development on Ko-fi.

This section is general information only. It does not set prices or terms and is not legal advice.

── more in #ai-agents 4 stories · sorted by recency
── more on @nexus 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-nexus-local-…] indexed:0 read:16min 2026-12-02 · —