Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5b2f046
fix(install): manage openshell gateway user service
sandl99 Jul 15, 2026
38e2505
fix(uninstall): preserve openshell gateway daemon
sandl99 Jul 15, 2026
6b2cc09
fix(install): preserve openshell service ownership
sandl99 Jul 15, 2026
2015c82
docs: clarify keep-openshell service preservation
sandl99 Jul 15, 2026
81df387
fix(install): honor xdg user service paths
sandl99 Jul 15, 2026
a826519
fix(install): harden gateway service ownership
sandl99 Jul 15, 2026
1089026
Revert "fix(install): harden gateway service ownership"
sandl99 Jul 15, 2026
15e1ed2
Revert "fix(install): honor xdg user service paths"
sandl99 Jul 15, 2026
2623204
fix(install): slim gateway service daemon changes
sandl99 Jul 15, 2026
08bd056
fix(install): tighten gateway service trust
sandl99 Jul 15, 2026
85eb8b5
fix(uninstall): preserve gateway config when keeping openshell
sandl99 Jul 15, 2026
a5b205d
test(onboard): cover gateway service env staging
sandl99 Jul 15, 2026
2c0e16a
test(e2e): assert gateway service reboot recovery
sandl99 Jul 15, 2026
cb818a0
test(e2e): update source-shape gateway recovery allowance
sandl99 Jul 15, 2026
949bb42
fix(install): address gateway service review blockers
sandl99 Jul 15, 2026
8155f61
test(uninstall): satisfy conditional guardrail
sandl99 Jul 15, 2026
c6c164b
fix(onboard): align openshell gateway service startup
sandl99 Jul 15, 2026
3ccb694
fix(uninstall): remove xdg openshell gateway config
sandl99 Jul 15, 2026
977c929
test(onboard): isolate gateway xdg env tests
sandl99 Jul 15, 2026
7ae6ef4
test(onboard): isolate installer gateway xdg paths
sandl99 Jul 15, 2026
1c0d8d0
Merge branch 'main' into fix/install-openshell-gateway-service
sandl99 Jul 15, 2026
5abb9b9
fix(onboard): use openshell homebrew service on macos
sandl99 Jul 15, 2026
6660bf0
fix(onboard): propagate Docker host to gateway service
sandl99 Jul 15, 2026
fac3cd7
test(ci): keep service checks linear
sandl99 Jul 15, 2026
dc2b685
test(docs): align reboot recovery platform paths
sandl99 Jul 15, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ci/platform-matrix.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$comment": "Single source of truth for NemoClaw launch claims and platform support. Covers platforms, inference providers, supported agents, messaging integrations, and deployment paths. Scripts read this to generate README and docs tables. QA/CI update platform/provider rows; the engineering owner reviews other rows. Docs are derived.",
"version": "1.1",
"updated": "2026-07-12",
"updated": "2026-07-15",

"project_status": {
"stage": "alpha",
Expand Down Expand Up @@ -39,7 +39,7 @@
"status": "caveated",
"prd_priority": "P0",
"ci_tested": true,
"notes": "Start the container runtime (Colima or Docker Desktop) before running the installer. Homebrew Colima users must install both Colima and the Docker CLI (`brew install colima docker`) before `docker info` can work. Xcode Command Line Tools (`xcode-select --install`) are typically required for Node native modules during install. NemoClaw recommends them but does not enforce them during preflight."
"notes": "Start the container runtime (Colima or Docker Desktop) before running the installer. OpenShell is installed through Homebrew and the gateway should appear in `brew services list` as `openshell`. Homebrew Colima users must install both Colima and the Docker CLI (`brew install colima docker`) before `docker info` can work. Xcode Command Line Tools (`xcode-select --install`) are typically required for Node native modules during install. NemoClaw recommends them but does not enforce them during preflight."
},
{
"name": "DGX Spark",
Expand Down Expand Up @@ -229,7 +229,7 @@
{
"name": "Intel Mac (macOS x86_64)",
"status": "unsupported",
"notes": "OpenShell does not publish macOS x86_64 standalone gateway assets. Install hard-fails on x86_64 macOS (`scripts/install-openshell.sh:663`). See issue #954 (closed)."
"notes": "The supported macOS OpenShell Homebrew gateway service path is Apple Silicon only. Install hard-fails on x86_64 macOS. See issue #954 (closed)."
},
{
"name": "Non-Ubuntu/Debian Linux distros",
Expand Down
2 changes: 1 addition & 1 deletion ci/source-shape-test-budget.json
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@
},
{
"file": "test/e2e/support/e2e-expected-state.test.ts",
"test": "compiles host-preservation probes for every post-reboot recovery target",
"test": "compiles gateway-health and host-preservation probes for every post-reboot recovery target",
"category": "security"
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/get-started/prerequisites.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ The table comes from [`ci/platform-matrix.json`](https://github.com/NVIDIA/NemoC
| OS | Container runtime | Status | Notes |
|----|-------------------|--------|-------|
| Linux | Docker | Tested | Primary tested path. Ubuntu 24.04 has host-level onboarding validation. A digest-pinned Ubuntu 26.04 userspace lane builds the CLI and runs preflight, installer, and platform contracts on eligible main pushes; Docker-host, AppArmor, Landlock, and live onboarding validation on 26.04 remain pending. Other distros (Ubuntu 22.04, Fedora, Rocky, Alma, NixOS, Arch) may work but are not validated. |
| macOS (Apple Silicon) | Colima, Docker Desktop | Tested with limitations | Start the container runtime (Colima or Docker Desktop) before running the installer. Homebrew Colima users must install both Colima and the Docker CLI (`brew install colima docker`) before `docker info` can work. Xcode Command Line Tools (`xcode-select --install`) are typically required for Node native modules during install. NemoClaw recommends them but does not enforce them during preflight. |
| macOS (Apple Silicon) | Colima, Docker Desktop | Tested with limitations | Start the container runtime (Colima or Docker Desktop) before running the installer. OpenShell is installed through Homebrew and the gateway should appear in `brew services list` as `openshell`. Homebrew Colima users must install both Colima and the Docker CLI (`brew install colima docker`) before `docker info` can work. Xcode Command Line Tools (`xcode-select --install`) are typically required for Node native modules during install. NemoClaw recommends them but does not enforce them during preflight. |
| DGX Spark | Docker | Tested | Use the standard installer and `$$nemoclaw onboard`. For an end-to-end walkthrough with local inference, see the [NVIDIA Spark playbook](https://build.nvidia.com/spark/nemoclaw). |
| Windows WSL2 | Docker Desktop (WSL backend) | Tested with limitations | Requires WSL2 with Docker Desktop backend. |
{/* platform-matrix:end */}
Expand Down
2 changes: 1 addition & 1 deletion docs/manage-sandboxes/uninstall-nemoclaw.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $$nemoclaw uninstall
| Flag | Effect |
|---|---|
| `--yes` | Skip the confirmation prompt. |
| `--keep-openshell` | Leave OpenShell binaries installed. |
| `--keep-openshell` | Leave OpenShell binaries, gateway service daemons, and gateway service configuration in place, without disabling or removing the OpenShell gateway service or stopping the host `openshell-gateway` daemon. This includes NemoClaw's marked Linux `$XDG_CONFIG_HOME/systemd/user/openshell-gateway.service` unit, or `~/.config/systemd/user/openshell-gateway.service` when `XDG_CONFIG_HOME` is unset, upstream Linux package units, and the macOS Homebrew service. |
| `--delete-models` | Also remove NemoClaw-pulled Ollama models. |
| `--destroy-user-data` | Also remove preserved user data in `rebuild-backups/`, `backups/`, and `sandboxes.json`. |
| `--gateway <name>` | Override the gateway name to remove. The default is `nemoclaw`. |
Expand Down
18 changes: 13 additions & 5 deletions docs/reference/architecture.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,19 @@ graph LR
The logical diagram above shows how components relate.
This section shows what actually runs where on the host.
NemoClaw's default Docker-driver topology does not place the sandbox in an embedded k3s cluster.
On Linux, NemoClaw configures and restarts the package-managed OpenShell gateway user service when it is installed, then creates the sandbox as a Docker container.
NemoClaw treats that service as authoritative only when `systemctl --user show openshell-gateway` reports a package/vendor unit path and an `openshell-gateway` `ExecStart`.
Per-user units, partial units, and user-manager or bus outages do not take over gateway ownership; NemoClaw falls back to the standalone gateway process used by earlier installs.
That compatibility fallback remains until supported upgrade paths no longer include pre-service OpenShell installs and the package-managed handoff has direct nightly coverage.
On Apple Silicon macOS, NemoClaw starts the OpenShell Docker-driver gateway and creates the sandbox as a Docker container.
On Linux, NemoClaw configures, enables, restarts, and checks a trusted OpenShell gateway user service, then creates the sandbox as a Docker container.
NemoClaw prefers the upstream package-managed `openshell-gateway.service` when `systemctl --user show openshell-gateway` reports a package/vendor unit path and an `openshell-gateway` `ExecStart`.
For tarball-installed OpenShell binaries, the installer and onboarding stage a marked user-level `openshell-gateway.service` that follows OpenShell's systemd service model, so the gateway can restart after reboot or at the next user session.
The marker identifies the unit as NemoClaw-owned before NemoClaw reconciles or removes it.
The marked unit generates the local OpenShell mTLS bundle before daemon startup; its `openshell/gateway.env` file overrides the gateway port, Docker-driver configuration, and NemoClaw gateway state.
The marked unit and environment file use `$XDG_CONFIG_HOME` when it is set to an absolute path, otherwise they use `~/.config`.
Arbitrary per-user units, partial units, and user-manager or bus outages do not take over gateway ownership; NemoClaw falls back to the standalone gateway process when no trusted service path is available.
If NemoClaw cannot write or remove its marked user unit, it reports the filesystem failure and keeps the standalone fallback available.
That compatibility fallback remains until supported upgrade paths no longer include pre-service OpenShell installs and the service-backed handoff has direct nightly coverage.
On Apple Silicon macOS, the upstream OpenShell daemon model is the Homebrew service.
The installer installs OpenShell through the upstream Homebrew formula, and onboard restarts the `openshell` Homebrew service before checking gateway health.
If the Homebrew formula or service is unavailable, NemoClaw can still use the standalone Docker-driver gateway process as a compatibility fallback.
In either case, NemoClaw creates the sandbox as a Docker container.
In both Docker-driver modes, the sandbox is a Docker container, not a Kubernetes pod.
Entrypoint supervisors create the in-container `/tmp/nemoclaw-gateway-local` marker only when they actually launch an in-container gateway, and they normally keep it present while that supervisor is active.
On normal exits, handled `SIGTERM`/`SIGINT`, startup failures, and shell `errexit` termination through the `EXIT` trap, the supervisor removes the marker on a best-effort basis so the Docker health check does not keep trusting a stale gateway PID.
Expand Down
6 changes: 3 additions & 3 deletions docs/reference/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3035,7 +3035,7 @@ On Linux, uninstall removes `~/.local/state/nemoclaw`, which contains Docker-dri
| Flag | Effect |
|---|---|
| `--yes` | Skip the confirmation prompt |
| `--keep-openshell` | Leave OpenShell binaries installed |
| `--keep-openshell` | Leave OpenShell binaries, gateway service daemons, and gateway service configuration in place, without disabling or removing the OpenShell gateway service or stopping the host `openshell-gateway` daemon. This includes NemoClaw's marked Linux `$XDG_CONFIG_HOME/systemd/user/openshell-gateway.service` unit, or `~/.config/systemd/user/openshell-gateway.service` when `XDG_CONFIG_HOME` is unset, upstream Linux package units, and the macOS Homebrew service. |
| `--delete-models` | Also remove NemoClaw-pulled Ollama models |
| `--destroy-user-data` | Also remove preserved user data (`rebuild-backups/`, `backups/`, `sandboxes.json`) |
| `--gateway <name>` | Override the gateway name to remove (default: `$$nemoclaw`) |
Expand Down Expand Up @@ -3429,8 +3429,8 @@ Set them before running `$$nemoclaw onboard`.
| `NEMOCLAW_SANDBOX_BASE_LOCAL_BUILD` | unset or `auto` (default); `1`, `true`, `yes`, or `on` to enable; `0`, `false`, `no`, or `off` to disable | Controls whether base-image resolution may build a compatible image locally. The default allows builds during normal CLI runs and disables them when `NODE_ENV=test` or `VITEST=true`. When source inputs or a missing/incompatible release-version base require a fresh build, disabling local builds makes resolution fail instead of using an unproven image. |
| `NEMOCLAW_DOCKER_GPU_PATCH` | unset, `auto`, `fallback`, `1`, or `0`; other legacy nonzero values remain accepted through `v0.0.x` and will be removed in `v0.1.0` | Selects Linux Docker-driver GPU routing. Unset, `auto`, or `0` uses native OpenShell GPU injection on ordinary native Linux. `fallback` explicitly opts into one native attempt followed by one bounded compatibility retry when trusted host evidence identifies a GPU-routing failure. `1` and legacy nonzero values select the compatibility patch from the outset. Docker Desktop WSL and Jetson/Tegra use the compatibility path by default; Docker Desktop WSL ignores `0`, while Jetson/Tegra accepts `0` only as a troubleshooting override that bypasses device-group propagation. |
| `NEMOCLAW_OPENSHELL_GATEWAY_CONTAINER_PATCH` | `1` to enable; disabled by default | This setting explicitly opts into the Linux gateway compatibility container for an older host ABI or a diagnostic run; use it only on a trusted local host because it uses host networking and mounts the Docker socket read-only even though the socket still exposes the privileged Docker API; prefer OpenShell 0.0.72's directly supported glibc 2.28+ path; see the [OpenShell 0.0.72 compatibility review](/user-guide/openclaw/security/openshell-0.0.72-compatibility-review#source-of-truth-boundaries) for details. |
| `NEMOCLAW_OPENSHELL_GATEWAY_BIN` | path | Advanced override for the `openshell-gateway` binary used by the Linux Docker-driver standalone fallback. Defaults to the binary next to `openshell`, then common install paths. |
| `NEMOCLAW_OPENSHELL_SANDBOX_BIN` | path | Advanced override for the `openshell-sandbox` binary used by the Linux Docker-driver standalone fallback. Defaults to the binary next to `openshell`, then common install paths. |
| `NEMOCLAW_OPENSHELL_GATEWAY_BIN` | path | Advanced override for the `openshell-gateway` binary used by Docker-driver gateway startup when NemoClaw stages its Linux marked user service or uses the standalone fallback. The marked user service accepts only NemoClaw's trusted install paths (`~/.local/bin/openshell-gateway`, `/usr/local/bin/openshell-gateway`, or `/usr/bin/openshell-gateway`); other absolute paths use the standalone fallback. The macOS Homebrew service uses the Homebrew formula's gateway binary. Defaults to the binary next to `openshell`, then common install paths. |
| `NEMOCLAW_OPENSHELL_SANDBOX_BIN` | path | Advanced override for the `openshell-sandbox` binary used by Linux Docker-driver gateway startup, including the marked user service environment and standalone fallback. The macOS Homebrew service uses the Homebrew formula's driver layout. Defaults to the binary next to `openshell`, then common install paths. |
| `NEMOCLAW_OPENSHELL_GATEWAY_STATE_DIR` | path | Advanced override for the Linux Docker-driver gateway SQLite state directory and standalone-fallback PID file. Defaults to `~/.local/state/nemoclaw/openshell-docker-gateway`. |
| `NEMOCLAW_AUTO_FIX_FIREWALL` | `1` to enable | Opts in to automatic UFW remediation when Linux Docker-driver sandbox containers cannot reach the host gateway after a proven TCP failure. NemoClaw runs `sudo -n` only, validates the narrow Docker bridge subnet → gateway IP:port rule before invoking UFW, re-probes after applying it, and otherwise falls back to the printed manual command. |
<AgentOnly variant="openclaw,hermes">
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/platform-support.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ For the onboarding-time supported set without deferred rows, refer to [Prerequis
| OS | Container runtime | Status | PRD priority | CI | Notes |
|----|-------------------|--------|--------------|----|-------|
| Linux | Docker | Tested | P0 | Yes | Primary tested path. Ubuntu 24.04 has host-level onboarding validation. A digest-pinned Ubuntu 26.04 userspace lane builds the CLI and runs preflight, installer, and platform contracts on eligible main pushes; Docker-host, AppArmor, Landlock, and live onboarding validation on 26.04 remain pending. Other distros (Ubuntu 22.04, Fedora, Rocky, Alma, NixOS, Arch) may work but are not validated. |
| macOS (Apple Silicon) | Colima, Docker Desktop | Tested with limitations | P0 | Yes | Start the container runtime (Colima or Docker Desktop) before running the installer. Homebrew Colima users must install both Colima and the Docker CLI (`brew install colima docker`) before `docker info` can work. Xcode Command Line Tools (`xcode-select --install`) are typically required for Node native modules during install. NemoClaw recommends them but does not enforce them during preflight. |
| macOS (Apple Silicon) | Colima, Docker Desktop | Tested with limitations | P0 | Yes | Start the container runtime (Colima or Docker Desktop) before running the installer. OpenShell is installed through Homebrew and the gateway should appear in `brew services list` as `openshell`. Homebrew Colima users must install both Colima and the Docker CLI (`brew install colima docker`) before `docker info` can work. Xcode Command Line Tools (`xcode-select --install`) are typically required for Node native modules during install. NemoClaw recommends them but does not enforce them during preflight. |
| DGX Spark | Docker | Tested | P1 | Yes | Use the standard installer and `$$nemoclaw onboard`. For an end-to-end walkthrough with local inference, see the [NVIDIA Spark playbook](https://build.nvidia.com/spark/nemoclaw). |
| Windows WSL2 | Docker Desktop (WSL backend) | Tested with limitations | P1 | No | Requires WSL2 with Docker Desktop backend. |
| DGX Station | Docker | Deferred | P1 | No | The PRD marks this platform as P1. Workstation form-factor with NVIDIA GPUs and the same Docker + NVIDIA Container Toolkit + CDI requirements as DGX Spark. Onboard path not yet validated end-to-end on the hardware; vLLM defaults to `deepseek-ai/DeepSeek-V4-Flash` for this host class and will move out of `deferred` once the hardware run is signed off. |
Expand Down Expand Up @@ -162,7 +162,7 @@ They are listed here so launch material, sales conversations, and support triage
| Item | Status | Why |
|------|--------|-----|
| Podman / other container runtimes | Unsupported | Onboard surfaces an explicit unsupported-runtime error for Podman (`src/lib/onboard/fatal-runtime-preflight.ts` prints the rejection; `src/lib/onboard/preflight.ts` flags the unsupported runtime upstream). Only Docker Engine, Docker Desktop, and Colima are supported. See issue #420 (closed). |
| Intel Mac (macOS x86_64) | Unsupported | OpenShell does not publish macOS x86_64 standalone gateway assets. Install hard-fails on x86_64 macOS (`scripts/install-openshell.sh:663`). See issue #954 (closed). |
| Intel Mac (macOS x86_64) | Unsupported | The supported macOS OpenShell Homebrew gateway service path is Apple Silicon only. Install hard-fails on x86_64 macOS. See issue #954 (closed). |
| Non-Ubuntu/Debian Linux distros | Unsupported | Installer assumes `apt-get`. Fedora/Rocky/Alma/Arch/NixOS are not validated and the installer's package-manager probes do not cover them. See open issue #899 (Fedora hang). |
| Native Kubernetes or OpenShift deployments | Unsupported | NemoClaw runs the sandbox as a Docker container, not a Kubernetes pod. The default Docker-driver topology does not embed k3s. Operator-managed K8s/OpenShift deployments are out of scope; see issue #407 (community OpenShift through agent-sandbox CRD). |
| Air-gapped / offline installs | Unsupported | Onboard assumes network reachability for package fetches, container pulls, and provider validation. See open issues #4872 and #2218 (production-deployment epic covering air-gapped support, China network guidance, multi-host topology). |
Expand Down
32 changes: 30 additions & 2 deletions docs/reference/troubleshooting.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -848,17 +848,45 @@ Follow these steps to reconnect.
- **Linux:** start Docker if it is not already running (`sudo systemctl start docker`)
- **macOS:** open Docker Desktop or start Colima (`colima start`)

1. Check the managed OpenShell gateway service.

On Apple Silicon macOS, OpenShell is installed through Homebrew and the gateway is a Homebrew service:

```bash
brew services list
brew services restart openshell
```

On Linux tarball installs, NemoClaw installs a marked user `openshell-gateway.service`.
The unit is written under `$XDG_CONFIG_HOME/systemd/user` when `XDG_CONFIG_HOME` is absolute, otherwise under `~/.config/systemd/user`.
The service generates the local OpenShell mTLS bundle before starting and then reads NemoClaw's `openshell/gateway.env` overrides.
The systemd user manager starts it after reboot, or at the next user session when lingering is not enabled.
If `systemctl --user` is available, check and restart it first:

```bash
systemctl --user status openshell-gateway
systemctl --user restart openshell-gateway
```

On non-systemd Linux hosts or hosts where the user service cannot be reached, continue with the NemoClaw recovery step below.

1. Check sandbox state.

```bash
openshell sandbox list
```

If the sandbox shows `Ready`, skip to step 4.
If the sandbox shows `Ready`, skip to step 5.

1. Recover the managed gateway (if needed).

If the sandbox is not listed or the command fails, let NemoClaw recover the managed gateway and sandbox registration:
If the sandbox is not listed after the service restart, or `systemctl --user` is unavailable, first ask NemoClaw to reconnect through the recorded sandbox:

```bash
$$nemoclaw <name> status
```

If that cannot restore the gateway registration, resume onboarding to recreate the managed gateway metadata:

```bash
$$nemoclaw onboard --resume
Expand Down
Loading
Loading