> This page is for v0.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemoclaw/llms.txt.

# Troubleshooting

> Diagnose and resolve common NemoClaw installation, onboarding, and runtime issues.

This page covers common installation, onboarding, and runtime issues, along with resolution steps.
NemoClaw collects operation telemetry to help improve the project.
Ordinary installer and supported CLI operations attempt to send telemetry about completed operations to NVIDIA's fixed Production receiver by default.
To disable NemoClaw telemetry, run `export NEMOCLAW_DISABLE_TELEMETRY=1` in each shell before installation or CLI use.
Refer to [Operation Telemetry](/nemoclaw/user-guide/openclaw/security/best-practices#operation-telemetry) for details.

> **Note**
>
> The diagnostic commands on this page assume `nemo-deepagents` is on your `PATH`
> (re-source your shell profile after an nvm- or fnm-managed install) and that
> your user can reach the Docker socket — either as a member of the `docker`
> group or by running the Docker commands with `sudo`.

> **Get Help**
>
> If your issue is not listed here, join the [NemoClaw Discord channel](https://discord.gg/XFpfPv9Uvx) to ask questions and get help from the community. You can also [file an issue on GitHub](https://github.com/NVIDIA/NemoClaw/issues/new).

## Installation

### `nemo-deepagents` not found after install

If you use nvm or fnm to manage Node.js, the installer may not update your current shell's PATH. The `nemo-deepagents` binary is installed but the shell session does not know where to find it.

Run `source ~/.bashrc` (or `source ~/.zshrc` for zsh), or open a new terminal window.

When installing from a source checkout with `npm install`, NemoClaw first tries `npm link`. If the global npm prefix is not writable, it writes a managed shim to `~/.local/bin/nemoclaw` instead. Add `~/.local/bin` to your `PATH` if the command is still not found. Source-checkout installs also bootstrap OpenShell when it is missing before running preflight. If a source install still reports that `openshell` is not available, re-run the installer from the repository root and check that `~/.local/bin` is on your `PATH`.

### Installer Reports an Unfinished Installation

If `nemo-deepagents` reports that its compiled CLI is missing or incomplete, an earlier install or upgrade did not finish.
Rerun the installer command that you used to install NemoClaw.
The installer replaces the incomplete CLI, then attempts to recover existing sandboxes before onboarding.
Follow any recovery guidance that the installer prints, then rerun `nemo-deepagents`.

### Installer Cannot Look Up the Requested Release

If a managed install or upgrade cannot look up the requested install reference, the installer may already have removed the existing CLI source checkout.
The `nemo-deepagents` command can then fail until you resolve the lookup issue and rerun the installer.
Follow the diagnostic that it prints:

* For `Timed out looking up install ref`, check network access to `github.com`, then retry.
* For `Requested install ref ... is not available`, check `NEMOCLAW_INSTALL_TAG` and `NEMOCLAW_INSTALL_REF`, then retry.
* For `Could not verify install ref`, check repository access and the Git diagnostic, then retry.

A Git message that reports elapsed milliseconds does not establish a timeout by itself.
The installer reports it only as diagnostic context.

### Installer fails on unsupported platform

The installer checks for a supported OS and architecture before proceeding. If you see an unsupported platform error, verify that you are running on a tested platform listed in the Container Runtimes table in the quickstart guide.

### Node.js version is too old

NemoClaw requires Node.js 22.19 or later. If the installer exits with a Node.js version error, check your current version:

```bash
node --version
```

If the version is below 22.19, install a supported release. If you use nvm, run:

```bash
nvm install 22
nvm use 22
```

Then re-run the installer.

### Installer Reports `No SHA-256 tool available (sha256sum/shasum)`

The installer must verify the nvm installer before it installs or upgrades Node.js. It exits before running the downloaded script when neither `sha256sum` nor `shasum` is available.

On Debian or Ubuntu, install `sha256sum` through `coreutils`:

```bash
sudo apt-get update
sudo apt-get install -y coreutils
```

On another Linux distribution, install its `coreutils` package. On macOS, `/usr/bin/shasum` is normally present; restore it through the operating system if it is missing.

Verify that one supported tool is available, then rerun the installer:

```bash
command -v sha256sum || command -v shasum
```

### Contributor Setup Fails with a JavaScript Heap Out-of-Memory Error

This applies to a source checkout, not to an installed release.

Contributor setup gives CLI and plugin type checks a 6 GiB Node.js heap by default unless `NODE_OPTIONS` already sets a heap limit. This is a ceiling, not a memory reservation, but the checks can use substantial host memory. If a type check reports `JavaScript heap out of memory` on a low-memory host, free memory or configure swap before retrying; see [Prerequisites](../get-started/prerequisites#hardware). Only raise the heap limit when the host has spare memory:

```bash
export NODE_OPTIONS=--max-old-space-size=8192
./scripts/dev-setup.sh
```

Setup preserves other `NODE_OPTIONS` values. Keep the larger heap limit set for later type-check, build, and test commands when those commands also need it.

### Image push fails with out-of-memory errors

The sandbox image is approximately 2.4 GB compressed. During image push, the selected container runtime, k3s, and the OpenShell gateway run alongside the export pipeline, which buffers decompressed layers in memory. On machines with less than 8 GB of RAM, this combined usage can trigger the OOM killer.

If you cannot add memory, configure at least 8 GB of swap to work around the issue at the cost of slower performance.

### Docker is not running

These steps apply to the default Docker path. Native rootless Podman does not require Docker; retain `NEMOCLAW_GATEWAY_RUNTIME=podman` and follow [Podman](#podman).

Check the host before onboarding:

```bash
nemo-deepagents host probe
```

The command does not start Docker or apply a repair. A `host.docker.daemon_unreachable` finding means Docker is installed but NemoClaw cannot reach the daemon. For JSON output and exit-code details, refer to [System Readiness](system-readiness).

The installer and onboard wizard require Docker to be running on the default Docker path. If you see a Docker connection error on that path, start the Docker daemon:

```bash
sudo systemctl start docker
```

On macOS with Docker Desktop, open the Docker Desktop application and wait for it to finish starting before retrying.

### Docker Readiness Probe Does Not Respond

If onboarding reports that the selected Docker authority did not answer `docker info` or `docker version` within 15 seconds, NemoClaw cannot determine whether the daemon stopped.
The diagnostic includes the validated selected Docker endpoint when available.
Confirm that the selected endpoint responds, then restart its Docker runtime if needed.

```bash
docker info
```

Rerun onboarding after the command succeeds.
If the diagnostic does not name an endpoint, check the active Docker context and daemon before you retry.

```bash
docker context show
docker info
```

### Docker permission denied on Linux

On Linux, if the Docker daemon is running but you see "permission denied" errors, your user may not be in the `docker` group. The installer can add your user to the group, but Linux does not activate that membership in the current shell automatically. Add your user and activate the group in the current shell:

> **Docker group access**
>
> The default Docker path needs Docker access. On personal Linux development
> machines, adding your user to the `docker` group is the standard way to run
> Docker without sudo. Members of the `docker` group can control the daemon with
> root-level impact, so grant this access only to trusted local accounts; on
> shared or managed systems, use your organization's approved Docker access
> path. For background, review Docker's [daemon attack surface guidance](https://docs.docker.com/engine/security/#docker-daemon-attack-surface).

```bash
sudo usermod -aG docker $USER
newgrp docker
```

Then retry `nemo-deepagents onboard`. If the installer stopped after printing `newgrp docker`, run that command and then re-run the installer:

```bash
newgrp docker
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
```

### Installer reports Docker access outside the docker group

On Linux, the installer may report that Docker is reachable even though your user is not in the `docker` group. This means the host grants Docker daemon access through another path, such as a custom `DOCKER_HOST`, socket ACL, or managed runtime policy. NemoClaw can continue when `docker info` works, but the diagnostic explains why a negative Docker-permission test will not reproduce on that host.

Check the Docker access path before relying on the host as a clean permission baseline:

```bash
id -nG
echo "${DOCKER_HOST:-}"
docker info
```

The managed default gateway service accepts `DOCKER_HOST` only as an absolute local `unix://` socket path. It rejects remote endpoints and relative socket paths before service startup.

### Onboarding Reports an Invalid Docker Host

The `invalid_docker_host` advisory means that the selected Docker endpoint is not an absolute local `unix://` socket path that NemoClaw can write to the managed OpenShell gateway service environment.
Either `DOCKER_HOST` or `DOCKER_CONTEXT` can select that endpoint, and the advisory title names the variable that did.
A `DOCKER_CONTEXT` selection reports this instead of falling back to Docker's default socket, because that fallback would report readiness for a daemon you did not select. NemoClaw does not use the standalone gateway fallback when this validation fails. Onboarding prints the advisory identifier in parentheses after each action title in the `Suggested fix` list. The terminal output names `invalid_docker_host` when this validation fails, so you can match the message to this section. Remove the selector to use Docker's default local endpoint. Clear both variables: unsetting only `DOCKER_HOST` leaves a `DOCKER_CONTEXT` selection active, and the next run reports the same advisory.

```bash
unset DOCKER_HOST DOCKER_CONTEXT
nemo-deepagents onboard
```

If your Docker daemon uses another local socket, set an absolute `unix://` path before you retry:

```bash
export DOCKER_HOST=unix:///var/run/docker.sock
nemo-deepagents onboard
```

NemoClaw rejects TCP and SSH endpoints, relative socket paths, values that contain single quotes, and values that contain line breaks. Do not wrap the socket path in single quotes inside the variable value.

### Onboarding Reports a Missing Docker Endpoint Socket

The `docker_endpoint_socket_missing` advisory means that you selected a Docker endpoint with no Unix socket at the path it names.
Either `DOCKER_HOST` or a `DOCKER_CONTEXT` selection can name that endpoint.
A missing path and a regular file or directory at that path are both reported here: nothing can listen on either, so NemoClaw withholds the docker-group and start-Docker remedies instead of suggesting a cause it has ruled out.
The advisory prints the selected endpoint and an `ls -l` command for its exact path. Inspect that path, then either point the selector at a socket that exists or clear it to use Docker's default endpoint:

```bash
ls -l <socket-path-from-the-advisory>
unset DOCKER_HOST DOCKER_CONTEXT
nemo-deepagents onboard
```

This advisory never applies to Docker's default endpoint. A missing default socket means the daemon is not running, which `start_docker` reports instead.

### Onboarding Warns About the Docker Desktop Credential Store in a Headless Session

The `docker_desktop_credential_store_headless` advisory means that the Docker client config sets `credsStore` to `desktop` (macOS) or `desktop.exe` (WSL2) and the session looks headless, for example an SSH session without a GUI. The Docker Desktop credential helper needs an interactive GUI session. Without one, the helper can fail and block every image pull, even for public images. A common failure message from Docker in this state is `A specified logon session does not exist`.

Onboarding preflight prints this warning before the first image pull and then continues, on both fresh and resumed onboarding. NemoClaw reads the config from `$DOCKER_CONFIG/config.json` when `DOCKER_CONFIG` is set, and from `~/.docker/config.json` otherwise. On WSL, NemoClaw probes the credential helper with a read-only `list` call instead of relying on session markers, because WSLg can set `DISPLAY` in every WSL shell.

NemoClaw reads `DOCKER_HOST`, `DOCKER_CONTEXT`, and `DOCKER_CONFIG` from the environment of the `nemo-deepagents` command.
On WSL, NemoClaw automatically uses a temporary credential-free Docker configuration for generated image builds and local-inference probe images when all of these conditions apply:

* `DOCKER_HOST` is unset and the effective Docker context is `default`.
* The client configuration named above selects the Docker Desktop credential helper.
* The read-only helper probe fails.
* The operation does not require registry credentials.

NemoClaw does not modify your Docker client configuration.
It removes the temporary directory after the Docker operation.
If cleanup fails, the warning prints the exact credential-free directory; wait for Docker to finish using it, then remove that directory.

These cases continue to use the configured Docker client state:

* A nonblank `DOCKER_HOST`.
* A non-default context selected with `DOCKER_CONTEXT` or persisted by `docker context use`.
* A responsive helper.
* A custom Dockerfile.
* An operation that might require private-registry credentials.

Restore the Docker Desktop session or helper access for those operations.

The OpenShell gateway pulls a sandbox image, including a managed sandbox image, through the Docker socket configured for the gateway.
It does not read your Docker client configuration, so the credential helper does not affect that pull.

For a public-image-only retry outside the automatic WSL path, resume onboarding with a temporary isolated configuration:

```bash
(
  set -eu
  temporary_docker_config="$(mktemp -d)"
  trap 'rm -rf -- "$temporary_docker_config"' EXIT
  DOCKER_CONFIG="$temporary_docker_config" nemo-deepagents onboard --resume
)
```

Alternatively, temporarily remove the `credsStore` entry from the Docker client config named above, then rerun `nemo-deepagents onboard`. Restore the entry afterward if you use registries that need stored credentials in GUI sessions.

### macOS first-run failures

The two most common first-run failures on macOS are missing developer tools and Docker connection errors.

To avoid these issues, install the prerequisites in the following order before running the NemoClaw installer:

1. Install Xcode Command Line Tools (`xcode-select --install`). These are needed by the installer and Node.js toolchain.
2. Install and start a supported container runtime (Docker Desktop or Colima). Without a running runtime, the installer cannot connect to Docker.

### `docker` is missing after installing Colima

Homebrew Colima does not install the Docker CLI binary. If you install only Colima, `colima start` can succeed while later `docker` commands fail with `command not found`.

Install both packages, start Colima with enough resources for the sandbox image build, and verify Docker before onboarding:

```bash
brew install colima docker
colima start --cpu 4 --memory 8
docker info
```

### Permission errors during installation

The NemoClaw installer does not require `sudo` or root. It installs Node.js via nvm and NemoClaw via npm, both into user-local directories. The installer also handles OpenShell installation automatically using a pinned release.

If the installer reports `Unsafe user-local executable directory`, `Unsafe npm executable directory`, or `Unsafe executable directory`, inspect the named path and each parent directory.
Each component must be a real directory owned by you or root, without group or world write access except in a root-owned sticky parent such as `/tmp`.
The installer leaves existing directory modes unchanged and stops before it publishes executables.
If you own the named real directory and only its mode is unsafe, run `chmod go-w` on that directory, then rerun the installer.
Otherwise, ask the directory owner or host administrator to repair the path before you rerun the installer.
Do not use `sudo` to bypass this error.

For Docker permission errors, verify that Docker is installed and running.
Installing Docker may require elevated privileges on Linux.

### npm install fails with permission errors

If `npm install` fails with an `EACCES` permission error, do not run npm with `sudo`.
Before configuring npm, inspect `~/.npm-global` (if it exists) and every parent directory.
Each existing directory must meet the ownership and permission requirements in [Permission errors during installation](#permission-errors-during-installation).
Repair any unsafe directory using that procedure before running these commands.
Configure npm to use a directory you own:

```bash
(umask g-w,o-w && mkdir -p ~/.npm-global)
npm config set prefix ~/.npm-global
export PATH=~/.npm-global/bin:$PATH
```

Add the `export` line to your `~/.bashrc` or `~/.zshrc` to make it permanent, then re-run the installer.

### Installer fails on NVIDIA Jetson

The installer auto-detects NVIDIA Jetson devices (Orin and Thor) and applies required host configuration before the normal install flow. If the Jetson setup step fails, verify that you have `sudo` access and that Docker is installed and running.

For JetPack 6 (L4T 36.x), the setup switches iptables to legacy mode and adjusts the Docker daemon configuration. For JetPack 7 (L4T 38.x / Thor), only bridge netfilter and sysctl settings are applied. For JetPack 7 (L4T 39.x), bridge netfilter is loaded only when the host is missing it. Some R39 images already ship with `br_netfilter` configured and are left untouched. On affected R39 hosts, the installer prints `loading br_netfilter (required by k3s inside the OpenShell gateway)`. Without this fix, sandbox pods fail DNS resolution against the in-cluster service and the onboard `Setting up OpenClaw inside sandbox` step times out.

If the L4T version is not recognized, the setup step is skipped and the installer continues normally.

### DNS resolution from inside docker fails (corporate firewall)

Some corporate networks block outbound UDP port 53 to public DNS servers and force all host name resolution through DNS over TLS on TCP port 853. Containers do not inherit the host's DNS-over-TLS configuration, so the sandbox build's `npm ci` step times out trying to resolve `registry.npmjs.org` against `1.1.1.1` or `8.8.8.8`.

NemoClaw's preflight runs a short `docker run --rm busybox nslookup nemoclaw-dns-probe-<random>.invalid` probe before starting the sandbox build. The fresh `.invalid` name should return NXDOMAIN through a working resolver, so cached answers cannot hide blocked DNS egress. When the probe confirms a DNS failure, onboarding stops with platform-specific remediation instead of hanging for \~15 minutes and printing a cryptic `Exit handler never called`.

Use the preflight headline to choose the recovery path:

* If no DNS servers could be reached, Docker could not reach its configured resolver. Follow the platform-specific UDP port 53 and Docker DNS steps below.
* If the DNS server was reachable but rejected the query with `NXDOMAIN` or `REFUSED`, the resolver answered, so the UDP port 53 fix is not relevant. Check the resolver used by Docker, such as dnsmasq, Pi-hole, unbound, or systemd-resolved, and remove any forwarding rule, blocklist entry, or ACL that rejects `registry.npmjs.org`. If needed, configure Docker to use an organization-approved resolver that can resolve public names, restart Docker, and retry onboarding.

For an unreachable resolver, pick the matching platform path below, apply it, then re-run `nemo-deepagents onboard`.

* **Linux with systemd-resolved.** Add a `DNSStubListenerExtra` drop-in pointing at the docker bridge gateway IP (the preflight prints the detected IP), then add the same IP to `/etc/docker/daemon.json` under `dns`. Restart `systemd-resolved` and `docker`.
* **macOS with Colima.** Restart Colima with the corporate DNS address, for example `colima stop && colima start --dns <corp-dns-ip>`.
* **macOS with Docker Desktop.** Add the corporate DNS address to `~/.docker/daemon.json` under `dns`, then restart Docker Desktop.
* **Windows or WSL.** Configure DNS in the Docker Desktop settings GUI, or apply the Linux fix above when running native docker inside WSL.

Verify the fix worked:

```bash
docker run --rm busybox nslookup registry.npmjs.org
```

When the lookup returns an answer, retry onboarding.

### Direct DNS lookups fail in a Docker-driver GPU sandbox

Egress covered by OpenShell network policies resolves destinations through the gateway. A direct DNS lookup inside the agent network namespace can fail on Docker-driver GPU hosts such as DGX Spark even when policy-covered inference, messaging, and search work normally. Direct in-sandbox DNS depends on Docker and the host resolver and is not a supported NemoClaw network-policy path, so NemoClaw does not use it as a sandbox health check.

Run a manual lookup only when you are diagnosing a custom tool that performs its own DNS resolution:

```bash
openshell sandbox exec --name <sandbox-name> -- getent hosts host.openshell.internal
openshell sandbox exec --name <sandbox-name> -- getent hosts example.com
```

If the host alias resolves but the external name does not, Docker's embedded resolver may be forwarding to an upstream DNS server that the sandbox bridge cannot use. Do not treat this result as evidence that a policy-covered feature is unhealthy. Test the affected inference, messaging, or search request through its normal policy path and inspect denied requests with `openshell term`.

If a custom tool requires direct DNS, configure the Docker daemon to use a resolver that containers can reach. On hosts with VPN or split-DNS software, use an upstream resolver that remains reachable from the Docker bridge, then recreate or rebuild the sandbox. Keep bridge networking enabled so the sandbox retains its normal Docker network isolation.

### Host DNS resolution is blocked before provider validation

NemoClaw also checks that the host process can resolve the provider host before it starts NVIDIA provider validation. A firewall rule that blocks host DNS traffic on port `53` can make later validation fail with `curl: (6) Could not resolve host: integrate.api.nvidia.com` even when container DNS probes look healthy. Current onboarding stops earlier with a host DNS diagnostic and remediation hints.

Verify host DNS outside NemoClaw:

```bash
node -e 'require("node:dns").resolve4("integrate.api.nvidia.com", (err, addrs) => { if (err) { console.error(err); process.exit(1); } console.log(addrs.join(",")); })'
```

Fix the host firewall, VPN, or DNS policy so the host can resolve the provider endpoint, then rerun onboarding. If you intentionally use a non-NVIDIA provider and need to bypass only this preflight, set `NEMOCLAW_SKIP_HOST_DNS_PREFLIGHT=1`.

### Older-glibc gateway compatibility container

OpenShell 0.0.116 directly supports Linux hosts with glibc 2.39 or newer. On an older trusted host, `NEMOCLAW_OPENSHELL_GATEWAY_CONTAINER_PATCH=1` explicitly opts into NemoClaw's compatibility container. Leave it unset on supported hosts.

The compatibility container uses host networking and mounts the host Docker socket read-only. A read-only socket mount still permits privileged Docker API operations and can control the host, so do not enable this mode on an untrusted or shared host. The gateway remains loopback-bound, and startup fails closed unless the configured Unix socket answers as a Docker daemon. See [Gateway Compatibility Container](../security/security-controls/gateway-authentication-controls#gateway-compatibility-container) for the container boundary and removal conditions.

Refer to [Environment Variables](commands#environment-variables) for the full list of port overrides.

### A Gateway Port Stays Bound After Uninstall or Re-Onboard

A gateway port that keeps listening after you uninstall, or that keeps serving after you re-onboard without `NEMOCLAW_GATEWAY_PORT` set, can belong to a second environment.

Onboarding under a non-default `NEMOCLAW_GATEWAY_PORT` registers the sandbox on gateway `nemoclaw-<port>` and stores its registry and state under `~/.nemoclaw/gateways/<port>/`. Gateway-lifecycle commands such as `nemo-deepagents onboard`, `nemo-deepagents uninstall`, and the deprecated `nemo-deepagents stop` act on the state root that their own `NEMOCLAW_GATEWAY_PORT` selects, while sandbox-scoped commands that read, exec into, or inspect a sandbox, such as `nemo-deepagents <name> exec` and `nemo-deepagents <name> status`, resolve the named sandbox across every per-port registry root and address its recorded gateway binding. A gateway-lifecycle command without that variable uses port `8080` unless the installer recorded an automatic alternate-port selection; in that case, the CLI restores the recorded port. Clearing an explicitly supplied variable does not move an existing sandbox back to the default port.

List the gateways the host still has:

```bash
openshell gateway list
```

If the gateway name and its port-scoped state remain, treat it as a second environment and select that port for cleanup. If the gateway is absent but the port still listens, cleanup did not stop the listener; follow the process or service remediation printed by uninstall before you retry. If uninstall reported that it kept an `openshell-gateway` process owned by another user running, that process still holds the port. This can happen after uninstall exits successfully because NemoClaw does not treat another user's process as a cleanup failure. Ask that user to stop the process, or onboard under a different `NEMOCLAW_GATEWAY_PORT`.

Remove one environment by selecting its port:

```bash
NEMOCLAW_GATEWAY_PORT=9000 nemo-deepagents uninstall
```

Remove every gateway port in one run:

```bash
nemo-deepagents uninstall --all-gateway-ports
```

After you confirm uninstall and it exits with status `0`, run `openshell gateway list` again. For a NemoClaw-managed gateway without `--keep-openshell`, the gateway name that uninstall removed must be absent. An externally supervised gateway or a run with `--keep-openshell` preserves the gateway process and its resources.

The same scoping applies to `nemo-deepagents <name> stop`. When `stop` reports that no valid gateway binding is registered for a sandbox, the sandbox can be registered under a different gateway port. Rerun `stop` with that `NEMOCLAW_GATEWAY_PORT` value set. If that does not find the sandbox, resolve the missing, invalid, or unreadable registry entry that the command reports.

Refer to [Uninstall NemoClaw](../manage-sandboxes/operate-sandboxes/uninstall-nemoclaw) for the full sweep contract.

### A shared inference route conflicts with another sandbox

Refer to [Use Shared Gateway Routes](../inference/manage-inference/use-shared-gateway-routes) for route time-sharing, provider-global compatibility, and status drift fields.

If `inference set` reports a valid shared-route conflict, align the named sandbox records or remove a sandbox you no longer need. If onboarding or `connect` reports a provider-global identity conflict, align the same-name provider's custom endpoint, API family, and credential environment-variable name across the named sandboxes, or remove a conflicting sandbox you no longer need.

If the error names incomplete legacy custom-route metadata, back up and remove the affected sandbox, then re-onboard it with an explicit custom endpoint and API family. For an OpenAI-compatible route, replace the example endpoint, model, and sandbox name in this recovery sequence:

```bash
nemo-deepagents legacy-sandbox destroy
NEMOCLAW_PROVIDER=custom \
  NEMOCLAW_ENDPOINT_URL=https://endpoint.example/v1 \
  NEMOCLAW_MODEL=your-model-id \
  NEMOCLAW_PREFERRED_API=openai-completions \
  nemo-deepagents onboard --name legacy-sandbox
```

If the error names an invalid gateway binding, restore the affected row's known-good `gatewayName` and `gatewayPort` metadata from a trusted backup; otherwise back up and remove the sandbox, then re-onboard it. Do not guess or copy a binding from another sandbox because lifecycle commands use it to select the gateway.

## Onboarding

### Enable Native Local Inference on a Reused Gateway

If onboarding reports that native local inference requires `providers_v2_enabled=true`, ask the gateway administrator to review attached providers and run the command printed in the error.
For a gateway named `nemoclaw`, that command is:

```bash
openshell settings set -g nemoclaw --global --key providers_v2_enabled --value true --yes
```

NemoClaw does not change this setting on an existing gateway.
After the administrator enables it, resume the failed onboarding session:

```bash
nemo-deepagents onboard --resume
```

Resume reruns native local inference setup when NemoClaw has no recorded native local provider for this sandbox, even if another sandbox already has the same shared gateway route.
If the setting is still missing, onboarding stops before creating the sandbox and retains the session for another attempt.

### Ollama installer download fails

The Linux system install first downloads the pinned Ollama installer from `raw.githubusercontent.com`.
That installer then downloads the release tarball from `ollama.com`.
The user-local install downloads the tarball from `ollama.com` directly.
Both tarball paths follow redirects through `github.com` and `release-assets.githubusercontent.com`.

If the pinned installer download fails, onboarding reports `Ollama installer download failed after bounded retries (exit N)` with the URL, host, a summary for common network errors, and recovery steps.
Other Ollama download failures use the download command's error output.

Check the exact endpoints onboarding uses for this host, not just the host roots (substitute the architecture and JetPack add-on for your board):

```bash
curl -fsSI https://raw.githubusercontent.com/ollama/ollama/de25dd526f4c9ba367ee69022168c6c5f2dc3285/scripts/install.sh
curl -fsSIL https://ollama.com/download/ollama-linux-amd64.tar.zst
```

For arm64, check `https://ollama.com/download/ollama-linux-arm64.tar.zst` instead.
On NVIDIA JetPack hosts, also check the matching add-on, for example `https://ollama.com/download/ollama-linux-arm64-jetpack6.tar.zst` (JetPack 5 or 6, matching the host).
If the `.tar.zst` asset is unavailable for a tag, onboarding falls back to the `.tgz` asset, so check that URL as well (for example `https://ollama.com/download/ollama-linux-amd64.tgz`).

For an upgrade, append `?version=<version>` to each tarball URL, including the JetPack add-on and `.tgz` fallback.
Use the version printed in `Requesting Ollama <version> from the installer.`
For example, an upgrade requesting `0.32.9` uses this check:

```bash
curl -fsSIL 'https://ollama.com/download/ollama-linux-amd64.tar.zst?version=0.32.9'
```

Allow outbound HTTPS (port 443) to the failing host on your firewall or proxy.
If the host requires a proxy, export `HTTPS_PROXY` before rerunning onboarding.
Then rerun onboarding; resumable sessions continue from the failed step:

```bash
nemo-deepagents onboard --resume
```

### Cgroup v2 errors during onboard

Older NemoClaw releases relied on a Docker cgroup workaround on Ubuntu 24.04, DGX Spark, and WSL2. Current OpenShell releases handle that behavior themselves, so NemoClaw no longer requires a Spark-specific setup step.

If onboarding reports that the default Docker provider is missing or unreachable, fix Docker first and retry onboarding:

```bash
nemo-deepagents onboard
```

For explicitly selected native Podman, retain `NEMOCLAW_GATEWAY_RUNTIME=podman` and follow [Podman](#podman). An auto-detected Podman compatibility socket without that selector is rejected instead of silently changing providers.

### Cluster fails with `overlayfs snapshotter cannot be enabled` on Docker 26+

Docker Engine 26 and later default fresh installations to the [containerd image store](https://docs.docker.com/engine/storage/containerd/), which exposes its layers via the `overlayfs` snapshotter rather than the legacy `overlay2` graph driver. The k3s server inside the OpenShell cluster image needs to mount its own overlay filesystem on top, and the kernel rejects nesting two non-trivial overlay mounts. The cluster container then loops with:

```text
"overlayfs" snapshotter cannot be enabled for "/var/lib/rancher/k3s/agent/containerd",
try using "fuse-overlayfs" or "native":
failed to mount overlay: ... err: invalid argument
```

This is a Docker default-driver change, not a NemoClaw or OpenShell regression. The same hardware uses the legacy `overlay2` driver and is unaffected when it runs Docker 25 or earlier, or any Docker version with the containerd image store disabled.

NemoClaw detects the Docker 26+ containerd-snapshotter overlayfs configuration during onboarding and transparently builds a small drop-in replacement for the cluster image on the local Docker engine. The patched image installs `fuse-overlayfs` and selects it as the k3s snapshotter, bypassing the kernel-level nested-overlay limitation. No host configuration changes, sudo, or Docker restart required.

The auto-fix runs once per OpenShell version on the affected host. Subsequent onboarding runs reuse the cached patched image. Hosts without the conflict (`Driver: overlay2` in `docker info`, macOS Docker Desktop, or Linux installations that disable the containerd image store) see no change in behavior.

Override knobs:

* `NEMOCLAW_DISABLE_OVERLAY_FIX=1`: skip the auto-fix and run against the unmodified upstream cluster image. Useful for diagnosis or when you have already applied the manual workaround below.
* `NEMOCLAW_OVERLAY_SNAPSHOTTER=native`: build the patched image with k3s's `native` snapshotter instead of `fuse-overlayfs`. The `native` snapshotter copies image layers instead of overlaying them, so it uses more disk but does not depend on FUSE. Default is `fuse-overlayfs`.

If you prefer to disable the new Docker storage driver instead of running the patched image, edit `/etc/docker/daemon.json`:

```json
{
  "storage-driver": "overlay2",
  "features": { "containerd-snapshotter": false }
}
```

Then restart Docker (`sudo systemctl restart docker`) and re-run `nemo-deepagents onboard`. This restores the legacy `overlay2` driver host-wide, which kills any other running containers. Prefer the auto-fix unless you need the change for unrelated reasons. Switching storage drivers also rebuilds the entire local image graph: previously-pulled images become unusable and Docker re-pulls them on first reference, so expect a cold cache and additional disk usage right after the restart.

### OpenShell version above maximum

Each NemoClaw release validates against a range of tested OpenShell versions. If the installed OpenShell version exceeds the configured maximum, `nemo-deepagents onboard` exits with an error:

```text
✗ openshell <version> is above the maximum supported by this NemoClaw release.
  blueprint.yaml max_openshell_version: <max>
```

Upgrade NemoClaw to a version that supports your OpenShell release, or install a supported OpenShell version from the [OpenShell releases page](https://github.com/NVIDIA/OpenShell/releases).

For fresh installs, NemoClaw passes the blueprint range to `install-openshell.sh` and resolves a compatible published OpenShell release before downloading. If GitHub release metadata is unavailable, the script uses its bundled fallback pin and the post-install gate still enforces the configured range.

### Installer Reports an OpenShell Gateway Version Mismatch

On Linux, an existing OpenShell package can provide a systemd user service that starts a different gateway version from the user-local version that NemoClaw installs. The installer stops before onboarding instead of using the two versions together. The error reports both gateway versions and binary paths.

> **Warning**
>
> Do not remove the existing OpenShell package if its gateway manages resources
> outside NemoClaw. Package removal can stop that gateway. Align the package
> with the version in the installer error, or plan the migration of those
> resources first.

If you no longer need the APT-installed OpenShell package, remove it and rerun the installer:

```bash
sudo apt remove openshell
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
```

The next installer run must continue past the OpenShell installation step without reporting a version mismatch.

### Docker Driver Gateway Reports an Incompatible Migration

Onboarding can stop when the Docker driver gateway log contains both parts of either error:

```text
migration N was previously applied
is missing in the resolved migrations
```

```text
migration N was previously applied
has been modified
```

The first error means the installed OpenShell migration set does not contain migration N. The second error means that migration set defines migration N with different contents. NemoClaw identifies `<selected-state-dir>/openshell.db` as incompatible with the installed OpenShell migration set for both errors. This failure can happen after an OpenShell downgrade. Installing a NemoClaw release that is older than the installed one performs that downgrade, because each release pins one OpenShell version and the installer reinstalls OpenShell at the pin. You reach that state in one of two ways:

* You select an older release with `NEMOCLAW_INSTALL_TAG` or `NEMOCLAW_INSTALL_REF`.
* You install an older OpenShell yourself.

The default installer stops before replacing a newer installed NemoClaw release whenever the selected ref is `lkg` or `refs/tags/lkg`, whether it came from `NEMOCLAW_INSTALL_TAG` or the higher-priority `NEMOCLAW_INSTALL_REF`. Other explicit refs can replace the installed release; use a version tag or full commit SHA when you need a fixed source.

The diagnosis always prints the database path. When an unused archive path is available, it also prints that archive path beside the selected state directory and the profile-specific onboarding command. When no unused archive path is available, it asks you to keep the gateway stopped and inspect the state directory instead.

> **Warning**
>
> The selected state directory contains the gateway database, mutual TLS private
> keys, JSON Web Token signing material, and every sandbox and provider
> registration on the selected gateway. Moving it makes those registrations and
> credentials unavailable to the fresh gateway. Other sandboxes on the selected
> gateway can require re-onboarding and credential entry.

When NemoClaw proves that one managed service owns the selected port and state, the recovery stops that service and retries onboarding.
The stop command names the upstream OpenShell package unit, the NemoClaw user service, or the Homebrew formula selected for this host.
If the listener, state namespace, or service identity does not match, NemoClaw prints no stop command and uses the standalone ownership checks.
The onboarding retry resolves ownership again before it can offer a state move.

When no managed service owns the selected port and state, the gateway runtime checks the recorded process and scans current gateway process identities for the selected state directory.
It withholds the move unless that scan establishes that no gateway process uses the state.

When NemoClaw prints a stop-and-retry command, run that command first. Do not move the state unless the retry prints a state-move command.

When NemoClaw prints the state move, run the commands it prints:

1. Create the printed `.incompatible` archive with owner-only access. If that path exists, NemoClaw adds a numeric suffix instead of nesting or replacing an earlier archive.
2. Move the selected state directory into the archive as `gateway-state`.
3. Run the printed onboarding command only after the archive and move succeed.

The archive remains beside the selected state directory and retains the previous gateway records and credentials. Keep it owner-only until onboarding completes and every required sandbox and provider registration is restored. Delete the archive only after you no longer need its gateway records or credentials for recovery.

### Installer Reports That the Systemd User Manager Is Unavailable

On Linux, an OpenShell package can install `/usr/lib/systemd/user/openshell-gateway.service` on a host without a reachable systemd user manager. The service query can then return this diagnostic:

```text
Failed to connect to bus: No medium found
```

The installer accepts only recognized user-manager-unavailable diagnostics for the standalone gateway fallback.
It checks `.wants`, `.requires`, and `.upholds` links in the standard systemd user unit paths.
When `NEMOCLAW_GATEWAY_PORT` selects port `8080` and no activation path exists, the installer keeps the standalone gateway on port `8080`.

When `NEMOCLAW_GATEWAY_PORT` is unset, the installer can continue with one qualified `openshell-gateway.service` activation.
The activation must point to a trusted package unit without drop-ins, and its environment must set `OPENSHELL_SERVER_PORT=8080` exactly once.
The installer selects the first nonreserved and unconfigured port from `8990` through `9005` that has no listener, gateway registration, or port-scoped NemoClaw state.
A supported listener probe must conclusively confirm that the port is unused.
Installation stops if no candidate passes, including when listener inspection is unavailable or inconclusive for every remaining candidate.
It does not modify the existing service or activation link.

After selection and before onboarding runs or is deferred, the installer records the selected value under `~/.nemoclaw/gateways/<port>/automatic-gateway-port.pending`.
After installer-driven or direct CLI onboarding succeeds, it promotes that file to `automatic-gateway-port`.
Deferred, failed, or cancelled onboarding keeps the pending identity so a later installer or CLI process restores the same port and reaches its onboarding or cleanup path instead of creating another environment.
Later NemoClaw commands restore either recorded identity when `NEMOCLAW_GATEWAY_PORT` is unset.
You can still use the printed export command when a script or surrounding process must carry the same scope explicitly.
Exporting it makes that port an explicit operator selection, including authority for a no-name gateway stop.
If the installer selects port `8990`, it prints this command:

```bash
export NEMOCLAW_GATEWAY_PORT=8990
```

Later `list`, `status`, `connect`, `stop`, `rebuild`, and `uninstall` commands use the recorded automatic port unless this variable explicitly selects another supported port.
A restored automatic port selects command state but does not count as explicit operator authority for the deprecated no-name `nemo-deepagents stop`; name the sandbox or set `NEMOCLAW_GATEWAY_PORT` explicitly when you intend to release a gateway.

The installer does not replace a supported explicit non-default gateway port.
It uses that port's detached lifecycle without automatic selection.
The installer stops when port `8080` is explicit, the activation evidence is ambiguous, the activation is not an `openshell-gateway.service` symlink to an accepted package-unit path, or the effective service port is not proven to be `8080`.
It also stops when `SYSTEMD_UNIT_PATH` overrides the standard paths.
Restore the systemd user manager, then inspect both possible services:

```bash
systemctl --user status openshell-gateway.service
systemctl --user is-enabled openshell-gateway.service
systemctl --user status nemoclaw-openshell-gateway.service
systemctl --user is-enabled nemoclaw-openshell-gateway.service
```

Resolve an unqualified service through its package or platform owner.
Do not delete an activation link or edit a unit file by hand.
Rerun the installer after the owner confirms the effective port and activation state.

Unknown service query errors remain fatal. The installer also stops for malformed effective metadata, an untrusted unit or executable path, an executable failure, or a gateway version mismatch. Follow the reported condition instead of forcing the standalone fallback.

### Sandbox containers cannot reach the gateway

On native Linux Docker-driver hosts, `nemo-deepagents onboard` verifies the route that sandbox containers use to reach the OpenShell gateway. If a host firewall blocks that path, onboarding exits with output like:

```text
✗ Sandbox containers cannot reach the gateway at host.openshell.internal:8080.
  A host firewall may be blocking traffic from the OpenShell Docker bridge.
```

Apply the `ufw` command printed by onboarding, then rerun onboarding. If the message does not include a subnet, derive it from the OpenShell Docker network:

```bash
SUBNET=$(docker network inspect openshell-docker --format '{{(index .IPAM.Config 0).Subnet}}')
sudo ufw allow from "$SUBNET" to any port 8080 proto tcp
nemo-deepagents onboard
```

This reachability check uses a disposable Docker probe and does not create or replace a sandbox. If Docker GPU compatibility recreation fails later, follow [GPU routing or compatibility patch failed](#gpu-routing-or-compatibility-patch-failed). That path can restore the pre-patch sandbox. If its diagnostics report manual cleanup, use only the printed exact-container command. That command targets the failed replacement and preserves the restored sandbox.

### Invalid sandbox name

Sandbox names must contain 1 to 19 characters. They must be lowercase, start with a letter, contain only letters, numbers, and single internal hyphens, and end with a letter or number. Consecutive hyphens (`--`) are not allowed. The CLI rejects names that do not match these rules. It prints a `Try: <suggested-slug>` recovery line whenever it can derive a valid lowercase, hyphen-separated form from the input, so passing `--name MyAssistant` reports `Try: myassistant` and you can rerun with the suggested slug.

The CLI writes the rejected value as a quoted preview instead of raw input. The preview reads at most the first 80 UTF-16 code units from the input and escapes each code unit outside printable ASCII as `\uXXXX`. Escaping can make the preview longer than 80 output characters. This prevents a rejected name from injecting control sequences into terminal or CI output.

Names that collide with global CLI commands are also rejected.
Reserved names include `onboard`, `list`, `setup`, `start`, `stop`, `status`, `debug`, `uninstall`, `credentials`, and `help`.
Using a reserved name would cause the CLI to route to the global command instead of the sandbox.

If the name does not match these rules or is reserved, the wizard exits with an error. Choose a name such as `my-assistant` or `dev1`.

### Sandbox creation fails on DGX

On DGX machines, sandbox creation can fail if the gateway's DNS has not finished propagating or if a stale port forward from a previous onboard run is still active.

Run `nemo-deepagents onboard` to retry. The wizard cleans up stale port forwards and waits for gateway readiness automatically.

### GPU Setup Fails with a Placeholder GPU Name

On Windows, WSL, and native Linux ARM64 hosts, some systems report a placeholder display adapter name even when no NVIDIA GPU firmware is present. This section also applies when preflight reports no GPU on an ARM64 Linux host whose `nvidia-smi` shows a non-placeholder GPU name. NVIDIA NIM and GPU-backed sandbox setup require a real NVIDIA GPU.

When the primary memory-query probe reports a placeholder-named GPU row on an eligible ARM64 Linux host without firmware-confirmed NVIDIA platform metadata, onboarding runs a bounded CUDA workload through the selected runtime provider. When that probe reports one or more plausible non-placeholder NVIDIA GPU names on WSL ARM64, where Windows paravirtualizes the GPU through `/dev/dxg`, onboarding runs the same workload once for every provider-visible GPU UUID. A non-placeholder name that does not identify an NVIDIA GPU or product family does not start the workload. NemoClaw treats a recognized NVIDIA product model from `/sys/class/dmi/id/product_name` or `/sys/firmware/devicetree/base/model`, or a known Tegra device node, as authoritative platform identity. Docker or Podman may pull the CUDA sample image from `nvcr.io` and keeps the image in the local cache after the container exits. Docker uses `--gpus all`; qualified rootless Podman uses the NVIDIA CDI device. The following manual diagnostics exercise the same fixed workload and per-device capacity query:

```bash
proof_image='nvcr.io/nvidia/k8s/cuda-sample@sha256:7c7540bdf1f942d4fb6db97069fd6c289471b54ac29e3c7fcdf914cf77af7d41'
proof_script='set -eu; snapshot="$(nvidia-smi --query-gpu=uuid,index,name,memory.total,memory.free --format=csv,noheader,nounits)"; device_uuids="$(printf "%s\n" "$snapshot" | cut -d, -f1)"; for device_uuid in $device_uuids; do CUDA_VISIBLE_DEVICES="$device_uuid" /cuda-samples/sample >/dev/null; done; printf "%s\n" "$snapshot" | sed "s/^/NEMOCLAW_GPU_DEVICE=/"'

# Docker
docker run --rm --gpus all --entrypoint /bin/sh "$proof_image" -c "$proof_script"

# Qualified rootless Podman socket from NemoClaw preflight
podman --url 'unix://<qualified-current-user-socket>' run --rm --device nvidia.com/gpu=all --entrypoint /bin/sh "$proof_image" -c "$proof_script"
```

A diagnostic result includes one successful CUDA sample invocation and one `NEMOCLAW_GPU_DEVICE=<uuid>, <index>, <name>, <total>, <free>` row for every provider-visible GPU. For Podman, replace `<qualified-current-user-socket>` with the exact socket accepted by [Podman preflight](#podman); do not omit `--url`, because a bare command can select another rootful, remote, or named connection. Manual output does not qualify onboarding. Only the proof that NemoClaw runs through its provider-bound authority validates the row structure, binds every workload to its stable GPU UUID, and supplies the capacity evidence used for model selection.

The run is bounded to 3 minutes by default. Set `NEMOCLAW_WSL_GPU_PROOF_TIMEOUT_MS` to a positive integer number of milliseconds to change that bound; values above 15 minutes are capped at 15 minutes. A passing workload with confirmed container reconciliation lets onboarding treat the detected GPU as eligible for GPU passthrough during that run. On Windows-on-Arm, only the documented N1x and Station GB300 WSL paths can use this proof for platform qualification; other GPU routes remain unsupported. A failed, interrupted, or timed-out workload leaves the GPU unproven and does not enable GPU passthrough. After every completed capture, NemoClaw immediately reconciles the proof container by its exact name and ownership label. After an interrupted capture, it continues that exact check for up to 15 seconds. If the resource appears, NemoClaw removes only its immutable container ID. If an interrupted capture remains absent through that deadline, or removal fails after any capture, NemoClaw invalidates the proof, reports unresolved cleanup, and names the exact resource to verify or remove before retrying. The names-only unified-memory fallback does not run this workload and rejects denylisted names. WSL uses Docker Desktop by default; a qualification-backed rootless Podman provider can run the same proof for WSL-local Ollama.

When GPU detection rejects the `nvidia-smi` report, preflight prints the failed check under the `Local NIM unavailable — no GPU detected` line, for example an absent `/proc/driver/nvidia` interface or a failed bounded CUDA proof. If NemoClaw rejects the detected GPU name during preflight, select a CPU or remote inference provider, or move the setup to a host with a supported NVIDIA GPU and current drivers.

Jetson/Tegra hosts support sandbox GPU passthrough through the compatibility route. Onboarding detects those hosts separately and propagates eligible host group IDs for selected `/dev/nvmap`, `/dev/nvhost-*`, and `/dev/nvgpu/igpu0/*` nodes plus real `/dev/dri/renderD*` character devices. If that path fails, follow the Jetson/Tegra compatibility guidance below instead of treating a missing `nvidia-smi` result as a placeholder adapter.

### Colima socket not detected (macOS)

Newer Colima versions use the XDG base directory (`~/.config/colima/default/docker.sock`) instead of the legacy path (`~/.colima/default/docker.sock`). Some installations expose a top-level Colima socket at `~/.colima/docker.sock`. NemoClaw checks all three paths. If neither is found, verify that Colima is running:

```bash
colima status
```

### Onboarding Finds an OpenShell Provider Without a NemoClaw Ownership Receipt

NemoClaw refuses to change an existing native OpenShell provider when it cannot find the matching ownership receipt. The provider can remain after you remove NemoClaw state but preserve OpenShell, such as after uninstalling with `--keep-openshell`.

First, check whether a sandbox on the named gateway uses that provider. If none does, run the `openshell provider delete` command from the error, then rerun onboarding. The command names and shell-quotes the target gateway and provider.

> **Warning**
>
> Do not delete the provider if any sandbox uses it. Deleting it can stop inference for that sandbox.

### Sandbox build is slow or hangs (under-provisioned container runtime)

Default Colima ships with 2 vCPU and 2 GiB of memory, which is not enough headroom for the BuildKit-driven sandbox image build. On macOS Apple Silicon, the build can stall part-way through with no progress and no error, leaving the wizard waiting indefinitely.

Preflight inspects `docker info` for `NCPU` and `MemTotal` and prints a warning when the runtime falls below 4 vCPU or 8 GiB. In interactive onboarding, the warning prompt defaults to abort, so pressing Enter stops the run before the sandbox build reaches the likely stall point. Type `y` only when you intentionally want to continue on the smaller runtime. Non-interactive onboarding prints the warning and continues. On Colima, raise the resources before re-running onboard:

```bash
colima stop
colima start --cpu 6 --memory 12 --disk 100
```

On Docker Desktop, raise CPU and memory limits in *Settings → Resources*, then apply and restart.

To silence the warning when the host is intentionally small, set `NEMOCLAW_IGNORE_RUNTIME_RESOURCES=1` before running `nemo-deepagents onboard`.

### Generated Sandbox Image Build Requires the Selected Local Engine

On a local Docker gateway, NemoClaw builds each generated OpenClaw, Hermes, or Deep Agents Code sandbox image with host-side BuildKit.
When `DOCKER_HOST` and `DOCKER_CONTEXT` are unset, NemoClaw can use Docker's saved current context.
For a reachable supported local Unix socket that differs from Docker's default socket, NemoClaw exports the endpoint as `DOCKER_HOST`.
NemoClaw stops before sandbox creation in these cases:

* The local build is disabled.
* The staged build context fails trust validation.
* The selected engine cannot start the build.
* The build exits with an error.
* The local build exceeds 20 minutes.
* On the Docker path, `DOCKER_HOST` names an unsupported endpoint instead of an absolute local `unix://` socket.
* On the Docker path, `DOCKER_CONTEXT` selects a non-default context while `DOCKER_HOST` remains unset after endpoint resolution.

It does not send that generated Dockerfile to the OpenShell gateway's classic Docker API builder because that builder cannot enforce the same instructions.

On the Docker path, use an absolute local `unix://` socket in `DOCKER_HOST`, or unset an unsupported value.
Keep the local prebuild enabled.
Verify that the host Docker installation provides BuildKit:

```bash
unset NEMOCLAW_SANDBOX_PREBUILD
docker info
docker buildx version
```

Repair Docker access or the Docker Buildx plugin when either Docker command fails. Then rerun the original onboarding or rebuild command. For a resumable onboarding session, run:

```bash
nemo-deepagents onboard --resume
```

A passing Docker recovery completes the local BuildKit build before sandbox creation starts.
If NemoClaw rejects the staged build context trust boundary, do not change its permissions or move its Dockerfile.
Rerun the command so NemoClaw creates a new private staged context.
If the new context is also rejected, preserve the complete error and stop instead of forcing the gateway builder.

The same build and image check applies to a user-supplied `--from` context on a local Docker gateway.
NemoClaw does not send a Dockerfile to the gateway builder after a local build failure.

### Sandbox creation killed by OOM (exit 137)

On systems with 8 GB RAM or less and no swap configured, the sandbox image push can exhaust available memory and get killed by the Linux OOM killer (exit code 137).

NemoClaw automatically detects low memory during onboarding and prompts to create a 4 GB swap file. If this automatic step fails or you are using a custom setup flow, create swap manually before running `nemo-deepagents onboard`:

```bash
sudo dd if=/dev/zero of=/swapfile bs=1M count=4096 status=none
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
nemo-deepagents onboard
```

### Onboarding Reports a Rejected or Unconfirmed Policy Update

Onboarding can submit several policy mutations in sequence when you deselect policy presets and select others. It submits deselection mutations before selection mutations. Each successful mutation updates and verifies the live OpenShell policy before the next mutation starts. If a later mutation fails, the earlier successful mutations remain in that live policy.

Each mutation uses a temporary `policy.yaml` file in a `nemoclaw-policy-*` directory. When the submission finishes, NemoClaw removes that directory, whether or not the gateway accepted the mutation. If cleanup fails, NemoClaw reports the directory that still holds the policy instead of reporting the submission result.

When NemoClaw reports this directory, do not retry the policy operation. Use Bash to enter and validate the exact path from the error before you remove its contents:

```bash
cleanup_retained_policy() {
  local platform_tmp_root retained_policy_dir

  if ! platform_tmp_root=$(node -p "require('node:os').tmpdir()"); then
    printf 'Validation failed: Node.js could not report the platform temporary directory.\n' >&2
    return 1
  fi
  platform_tmp_root=${platform_tmp_root%/}
  IFS= read -r -p 'Enter the temporary policy directory from the error: ' retained_policy_dir
  python3 - "$platform_tmp_root" "$retained_policy_dir" <<'PY'
import os
import re
import stat
import sys

class CleanupError(Exception):
    pass

def open_retained_policy_directory(platform_tmp_root, reported_path):
    if not os.path.isabs(platform_tmp_root):
        raise CleanupError("the platform temporary directory is not absolute")
    platform_tmp_root_real = os.path.realpath(platform_tmp_root)
    if platform_tmp_root_real == os.path.abspath(os.sep):
        raise CleanupError("the platform temporary directory cannot be the filesystem root")
    reported_basename = os.path.basename(reported_path)
    reported_parent = os.path.dirname(reported_path)
    if not re.fullmatch(r"nemoclaw-policy-.+", reported_basename):
        raise CleanupError("the basename must match nemoclaw-policy-* and include a suffix")
    if reported_parent != platform_tmp_root:
        raise CleanupError(
            f"the path must be a direct child of the actual platform temporary directory {platform_tmp_root!r}"
        )
    if os.path.realpath(reported_path) != os.path.join(platform_tmp_root_real, reported_basename):
        raise CleanupError("the canonical path is outside the actual platform temporary directory")
    if (
        not hasattr(os, "geteuid")
        or not hasattr(os, "O_DIRECTORY")
        or not hasattr(os, "O_NOFOLLOW")
        or os.stat not in os.supports_dir_fd
        or os.unlink not in os.supports_dir_fd
    ):
        raise CleanupError("this platform cannot perform descriptor-relative cleanup")

    directory_flags = os.O_RDONLY | os.O_DIRECTORY | getattr(os, "O_CLOEXEC", 0)
    root_stat = os.stat(platform_tmp_root_real, follow_symlinks=False)
    if not stat.S_ISDIR(root_stat.st_mode):
        raise CleanupError("the canonical platform temporary path is not a directory")
    root_fd = os.open(platform_tmp_root_real, directory_flags | os.O_NOFOLLOW)
    try:
        opened_root_stat = os.fstat(root_fd)
        if (opened_root_stat.st_dev, opened_root_stat.st_ino) != (root_stat.st_dev, root_stat.st_ino):
            raise CleanupError("the platform temporary directory changed while it was being opened")
        reported_stat = os.stat(reported_basename, dir_fd=root_fd, follow_symlinks=False)
        if not stat.S_ISDIR(reported_stat.st_mode):
            raise CleanupError("the path is not a directory or is a symbolic link")
        if reported_stat.st_uid != os.geteuid():
            raise CleanupError("the current user does not own the directory")
        policy_fd = os.open(
            reported_basename,
            directory_flags | os.O_NOFOLLOW,
            dir_fd=root_fd,
        )
        opened_stat = os.fstat(policy_fd)
        if (opened_stat.st_dev, opened_stat.st_ino) != (reported_stat.st_dev, reported_stat.st_ino):
            os.close(policy_fd)
            raise CleanupError("the directory changed while it was being opened")
        return root_fd, policy_fd, reported_basename, opened_stat
    except Exception:
        os.close(root_fd)
        raise

def remove_retained_policy_material(policy_fd):
    try:
        os.unlink("policy.yaml", dir_fd=policy_fd)
    except FileNotFoundError:
        pass
    remaining = os.listdir(policy_fd)
    if remaining:
        raise CleanupError(f"the directory contains unexpected entries: {remaining!r}")

def main():
    root_fd = None
    policy_fd = None
    try:
        root_fd, policy_fd, basename, opened_stat = open_retained_policy_directory(
            sys.argv[1], sys.argv[2]
        )
        remove_retained_policy_material(policy_fd)
        try:
            current_stat = os.stat(basename, dir_fd=root_fd, follow_symlinks=False)
        except FileNotFoundError as error:
            raise CleanupError("the reported path changed during cleanup") from error
        if (current_stat.st_dev, current_stat.st_ino) != (opened_stat.st_dev, opened_stat.st_ino):
            raise CleanupError("the reported path was replaced during cleanup; the replacement was not removed")
        print(
            f"Removed retained policy material from {sys.argv[2]!r}. "
            "The empty directory intentionally remains."
        )
    except (CleanupError, OSError) as error:
        print(f"Cleanup failed for {sys.argv[2]!r}: {error}.", file=sys.stderr)
        raise SystemExit(1) from error
    finally:
        if policy_fd is not None:
            os.close(policy_fd)
        if root_fd is not None:
            os.close(root_fd)

if __name__ == "__main__":
    main()
PY
}
cleanup_retained_policy
```

The procedure opens the validated directory without following a symbolic link and removes `policy.yaml` relative to that open directory. It fails if the directory contains anything else. It intentionally leaves the empty directory because deleting it later by pathname would reintroduce a directory-replacement race. Continue only after the procedure reports that the retained policy material was removed. Do not remove the empty directory by pathname. If validation or cleanup fails, preserve the exact path and complete error message for support. Do not use another removal command on that path.

After temporary-directory cleanup, treat the gateway state as unknown because the cleanup error replaced the submission result. Restore access to the OpenShell gateway, then read the sandbox policy:

```bash
nemo-deepagents <name> policy list
```

If `policy list` reports that it could not query OpenShell, stop because no local policy state can substitute for the live document. If it reports container-runtime recovery guidance, restore that runtime and run `policy list` again. Do not resume or start fresh onboarding until `policy list` reports the live gateway policy.

When NemoClaw reports a rejected or unconfirmed policy mutation, onboarding stops and:

* leaves earlier successful mutations applied and recorded;
* does not record that mutation in the sandbox registry;
* marks the session failed and resumable;
* reports one of the two results below.

After either result, run `policy list` before you resume or start fresh onboarding.

The gateway read the policy and refused it:

```text
OpenShell rejected the policy for sandbox 'my-assistant' (exit <exit status>): <OpenShell diagnostic>. The policy was not applied and re-applying it will be rejected again; change the preset selection instead.
```

An OpenShell refusal means this mutation did not change the live policy. Earlier successful mutations in the same onboarding step remain applied and recorded. Use the quoted OpenShell diagnostic to identify what the gateway refused. After you inspect `policy list`, follow [Previous onboarding session failed](#previous-onboarding-session-failed) to start fresh onboarding and choose a different preset selection.

NemoClaw could not confirm the result. This covers a connection that ended before the result arrived, an unreachable gateway, an elapsed deadline, a rejected credential, and a refusal the gateway reported with a status NemoClaw does not recognize as final. NemoClaw reports this whenever the gateway did not return an explicit refusal, because only an explicit refusal proves the policy was not applied:

```text
Could not confirm the policy update for sandbox 'my-assistant': <transport or command error>. The gateway may or may not have applied it; read the current policy back before retrying.
```

The gateway state is unknown, so read the sandbox policy with `policy list` before you retry. `policy list` derives applied state from OpenShell and has no local policy record to reconcile.

The same connection problem that made the result unconfirmed can also stop `policy list` from reaching the gateway. When that happens, `policy list` reports that OpenShell is unavailable and does not claim a local policy fallback. If the container runtime is down, it prints that runtime's recovery guidance instead. Stop while `policy list` cannot read OpenShell because the command cannot show whether the gateway applied the mutation. Restore gateway access and run `policy list` again before you resume or start fresh onboarding.

After `policy list` reads the live OpenShell policy, compare that one authoritative result with the change you requested. If the requested addition or removal is already present, do not submit it again. If it is absent, retry the convenience command after OpenShell connectivity is stable. The [failed-session recovery steps](#previous-onboarding-session-failed) provide the resume and fresh onboarding commands for non-policy onboarding state.

### Previous onboarding session failed

If a previous `nemo-deepagents onboard` attempt fails partway through (for example, a provider or inference-setup step reporting an error), NemoClaw records the failure in `~/.nemoclaw/onboard-session.json`.

> **Preserve Interrupted Rebuild Recovery**
>
> The resume and fresh-onboarding commands below apply to ordinary onboarding failures.
> For an interrupted rebuild, do not manually delete `onboard-session.json` or `.onboard-rebuild-<sandbox>.json` files from the selected state directory.
> Rebuild recovery can be retained separately while another sandbox owns the active session.
> Follow [Continue an Interrupted Replacement](../manage-sandboxes/operate-sandboxes/recover-and-rebuild-sandboxes#continue-an-interrupted-replacement) to rerun the affected sandbox's rebuild with the same settings.

When you re-run the installer, it detects the failed session and does not silently retry it. Silent retry would loop on the same failure if your original choice, such as an unreachable provider, was the cause.

* In an interactive terminal, the installer prompts whether to resume the failed session or start fresh. Press `R` (or Enter) to retry the same session, or `f` to discard it and make fresh choices.
* In non-interactive mode (piped `curl | bash` with `NEMOCLAW_NON_INTERACTIVE=1`, CI, scripts), the installer refuses and exits with a non-zero status so a scripted re-run cannot loop. You must opt in to one of two paths explicitly:

Start over with new choices to discard the recorded session and provider/model selection.

```bash
curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_AGENT=langchain-deepagents-code bash -s -- --fresh
```

Or use environment variables instead. Set them on the `bash` side of the pipe because only the right-hand process inherits them.

```bash
curl -fsSL https://www.nvidia.com/nemoclaw.sh | NEMOCLAW_AGENT=langchain-deepagents-code NEMOCLAW_FRESH=1 bash
```

Retry the same session.

This is only useful if the original failure was transient, for example a network blip or a stopped Docker daemon, and not a wrong provider choice:

```bash
nemo-deepagents onboard --resume
```

### Kubernetes namespace not ready

If onboarding fails with `Kubernetes namespace not ready`, a previous failed or interrupted setup may have left stale OpenShell or NemoClaw state behind. Clean up the failed installation before re-running the installer:

```bash
nemo-deepagents uninstall --yes
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
```

The normal uninstall path keeps user data under `~/.nemoclaw/`, including sandbox registry metadata, backups, and saved credentials unless you explicitly remove them. If `nemo-deepagents uninstall` reports that the local uninstall script is missing, follow the CLI's security boundary: download the versioned NVIDIA/NemoClaw tag URL that it prints, inspect the script locally, run that local copy, and then retry the installer.

```bash
curl -fsSLo uninstall.sh <versioned-uninstall-url>
less uninstall.sh
bash uninstall.sh --yes
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
```

### Onboarding reports a model-catalog HTTP 404

The retained legacy OpenRouter shared-route adapter serves Chat Completions but does not serve a model catalog.
An `HTTP 404` response from `https://inference.local/v1/models` is expected only when the sandbox still uses that legacy shared route with recorded provider `openrouter-api`.
NemoClaw accepts that response only after a bounded inference request serves the selected model.
Onboarding and `status` report the route ready when that request succeeds.

New OpenRouter selections use a sandbox-attached native provider. Their readiness check verifies that attachment and sends an inference request to the native endpoint; a shared-route catalog response does not qualify them.

Re-check the route and the recorded provider and model:

```bash
nemo-deepagents <name> status
```

If the inference request fails, `status` reports that failure instead of accepting the catalog response.
Confirm the OpenRouter credential and selected model, then continue the recorded session:

```bash
nemo-deepagents onboard --resume
```

For other shared-route providers, an `HTTP 404` response still means that the route served no supported model catalog.
Confirm the recorded provider and model, and confirm that the endpoint serves `/v1/models`.
Then continue the recorded session:

```bash
nemo-deepagents onboard --resume
```

## Runtime

### Reconnect after a host reboot

After a host reboot, the container runtime, OpenShell gateway, and sandbox may not be running. Follow these steps to reconnect.

1. Start the container runtime.

   * **Linux:** start Docker if it is not already running (`sudo systemctl start docker`)
   * **macOS:** open Docker Desktop or start Colima (`colima start`)

2. Check the managed OpenShell gateway service.

   If a custom-port gateway is NemoClaw-managed, skip this service check and continue with the NemoClaw recovery step using the same environment value. Only the default port `8080` uses a NemoClaw-managed service. If the gateway is externally supervised, inspect and restart it through the supervisor declared by `NEMOCLAW_GATEWAY_MANAGEMENT`, regardless of port.

   On Apple Silicon macOS with Homebrew, let NemoClaw inspect and restart the official formula service. NemoClaw runs each Homebrew operation inside the checksum-verified temporary trust boundary. Continue to the NemoClaw recovery step below instead of running `brew services` directly.

   NemoClaw verifies the staged formula checksum and temporarily trusts only `nvidia/openshell/openshell` around each Homebrew inspection, start, or stop operation. If formula verification fails or Homebrew cannot grant or remove temporary trust, rerun the standard NemoClaw installer and then rerun onboarding:

   ```bash
   curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
   ```

   The standalone gateway is selected only when Homebrew or both the staged formula and installed keg are absent. When the formula or keg exists, Homebrew remains the lifecycle authority. NemoClaw does not switch to the standalone gateway after a Homebrew inspection, start, or stop failure. Follow the reported repair guidance instead of changing service ownership manually. If the installed service fails inspection, startup, or its health check, NemoClaw prints this log command:

   ```bash
   tail -n 200 "$(brew --prefix)/var/log/openshell/openshell-gateway.out.log" "$(brew --prefix)/var/log/openshell/openshell-gateway.err.log"
   ```

   Rerun the NemoClaw installer to restore the managed service for later onboarding runs.

   On Linux package installs, inspect and restart the upstream service.

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

   If the service fails inspection, startup, or its health check, NemoClaw prints this log command:

   ```bash
   journalctl --user --unit openshell-gateway --no-pager --lines=200
   ```

   On Linux tarball installs, inspect and restart the marked NemoClaw service.

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

   If the service fails inspection, startup, or its health check, NemoClaw prints this log command:

   ```bash
   journalctl --user --unit nemoclaw-openshell-gateway --no-pager --lines=200
   ```

   The tarball unit is under `$XDG_CONFIG_HOME/systemd/user`, or `~/.config/systemd/user` when `XDG_CONFIG_HOME` is not absolute. It starts with your user session; NemoClaw does not enable lingering. On Linux, NemoClaw attempts the standalone fallback when a managed service fails inspection, startup, or its health check. The standalone gateway starts only after NemoClaw verifies exclusive ownership of the gateway port. The fallback does not bypass managed-service trust validation or unsafe environment configuration. These conditions remain hard failures:

   * Homebrew formula identity query, metadata, or official-tap validation errors
   * Foreign or symlinked systemd units, or an untrusted systemd executable identity
   * An invalid `DOCKER_HOST` or a symlinked service environment file

   Without Homebrew on macOS, or without a reachable systemd user manager on Linux, continue with the standalone recovery step below.

3. Check sandbox state.

   ```bash
   openshell sandbox list
   ```

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

4. Recover the managed gateway (if needed).

   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
   nemo-deepagents <name> status
   ```

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

   ```bash
   nemo-deepagents onboard --resume
   ```

   Wait a few seconds, then re-check with `openshell sandbox list`. On Docker-driver hosts, NemoClaw also looks for OpenShell-labeled sandbox containers when the gateway is healthy but reports the sandbox as missing. It can start a stopped labeled container, or restore the latest GPU-backup sibling container name and start it.

5. Reconnect.

   ```bash
   nemo-deepagents <name> connect
   ```

   The gateway usually rotates its SSH host keys across a reboot. `connect` detects the resulting identity drift, prunes the stale `openshell-*` entries from `~/.ssh/known_hosts`, and retries automatically. You do not need to edit `known_hosts` by hand or re-run `nemo-deepagents onboard` in this case.

> **If the sandbox does not recover**
>
> If the sandbox remains missing after restarting the gateway, its authoritative OpenShell policy and live workspace are unavailable, so `rebuild --yes` cannot recreate it from NemoClaw registry metadata. Run `nemo-deepagents <name> destroy --yes` to remove the stale local entry, then run `nemo-deepagents onboard`. The missing sandbox's state cannot be recovered unless you already have an independently maintained backup; transfer that state explicitly after onboarding. For details, refer to [Transfer State Manually](../manage-sandboxes/state-and-backups/transfer-state-manually).

### Gateway Port Stays Bound After Destroying the Last Sandbox

When the default-port gateway runs under the packaged OpenShell gateway service, destroying the final sandbox with `--cleanup-gateway` stops that service before it reaps host gateway processes whose ownership NemoClaw verifies. This does not prove that the port is free: a foreign, ambiguous, or other-user listener may remain. Verify the gateway port after cleanup. The service is stopped, not disabled or removed, and the next onboarding run starts it again. If the systemd user manager is unavailable and the service cannot activate automatically, `destroy` can instead stop the recorded standalone gateway after verifying its exact process identity and port. For other service-stop failures, `destroy` exits non-zero and prints the status command for the service.

If `destroy` prints `Shared NemoClaw gateway left running`, NemoClaw skipped gateway cleanup because `openshell sandbox list` still reported a live sandbox after the post-delete wait, or because that command failed.
The message names those sandboxes or the failed command.
First confirm that the gateway reports no sandboxes:

```bash
openshell sandbox list -g <gateway-name>
```

When the list is empty, remove the gateway:

```bash
openshell gateway remove <gateway-name>
```

Use the gateway name from the `destroy` message in both commands.

On Apple Silicon macOS with Homebrew, rerun the standard NemoClaw installer to restore the pinned formula and temporary trust contract:

```bash
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
```

Then rerun `nemo-deepagents <name> destroy --cleanup-gateway` instead of stopping the Homebrew service directly.

On Linux, stop the service yourself, then rerun `destroy`. Use the service name that matches the install. For package installs:

```bash
systemctl --user stop openshell-gateway
```

For tarball installs:

```bash
systemctl --user stop nemoclaw-openshell-gateway
```

A successful stop is not proof that the port is free. When a managed service fails inspection, startup, or its health check, NemoClaw starts the gateway standalone instead, and the service stays installed but inactive. Stopping an inactive service exits `0` without stopping that standalone gateway. Set `gateway_port` below to the affected gateway port, then confirm the port after the stop:

```bash
gateway_port=PORT
ss -lntp | grep ":${gateway_port}"
```

If a process still holds the port, do not infer ownership from the `openshell-gateway` process name. Rerun the identity-aware cleanup path:

```bash
nemo-deepagents <name> destroy --cleanup-gateway
```

NemoClaw verifies the listener before it reaps host gateway processes. If it reports a foreign or ambiguous owner, use the fresh listener details to identify the owning installation or service and stop it through that owner's lifecycle command. Do not uninstall a selected NemoClaw environment based only on the process name; uninstall removes that environment's gateway state, credentials, and registrations.

### Sandbox is running an outdated agent version

After upgrading NemoClaw, `nemo-deepagents <name> connect` and `nemo-deepagents <name> status` warn if the sandbox is running an older agent version than the current image.

To upgrade the sandbox while preserving workspace state, run:

```bash
nemo-deepagents <name> rebuild
```

The rebuild command transfers the complete native home and workspace, destroys the old sandbox, recreates it with the current image, and restores that state. Keep an independent host copy if you need an additional safety net.

### Sandbox shows as stopped

When status reports `sandbox_container_stopped`, Docker still has a container for the sandbox, but the container is not running. Use the lightest recovery path first instead of rebuilding immediately.

1. Confirm Docker can still see the labeled container.

   ```bash
   docker ps -a --filter "label=openshell.ai/sandbox-name=<name>"
   ```

2. Run recovery from the host.

```bash
nemo-deepagents <name> status
```

Deep Agents Code does not provide the `recover` command. Use `nemo-deepagents <name> start` to start its existing container.

1. Check status from the host.

   ```bash
   nemo-deepagents <name> status
   ```

   On Docker-driver hosts, a missing OpenShell sandbox remains a missing result even when Docker still has a labeled container. Status does not start, unpause, rename, or replace that container; use the reported OpenShell recovery guidance.

2. Rebuild only if the sandbox cannot be restarted but OpenShell still reports the live sandbox and its current policy:

   ```bash
   nemo-deepagents <name> rebuild --yes
   ```

   Rebuild captures the live sandbox policy and workspace before recreation. If the live sandbox is absent, use the clean-replacement sequence below instead.

### Sandbox is registered locally but missing from the gateway

After a gateway restart, host reboot, or manual OpenShell cleanup, NemoClaw may still have a local registry entry for a sandbox that the live gateway no longer lists. `nemo-deepagents <name> status` and `nemo-deepagents <name> connect` preserve that local registry entry and print recovery guidance instead of deleting it automatically. First restore the gateway and retry status in case the sandbox returns. If it remains absent, run `nemo-deepagents <name> destroy --yes` to remove the stale entry, then run `nemo-deepagents onboard`. Rebuild cannot recreate the missing sandbox because no authoritative OpenShell policy remains. State is recoverable only from an independent host copy restored after onboarding.

### A command reports that the registry file is not valid JSON

Registry operations that require complete sandbox records, such as `nemo-deepagents list` and `nemo-deepagents onboard`, stop with `Configuration file is present but is not valid JSON`, followed by the path to `sandboxes.json` and the recovery commands.

These operations stop instead of reading the file as an empty registry, so they cannot replace your sandbox records with empty state. Optional messaging health checks omit registry-derived information when they cannot read the registry. It does not rename, move, or rewrite the file.

Follow [Malformed Registry File](host-files-and-state#malformed-registry-file) to keep a copy and remove it.

### Status shows "not running" inside the sandbox

This is expected behavior. When checking status inside an active sandbox, host-side sandbox state and inference configuration are not inspectable. The status command detects the sandbox context and reports "active (inside sandbox)" instead.

Run `openshell sandbox list` on the host to check the underlying sandbox state.

## Deep Agents

### `dcode status` reports a stale inference route

`dcode status` uses managed route and upstream provider metadata from the root-owned files `/usr/local/share/nemoclaw/dcode-provider-route` and `/usr/local/share/nemoclaw/dcode-upstream-provider`.
Older images without those files use generated comments in `/sandbox/.deepagents/config.toml` as a fallback.
Model and endpoint settings remain in that native config.

Check the host-recorded route first:

```bash
nemo-deepagents <name> status
```

Then connect and compare the in-sandbox identity:

```bash
nemo-deepagents <name> connect
dcode status
```

If the route or provider identity is missing or stale, rebuild the sandbox to refresh the managed image metadata.
Rebuild replaces the sandbox while preserving the saved native home, including `config.toml` and its model and endpoint settings:

```bash
nemo-deepagents <name> rebuild
```

Reconnect and run `dcode status` again to verify the route and provider identity.
Check model and endpoint values against the saved native config.

For a managed image, named recreation for a verified provider or model change keeps the replacement's generated `config.toml`.
The backup retains the previous file for manual recovery of custom settings.
For unchanged or unverifiable selections, or custom images, recreation restores the saved configuration and can stop if it conflicts with the requested selection:

```bash
nemo-deepagents onboard --fresh --name <name> --recreate-sandbox
```

Follow [Recreate a Deep Agents Sandbox](../inference/manage-inference/switch-providers#recreate-a-deep-agents-sandbox) to change the selection.

### Trusted route-probe helper is missing

Deep Agents sandboxes created by older NemoClaw images may not contain the image-owned `/usr/local/lib/nemoclaw/dcode-managed-exec` helper. Current `connect`, `status`, and `doctor` fail closed when that helper is missing because NemoClaw cannot run the authoritative inference check for the selected provider path safely.

If the output says the trusted Deep Agents Code route-probe helper is missing, rebuild the sandbox with the current image and retry the command:

```bash
nemo-deepagents <name> rebuild
nemo-deepagents <name> status
```

### `dcode` refuses to start because upstream auth state exists

The managed launchers refuse upstream credential state inside `/sandbox/.deepagents/.state/auth.json` and `/sandbox/.deepagents/.state/chatgpt-auth.json`. Those files can contain provider credentials or OAuth state that bypasses NemoClaw's host-owned credential boundary.

Remove the upstream auth state from the sandbox, then start `dcode` again:

```bash
rm -f /sandbox/.deepagents/.state/auth.json /sandbox/.deepagents/.state/chatgpt-auth.json
dcode status
```

Do not put provider credentials in `/sandbox/.deepagents/.env`, project `.env` files, or Deep Agents config files. Register credentials with NemoClaw or OpenShell on the host so the gateway can inject them at egress.

### Managed MCP commands report an older Deep Agents runtime

For the current rebuild and retry workflow, refer to [Agent MCP Capability Is Missing](troubleshoot-mcp-servers#agent-mcp-capability-is-missing).

### Tavily remains blocked after opt-in

Deep Agents does not have a NemoClaw-managed web-search feature. The Tavily flow only opens Python egress for project code or manually configured tools that call Tavily.

Confirm that the target sandbox has the `tavily` preset applied:

```bash
nemo-deepagents <name> policy list
```

If the preset is missing, apply it.
Use the sandbox's recorded `<gateway-port>` and `<gateway-name>` from [Optional Tavily Egress](/nemoclaw/user-guide/deepagents/get-started/quickstart#optional-tavily-egress).
Register the credential on that gateway and attach the provider to the sandbox:

```bash
nemo-deepagents <name> policy add tavily --yes
export TAVILY_API_KEY=tvly-...
NEMOCLAW_GATEWAY_PORT=<gateway-port> nemo-deepagents credentials add tavily-search --type tavily --agent dcode --credential TAVILY_API_KEY
unset TAVILY_API_KEY
openshell sandbox provider attach -g <gateway-name> <name> tavily-search
```

After removal, NemoClaw keeps the saved Tavily selection disabled.
Deep Agents has no managed web-search configuration for a durable Tavily attachment.
Repeat the attachment after each rebuild.

Retry the Tavily request from sandbox Python.
If Tavily is still blocked after attachment, inspect recent policy denials:

```bash
nemo-deepagents <name> logs --tail 50
```

The `tavily` preset is a managed-Python opt-in. It is process-wide for sandbox Python and is not a `dcode`-only boundary.

### Deep Agents read-only path checks fail

The Deep Agents image keeps the managed Python environment under `/opt/venv` read-only and leaves `/sandbox` writable for project and agent state. Writes under `/usr`, `/etc`, or `/opt/venv` should fail, while writes under `/sandbox` and `/tmp` should work.

If a read-only path probe reports that protected paths are writable, rebuild with the current NemoClaw image:

```bash
nemo-deepagents <name> rebuild
```

If startup reports that Landlock enforcement is unavailable, the Deep Agents sandbox fails closed instead of running with reduced filesystem enforcement. Deep Agents uses `compatibility: strict` for its managed filesystem policy, so kernels older than 5.13 or VM-backed Docker runtimes without Landlock support can block sandbox creation. Move the sandbox to a Linux kernel and container runtime that support Landlock, then rerun onboarding or rebuild the sandbox.

### Git clone fails with a certificate verification error

In networks that inspect TLS, OpenShell injects a proxy CA bundle into the sandbox. Current NemoClaw exports that bundle as `GIT_SSL_CAINFO` during sandbox startup and persists it for `nemo-deepagents <name> connect` sessions, so Git can trust the proxy CA. It also forwards standard CA bundle variables for subprocesses, including `GIT_SSL_CAPATH`, `CURL_CA_BUNDLE`, and `REQUESTS_CA_BUNDLE`.

If Git still reports `server certificate verification failed`, reconnect to the sandbox and check that the CA variables are present:

```bash
env | grep -E 'SSL_CERT_FILE|GIT_SSL_CAINFO|CURL_CA_BUNDLE|REQUESTS_CA_BUNDLE' || true
```

`grep` exits non-zero when it finds no matches, so empty output (with the trailing `|| true`) simply means none of these CA variables are set in the current shell.

If they are missing on an older sandbox, upgrade NemoClaw and run:

```bash
nemo-deepagents <name> rebuild
```

### A request inside the sandbox fails with `CONNECT tunnel failed, response 403`

Sandbox outbound network access is denied by default and enforced by the OpenShell proxy. When a request targets a host that no applied policy preset allows, the proxy refuses the tunnel and tools surface only the protocol-level error:

```text
fatal: unable to access 'https://example.com/foo/bar/': CONNECT tunnel failed, response 403
curl: (56) CONNECT tunnel failed, response 403
```

A `CONNECT` 403 means the proxy refused the tunnel.
The tool error alone does not confirm why the proxy refused it.
Check the sandbox logs from the host before changing policy.

When you run a command through `nemo-deepagents <name> exec -- ...` and it exits non-zero, NemoClaw checks the sandbox audit log for a policy denial recorded after the command started. If it finds one, it appends a short breadcrumb to stderr after the tool's own output, naming the denied `host:port` when it can be extracted safely and showing the commands below:

```text
curl: (56) CONNECT tunnel failed, response 403
nemo-deepagents: recent network policy denial detected for example.com:443 inside sandbox 'oc-fresh'.
  The sandbox's egress policy blocked this request; the tool above only saw the proxy's 403.
  See the denied flow:    nemo-deepagents oc-fresh logs --tail 50
  Review applied presets: nemo-deepagents oc-fresh policy list
  Allow the host:         nemo-deepagents oc-fresh policy add <preset>
  Silence this hint:      export NEMOCLAW_NO_POLICY_HINT=1
```

If the log probe fails, no breadcrumb is added. Unsafe endpoint data is omitted from the breadcrumb, and an invalid sandbox name is shown as `<name>`.
The breadcrumb reports a recent denial. Match its destination and time to the failed request before treating policy as the cause.

An IPv6 target is named in its RFC 3986 bracketed form:

```text
nemo-deepagents: recent network policy denial detected for [2001:db8::1]:443 inside sandbox 'oc-fresh'.
```

The tool's own stdout/stderr bytes and its exit code are left unchanged. The breadcrumb is printed by the host CLI after the command finishes, and only for a failed command with a fresh denial. A command that succeeds prints no breadcrumb. A failed command can still print the audit-setting notice described below. Set `NEMOCLAW_NO_POLICY_HINT` to any non-empty value other than `0` or case-insensitive `false` (for example, `1`, `true`, `TRUE`, `yes`, or `YES`) to skip the policy-denial probe, its audit-setting attempt, and the breadcrumb entirely.

The first interactive `nemo-deepagents <name> connect` shell also prints a one-line reminder of this denial signature and the `logs` command below. The reminder is shown once per top-level interactive session, and only when all of these hold: an egress proxy is configured, the shell is interactive with a terminal attached to stderr, and it is a top-level shell (not a nested subshell or pane). Suppress it with `NEMOCLAW_NO_POLICY_HINT=1`. The reminder names the sandbox when NemoClaw receives a valid sandbox name during sandbox creation. If no valid name is available, it shows `<name>`; run `nemo-deepagents list` to see your sandbox names. If the reported sandbox name contains characters that are not valid in a sandbox name (uppercase letters, underscores, control characters, and similar) or exceeds 19 characters, the reminder shows the `<name>` placeholder for safety rather than echoing the untrusted value. The reminder is intentionally proactive: the denial itself is surfaced by the OpenShell proxy, so the `curl`/`git` error text is left unchanged and the reminder points you to the logs instead.

To check for a recent policy denial, read the merged logs from the host:

```bash
nemo-deepagents <name> logs --tail 50
```

These logs combine gateway and OpenShell entries. Match the denial's destination and time to the failed request before adding a preset. A denial for another request does not confirm this request was blocked. If the last 50 lines have no match, inspect more log lines before deciding why the request failed.

Reading sandbox logs, or checking for a policy denial after a failed `nemo-deepagents <name> exec` when policy hints are enabled, attempts to enable OpenShell OCSF JSON audit logging for that sandbox. NemoClaw prints a notice before attempting to update `ocsf_json_enabled`.

To keep the current OpenShell audit setting, set `NEMOCLAW_NO_AUTO_AUDIT_LOGS=1` before running either command. Policy denial hints may be unavailable if audit logging is disabled. You can enable it explicitly with `openshell settings set <name> --key ocsf_json_enabled --value true`.

If a matching log entry confirms a policy denial and the host should be reachable, allow
it with a built-in preset or apply a
[reviewed custom preset file](../network-policy/configure-policies/create-custom-policy-presets) from
the host:

```bash
nemo-deepagents <name> policy add <preset>
```

```bash
nemo-deepagents <name> policy add --from-file ./my-preset.yaml --yes
```

Replace `<preset>` with a real preset name such as `github`, `pypi`, or `npm`. Run `nemo-deepagents <name> policy add` with no preset to list the available presets.

### Onboarding or Sandbox Creation Reports a TLS Certificate Error

Use this recovery when the preserved OpenShell detail for global policy inspection or sandbox creation identifies a gateway certificate-trust failure during onboarding.
The OpenShell gateway certificate may have changed since the CLI last trusted it.
Refresh trust for the registered gateway, then resume onboarding:

```bash
openshell gateway trust -g nemoclaw
nemo-deepagents onboard --resume
```

### Inference requests time out

Verify that the inference provider endpoint is reachable from the host. Check the active provider and endpoint:

```bash
nemo-deepagents <name> status
```

On a normal status read with verified gateway and sandbox state, the main `Inference` line checks the provider path from inside the sandbox and sends an inference request over the reachable path the agent uses. If gateway or sandbox state is not verified, status reports `Inference: not verified (gateway/sandbox state not verified)` and sends no inference request. For shared-route providers, including owned Local NVIDIA NIM, `status` probes `https://inference.local/v1/models` before it sends the request through `https://inference.local`. For NVIDIA Endpoints, fixed hosted selections, new hosted compatible selections outside the Personal tier, and qualified new local selections with a recorded native attachment, it verifies that attachment and sends the request to the selected native endpoint; it does not probe `inference.local`. When an inference request returns a transient gateway status, `status` makes up to three request attempts before it reports a failure. Shared-route retries repeat the route probe and request, while native providers retry only the native request. It prints the next attempt and two-second delay to stderr before each retry. Each inference request attempt has a 90-second request timeout. If a verified native NVIDIA attachment returns HTTP `429`, `500`, `502`, `503`, or `504`, or a confirmed timeout after bounded retries, `status` reports `degraded` and exits `0`. The model response remains unverified. Run `nemo-deepagents <name> connect --probe-only` to require a successful inference request before accepting readiness. If the main line shows `unauthorized`, `unhealthy`, `unreachable`, or `not probed`, inspect the labeled diagnostic lines to identify the failing hop. An `unauthorized` line means the route answered but rejected the request, so refresh the provider credential rather than the route.

If status reports `Inference: not probed (another lifecycle operation is in progress)`, the unlocked read skipped provider-path and inference probes; JSON output sets `inferenceProbeSuppressed: true`. Wait for the lifecycle operation to finish and run status again before diagnosing the route or credential.

For Hermes native NVIDIA routes, status also checks the managed credential reference in the Hermes configuration. If this check reports an invalid or stale credential, run `nemo-deepagents <name> rebuild --yes` to refresh it. Then rerun `nemo-deepagents <name> status` and confirm inference is healthy. If status reports that the installed image lacks the credential verifier, rebuild to install it, then rerun status. For other unavailable-verification results, follow the printed sandbox health and access recovery guidance.

Hermes live qualification for the new local lifecycle remains pending.

For local Ollama and local vLLM, `Inference (ollama backend)` or the corresponding local-backend line reports the host-side service separately. If a local-backend diagnostic fails, start the backend. For Local Ollama, current releases can also print `Inference (auth proxy)` when a proxy token is available. Docker Desktop on Windows Subsystem for Linux (WSL) reaches host loopback directly, so its auth-proxy diagnostic is non-authoritative. Native Docker Engine inside WSL is unqualified; enable Docker Desktop WSL integration, then rerun onboarding.

On non-WSL hosts that front Ollama with the auth proxy, run `nemo-deepagents <name> connect` when the auth-proxy result is `unreachable` to restart the proxy with its persisted token. If the result is `unauthorized`, rerun onboarding to rotate the rejected proxy token and refresh the route. Follow the printed detail for any other auth-proxy failure. For Ollama-backed OpenClaw sandboxes, agent passthrough uses the registered host route to warm an unloaded model after an Ollama daemon restart. If that bounded warm-up fails or times out, NemoClaw reports the result and continues so OpenClaw can emit its canonical backend error.

If the endpoint is correct but requests still fail, check for network policy rules that may block the connection. Then verify the credential and base URL for the provider you selected during onboarding.

If you entered an AWS Bedrock Runtime URL such as `https://bedrock-runtime.us-east-1.amazonaws.com` in the **Other Anthropic-compatible endpoint** flow, NemoClaw auto-detects it and routes sandbox traffic through a host-local adapter. Use the raw Bedrock Runtime host, not an Anthropic `/v1/messages` path, and verify that the model ID or inference profile ID is valid for that region. For auth, export `AWS_BEARER_TOKEN_BEDROCK`, `AWS_PROFILE`, or standard IAM environment credentials before onboarding; if you paste a key at the `COMPATIBLE_ANTHROPIC_API_KEY` prompt, NemoClaw uses it only as the adapter's Bedrock bearer token. Region errors usually mean the pasted endpoint region, `AWS_REGION`, `AWS_DEFAULT_REGION`, or the model/inference profile ID do not match.

The adapter advertises model IDs to readiness checks only after that running adapter completes a successful inference request for them.
Onboarding performs this request before checking sandbox readiness; failed requests do not add a model to the catalog.
This uses the existing Bedrock Runtime inference permissions and does not query the Bedrock control-plane catalog.

For Ollama, vLLM, NIM, and compatible-endpoint inference validation, the default timeout is 180 seconds. The managed NIM startup health wait uses a separate 20-minute (1,200-second) default and still exits early if the container stops before it becomes healthy. On Docker 29.x or hosts using the containerd image store, managed NIM onboarding resolves and pulls the host-platform image digest when NGC exposes a multi-architecture image index. If you still see NGC repository-format or attestation errors, confirm Docker can run `docker manifest inspect` for the selected image and that you are logged in to `nvcr.io`. If large prompts still cause timeouts, increase it with `NEMOCLAW_LOCAL_INFERENCE_TIMEOUT` before re-running onboard:

```bash
export NEMOCLAW_LOCAL_INFERENCE_TIMEOUT=300
nemo-deepagents onboard
```

For local Ollama and vLLM, onboarding retries the container reachability check and can fall back to the host-side health check when the local backend is healthy. If Ollama times out during a cold model load, NemoClaw retries once with a 300-second probe budget before failing. If all attempts fail, the error includes container reachability diagnostics such as HTTP status and host gateway resolution.

`NEMOCLAW_LOCAL_INFERENCE_TIMEOUT` covers the inference-server validation probe and each request of the native local or provider-neutral inference check that onboarding and rebuild run inside the sandbox, with a 60-second minimum for that check. The post-create readiness wait has its own budget (`NEMOCLAW_SANDBOX_READY_TIMEOUT`); refer to [Sandbox onboard times out with "did not become ready within Ns"](#sandbox-onboard-times-out-with-did-not-become-ready-within-ns) for the readiness path.

### Sandbox onboard times out with "did not become ready within Ns"

Onboarding ends with:

```text
  Sandbox 'my-assistant' was created but did not become ready within 180s.
  terminal_resolution: timed_out_retained
  Recovery remains blocked while sandbox 'my-assistant' exists.
```

This is a separate budget from `NEMOCLAW_LOCAL_INFERENCE_TIMEOUT`. It covers the readiness wait that follows sandbox creation, including in-sandbox boot, OpenClaw start, and policy load. It does not cover the inference probe.

When sandbox startup fails, NemoClaw can print the last redacted lines from the failed Docker sandbox container. It saves captured output as `sandbox-container.log` in the reported diagnostics directory. This output is available only when NemoClaw can identify and inspect the container. Inspect the diagnostic file before you share it.

The 180-second default fits typical workstations but can be exceeded when:

* The host is building or uploading the sandbox image for the first time (cold caches, slow link).
* The selected model is large (70B+ parameters or 4-bit/8-bit quantisations that take time to memory-map).
* Onboarding runs on a remote VM where image upload to the gateway streams over the network (for example DGX Station first-run installer).

Raise the budget before re-running onboard:

```bash
export NEMOCLAW_SANDBOX_READY_TIMEOUT=600
nemo-deepagents onboard
```

The variable accepts seconds and applies to the readiness wait only. When the ordinary create deadline expires, NemoClaw preserves the partially created sandbox because OpenShell deletion targets its mutable name. Same-name onboarding remains blocked while that sandbox exists. Run `nemo-deepagents <sandbox-name> destroy` to check retained recovery. Do not delete the sandbox by mutable name.

The failure path also differs when NemoClaw recreates an OpenShell-managed Docker runtime immediately before this wait. NemoClaw pins the exact OpenShell sandbox ID before recreation. Within the same deadline, NemoClaw requires two consecutive `Ready` observations that each confirm the exact ID and successful command execution. It retries OpenShell's exact `sandbox is not ready` response and completed nonzero executable probes that return no output. If the deadline expires, the ID changes, a probe returns a nonempty terminal diagnostic, or another probe fails, NemoClaw preserves diagnostics and attempts to restore the pre-recreation Docker container. If restoration fails, NemoClaw reports that the sandbox and container state is uncertain. NemoClaw does not start dashboard or other host forwarding, and it does not delete a sandbox by its mutable name. It leaves the sandbox in place for inspection and recovery.

If readiness still fails after the extended budget, inspect the gateway and sandbox status:

```bash
openshell sandbox list
nemo-deepagents <name> status
```

If onboarding instead reports that the sandbox "did not re-register with OpenShell after policy application," the same timeout controls that post-policy command-readiness probe. Raise the budget before retrying, then inspect the same gateway and sandbox status if re-registration still fails.

### Sandbox onboard fails with "entered Error phase before it became ready"

Onboarding ends with:

```text
  Sandbox 'my-assistant' entered Error phase before it became ready (waited up to 180s).
```

On a fresh onboard the OpenShell gateway can (re)start its supervisor session and re-register the just-created sandbox. During that window `openshell sandbox list` briefly reports the sandbox in the transient `Error` phase before it flips to `Ready`, as seen on DGX Spark when supervisor restart races the sandbox bootstrap.

NemoClaw polls immediately, starts retrying after 250ms, and backs off to a 2-second cap.
It tolerates 30 consecutive `Error` observations by default so this transient recovers on its own.
Only `Error` that persists through the debounce count is terminal, unless the overall `NEMOCLAW_SANDBOX_READY_TIMEOUT` deadline expires first.
Every terminal observation outside the `Error` phase, including one with no reported phase, fails immediately.

If your host needs more observations for slower re-registration, raise the debounce. Raise `NEMOCLAW_SANDBOX_READY_TIMEOUT` too if the overall deadline is too short. To fail fast on the first `Error` poll, set the debounce to `1`:

```bash
export NEMOCLAW_SANDBOX_READY_ERROR_DEBOUNCE=1
nemo-deepagents onboard
```

If the failure persists after the debounce, the sandbox is stuck. Inspect the retained diagnostics and gateway state:

```bash
openshell sandbox list
nemo-deepagents <name> status
```

### Landlock filesystem policy blocks sandbox startup

Deep Agents uses strict Landlock compatibility. If the host kernel, Docker VM, or sandbox filesystem mount cannot enforce the managed read-only policy, OpenShell refuses to start the sandbox instead of silently degrading.

Run Deep Agents on a Linux kernel 5.13 or later with a container runtime that exposes Landlock to the sandbox. After moving to a compatible host or runtime, rerun onboarding or rebuild the sandbox:

```bash
nemo-deepagents <name> rebuild
```

### Sandbox lost after gateway restart

Sandboxes created with OpenShell versions older than 0.0.24 can become unreachable after a gateway restart because SSH secrets were not persisted. Running `nemo-deepagents onboard` automatically upgrades OpenShell to 0.0.24 or later during the preflight check. After the upgrade, recreate the sandbox with `nemo-deepagents onboard`.

### DNS-backed HTTPS endpoint is not supported

NemoClaw rejects an explicit custom endpoint when it resolves a public HTTPS hostname but cannot pin the same peer address across the downstream OpenShell runtime boundary while preserving TLS SNI and host validation. This can appear during a direct blueprint run, custom-endpoint onboarding, or a Hermes host-side `config set` write.

Use an HTTPS IP-literal endpoint whose certificate is valid for that address. If your deployment permits non-TLS provider traffic, you can instead use a public HTTP endpoint that NemoClaw can rewrite to a DNS-pinned address. Do not bypass the check with a private or internal address or by editing the persisted sandbox config directly. For the full endpoint rules, refer to [Meet Custom Endpoint Security Requirements](../inference/custom-endpoints/custom-endpoint-security).

### Agent cannot reach external hosts through a proxy

NemoClaw uses a default proxy address of `10.200.0.1:3128` (the OpenShell-injected gateway). If your environment uses a different proxy, set `NEMOCLAW_PROXY_HOST` and `NEMOCLAW_PROXY_PORT` before onboarding:

```bash
export NEMOCLAW_PROXY_HOST=proxy.example.com
export NEMOCLAW_PROXY_PORT=8080
nemo-deepagents onboard
```

These are build-time settings baked into the sandbox image. Changing them after onboarding requires re-running `nemo-deepagents onboard` to rebuild the image.

When `HTTP_PROXY` or `HTTPS_PROXY` is set on the host, NemoClaw adds `localhost`, `127.0.0.1`, `::1`, `0.0.0.0`, the container-host aliases `host.docker.internal` and `host.containers.internal`, and the managed inference hostname `inference.local` to `NO_PROXY` for host-side subprocesses and for the env forwarded into `openshell sandbox create`. This keeps local Ollama health checks, model pulls, and managed inference traffic from being chained through a corporate or desktop proxy at the sandbox-create boundary, while preserving the proxy for external hosts. For the local provider validation probe, NemoClaw removes `HTTP_PROXY`, `HTTPS_PROXY`, and `ALL_PROXY` from the probe process and sets `NO_PROXY=*` instead. A host proxy therefore cannot answer for the local endpoint, including the `host.docker.internal` alias used for Windows-host Ollama. Inside the running sandbox, processes continue to use the OpenShell L7 proxy for `inference.local` so OpenShell's internal routing, DNS, and audit boundaries stay intact.

### Agent cannot reach a host-side HTTP service

When a sandbox needs to call an HTTP service running on the host, use the normal OpenShell network policy path. Expose the service on a host IP address that the OpenShell gateway can reach, create a custom NemoClaw policy preset for that IP and port, and apply it with `nemo-deepagents <sandbox> policy add --from-file`. The sandbox request then flows through the OpenShell proxy while NemoClaw preserves the existing live policy entries.

Do not rely on `host.docker.internal` or `host.openshell.internal` as a general-purpose host-service path. Those names may appear in the sandbox's `/etc/hosts`, but in OpenShell's sandbox network they are not guaranteed to point at a reachable host gateway. Bypassing the proxy with `--noproxy '*'` also bypasses network policy enforcement and audit.

First, make sure the host-side service listens on a non-loopback address. For example, a health endpoint on port `50001` should be reachable from the host IP, not only from `127.0.0.1`:

```bash
curl -s http://10.0.0.5:50001/health
```

Expected output:

```json
{ "status": "ok" }
```

Then create a custom NemoClaw preset for the host-side service. Replace `10.0.0.5`, `50001`, paths, methods, and binaries with the service you want the sandbox to reach:

```yaml
preset:
  name: host-memory-api
  description: "Host memory API"
network_policies:
  host_memory_api:
    name: host_memory_api
    endpoints:
      - host: 10.0.0.5
        port: 50001
        protocol: rest
        enforcement: enforce
        rules:
          - allow: { method: GET, path: "/health" }
    binaries:
      - { path: /usr/bin/curl }
```

Preview the private-host trust pins and the exact binary, method, path, port, and access limits:

```bash
nemo-deepagents my-assistant policy add --from-file ./host-memory-api.yaml --trusted-private-host 10.0.0.5 --dry-run
```

After reviewing the generated `allowed_ips`, apply the same bounded request:

```bash
nemo-deepagents my-assistant policy add --from-file ./host-memory-api.yaml --trusted-private-host 10.0.0.5
```

After you apply the policy, retry the request from inside the sandbox without disabling the proxy:

```bash
curl -s http://10.0.0.5:50001/health
```

Expected output:

```json
{ "status": "ok" }
```

If the request is still denied, check the blocked request in `openshell term`. The policy `binaries` list must include the executable path that actually made the request. If the response changes from `policy_denied` to `upstream_unreachable`, the policy matched, but the OpenShell gateway could not reach the host IP and port.

### Agent cannot reach an external host

OpenShell blocks outbound connections to hosts not listed in the network policy. Open the TUI to see blocked requests and approve them:

```bash
openshell term
```

To permanently allow an endpoint, add it to the network policy.

For Deep Agents, follow [Customize the Network Policy](../network-policy/customize-network-policy) to choose between built-in
presets, reviewed custom presets, baseline edits, and live-policy replacement.

### Ollama auth proxy did not start

NemoClaw keeps Ollama bound to `127.0.0.1:11434` and starts a token-gated reverse proxy on `0.0.0.0:11435` so the sandbox can reach Ollama without exposing it to the local network. If the proxy fails to start, onboarding exits before configuring inference.

Check whether the proxy port is occupied by another process:

```bash
sudo lsof -i :11435
```

Stop the conflicting process and re-run `nemo-deepagents onboard`. The wizard cleans up stale proxy processes from previous runs automatically, so most failures resolve by retrying.

If the proxy refuses to start because the backend also listens on a non-loopback interface, use the remediation that matches the reported backend:

* For Ollama, bind the daemon to the reported loopback port with `OLLAMA_HOST=127.0.0.1:<port>`, then restart Ollama and rerun onboarding.
* For an unauthenticated OpenAI-compatible endpoint, bind that endpoint server to a loopback address only on the reported port, then rerun onboarding. Do not apply the Ollama setting to vLLM, llama-server, or another compatible endpoint.
* If recovery cannot identify the backend type, bind the reported service and port to a loopback address only, then rerun onboarding. The neutral diagnostic intentionally does not name Ollama.

In every case, the refusal prevents a backend listener from bypassing the protected route's token check. For an IPv6 endpoint, keep it on its IPv6 loopback address instead of changing it to `127.0.0.1`.

The proxy token is persisted to `~/.nemoclaw/ollama-proxy-token` with `0600` permissions. If the file is missing or unreadable after a host reboot, re-running `nemo-deepagents onboard` regenerates it.

### Ollama auth proxy is unreachable from the sandbox

On native Linux Docker-driver hosts, a host firewall can allow the host proxy check but block sandbox traffic to the Ollama auth proxy. When that happens, onboarding exits before it saves the inference route and prints output like:

```text
✗ Sandbox containers cannot reach the Ollama auth proxy at host.openshell.internal:11435.
  A host firewall may be blocking traffic from the OpenShell Docker bridge.
```

Apply the `ufw` command printed by onboarding, then rerun onboarding. If the message does not include a subnet, derive it from the OpenShell Docker network:

```bash
SUBNET=$(docker network inspect openshell-docker --format '{{(index .IPAM.Config 0).Subnet}}')
sudo ufw allow from "$SUBNET" to any port 11435 proto tcp
nemo-deepagents onboard
```

Only an accepted Windows-host Ollama route uses direct Docker Desktop access to port `11434`. WSL-local Ollama uses the auth proxy, including on Docker Desktop WSL. Other hosts without the OpenShell Docker network use different routing models; for proxy-fronted routes, NemoClaw treats an unavailable sandbox-side probe as non-blocking and relies on the regular proxy health check.

### `host.docker.internal` does not reliably reach the host from the sandbox

Configuring an inference provider with a base URL like `http://host.docker.internal:11434/v1` does not reliably reach a host Ollama service from inside the OpenShell sandbox. OpenShell runs sandboxes inside a k3s network, where `host.docker.internal` is not a reliable host-service route. Depending on the platform, it may fail DNS resolution or resolve to an internal gateway/bridge address where the host's port `11434` is not forwarded. The sandbox then sees a DNS failure or `connection refused`:

```bash
getent hosts host.docker.internal
```

A native Linux Docker bridge can return an address such as this example:

```text
172.17.0.1      host.docker.internal host.openshell.internal
```

With Docker Desktop WSL integration, the aliases can instead resolve to an IPv6 unique-local address in `fc00::/7`, such as `fdc4:f303:9324::254`.
New native-local host-alias profiles admit private IPv4 and IPv6 unique-local addresses while retaining the selected hostname and port restrictions.
Public, link-local, and loopback IPv6 addresses remain excluded.
A valid DNS result does not prove that the host service is reachable.
In the IPv4 example, this request still fails if the host service is not forwarded to port `11434`:

```bash
no_proxy=host.docker.internal curl -v http://host.docker.internal:11434/api/tags
```

Expected output:

```text
* connect to 172.17.0.1 port 11434 failed: Connection refused
```

For local Ollama on non-WSL hosts, use the auth-proxy URL that NemoClaw's "Local Ollama" onboard option configures automatically:

```text
http://host.openshell.internal:11435/v1
```

`host.openshell.internal` resolves to the same gateway IP, and the [token-gated Ollama auth proxy](#ollama-auth-proxy-did-not-start) binds port `11435` there and forwards requests to `127.0.0.1:11434` on the host. Only an accepted Windows-host Ollama route uses direct Docker Desktop access to port `11434`; WSL-local Ollama uses the authenticated proxy even with Docker Desktop. Native Docker Engine inside WSL is unqualified; enable Docker Desktop WSL integration instead of configuring the proxy URL manually. If you need a different host service exposed to the sandbox, route it through the OpenShell gateway rather than relying on `host.docker.internal`. Refer to issue [#3136](https://github.com/NVIDIA/NemoClaw/issues/3136).

### Local inference health check resolves to IPv6

Local inference health checks now use `127.0.0.1` instead of `localhost`. On systems where `localhost` resolves to `::1` first, older NemoClaw releases could probe the wrong address and report the local backend as unreachable even when it was running. If you see this on a current NemoClaw release, verify that the local backend binds an IPv4 address and not only `::1`.

### Blueprint run failed

View the error output for the failed blueprint run:

```bash
nemo-deepagents <name> logs
```

Use `--follow` to stream logs in real time while debugging.

## DGX Spark

For an end-to-end walkthrough with local inference on DGX Spark, refer to the [NVIDIA Spark playbook](https://build.nvidia.com/spark/nemoclaw).

### Host freezes or logs `NVRM NV_ERR_NO_MEMORY` under local vLLM load

Treat a full host freeze separately from an agent tool-call hang. If the Spark stops responding to SSH and ping, and the journal contains `NVRM NV_ERR_NO_MEMORY` or no software-side crash record, first isolate the local inference server before changing MCP or network policy configuration. For onboarding-time context, refer to [Use an Existing Server](../inference/local-inference/set-up-vllm#use-an-existing-server).

Check whether vLLM is a bring-your-own server or the NemoClaw managed Spark profile:

Inspect the running containers, current memory, and kernel evidence:

```bash
docker --context default ps --format 'table {{.Names}}\t{{.Image}}\t{{.Status}}\t{{.Ports}}'
free -h
journalctl -k --since "24 hours ago" --no-pager | grep -Ei 'NVRM|OOM|out of memory|lockup|watchdog'
```

For a NemoClaw-managed Spark profile, derive the host port from the managed container's fixed `8000/tcp` mapping.
New containers publish that host port on `127.0.0.1` and the private `openshell-docker` bridge gateway, independently of bearer authentication.
Existing containers keep their published bindings until they are recreated.
Managed route recovery rejects owned bearerless containers with unsafe bindings.
To recreate the container, follow [Handle a Running vLLM Server](../inference/local-inference/set-up-vllm#handle-a-running-vllm-server) with the original model and port settings.

```bash
VLLM_HOST_PORT="$(
  docker --context default port nemoclaw-vllm 8000/tcp |
    sed -n 's/^.*:\([0-9][0-9]*\)$/\1/p' |
    sort -u
)"
case "$VLLM_HOST_PORT" in
  ""|*[!0-9]*)
    printf '%s\n' 'Could not identify one managed vLLM host port.' >&2
    exit 1
    ;;
esac
if [ "$VLLM_HOST_PORT" -lt 1024 ] || [ "$VLLM_HOST_PORT" -gt 65535 ]; then
  printf 'Invalid managed vLLM host port: %s\n' "$VLLM_HOST_PORT" >&2
  exit 1
fi
curl -fsS "http://127.0.0.1:${VLLM_HOST_PORT}/health"
```

For an existing vLLM server, set `NEMOCLAW_VLLM_PORT` to its host port in the current shell:

```bash
VLLM_HOST_PORT="${NEMOCLAW_VLLM_PORT:?Set NEMOCLAW_VLLM_PORT to the existing vLLM host port.}"
curl -fsS "http://127.0.0.1:${VLLM_HOST_PORT}/health"
```

Both checks use `/health` because a managed profile can require bearer authentication for `/v1/models`.

For an existing vLLM server, inspect its launch arguments:

```bash
docker inspect <vllm-container> --format '{{json .Config.Cmd}}'
```

Large checkpoints without explicit quantization, very long `--max-model-len` values, high `--gpu-memory-utilization`, and multiple concurrent sequences all consume the Spark's shared CPU/GPU memory pool. Before reintroducing agent tools, restart vLLM with a smaller envelope, for example:

```bash
vllm serve <model> \
  --max-model-len 32768 \
  --gpu-memory-utilization 0.75 \
  --max-num-seqs 1 \
  --max-num-batched-tokens 4096
```

If the host still logs `NVRM NV_ERR_NO_MEMORY` while loading the model, switch to a smaller or quantized checkpoint. For managed setup, prefer `NEMOCLAW_PROVIDER=install-vllm`, which selects the Spark profile and its registered model-specific serve arguments. After standalone vLLM is stable, re-run onboarding and add MCP servers back one group at a time.

### CoreDNS CrashLoop after onboarding

If CoreDNS in the embedded k3s cluster crashes shortly after setup, it is usually because it resolves against `127.0.0.11`, which does not route inside the gateway container. Run `fix-coredns.sh` to point CoreDNS at the container gateway IP instead, then recreate the sandbox.

### `k3s` cannot find a freshly built image

After building a new sandbox image, `k3s` inside the gateway container sometimes fails to pull it even though the image exists on the host. Remove the gateway registration, then resume onboarding. If a privileged host gateway remains, do not use a host-wide process match. Verify its live owner, exact gateway name and port, command line, PID file, runtime marker, and loaded sandbox namespace immediately before you stop it.

```bash
openshell gateway remove nemoclaw
nemo-deepagents onboard --resume
```

### GPU passthrough on Spark

GPU passthrough is not CI-tested on DGX Spark. It is expected to work when you pass `--gpu` and the NVIDIA Container Toolkit is configured. Verify the toolkit is configured by running `docker run --rm --runtime=nvidia --gpus all nvidia/cuda:12.8.0-base-ubuntu24.04 nvidia-smi` from the host. If `nvidia-smi` works on the host but onboarding says GPU passthrough was not enabled, install or repair the NVIDIA Container Toolkit, then run `sudo nvidia-ctk runtime configure --runtime=docker && sudo systemctl restart docker`. If a reusable gateway was previously started without GPU passthrough, NemoClaw replaces it automatically only when no other registered sandboxes depend on it, or when `--recreate-sandbox` is recreating the only registered sandbox with the same name. When shared gateway cleanup would be unsafe, follow the targeted destroy or gateway-removal commands printed by onboarding.

### `unresolvable CDI devices nvidia.com/gpu=all` during gateway start

Recent NVIDIA Container Toolkit installs configure the Docker daemon for Container Device Interface (CDI) device injection, which a GPU-enabled gateway start then auto-selects. If no `nvidia.com/gpu` CDI spec has been generated on the host yet, gateway start fails with `Docker responded with status code 500: CDI device injection failed: unresolvable CDI devices nvidia.com/gpu=all`. Outside Station Express, the standard NemoClaw installer detects this gap before onboarding, first tries to enable the NVIDIA CDI refresh systemd units, and can fall back to generating the spec directly with `nvidia-ctk`. Station Express never falls back to direct CDI generation. The generic Ubuntu, Colossus BaseOS, and exact AI Developer Tools paths require the packaged refresh lifecycle to work; if it fails or omits `nvidia.com/gpu=all`, inspect `nvidia-cdi-refresh.service`, repair it, and rerun the printed exact-commit install command. Other factory-runtime profiles stop when the CDI device is missing without enabling or restarting the refresh units. If you run `nemo-deepagents onboard` directly, preflight prints the manual remediation instead. The native Linux fix is the same on Docker hosts whose `docker info` advertises a non-empty `CDISpecDirs`. On WSL with Docker Desktop, Docker may advertise CDI directories even though `--device nvidia.com/gpu=all` is not usable from the WSL distro. For that runtime, NemoClaw skips Linux CDI repair and uses Docker's `--gpus` compatibility path for sandbox GPU access. This compatibility path can be retired once Docker Desktop exposes usable `nvidia.com/gpu` CDI specs inside WSL, or once OpenShell no longer requires host-visible CDI specs for Docker Desktop WSL GPU passthrough.

Enable the refresh units, verify they list `nvidia.com/gpu` entries, then rerun onboarding:

```bash
sudo systemctl enable --now nvidia-cdi-refresh.path nvidia-cdi-refresh.service
nvidia-ctk cdi list
nemo-deepagents onboard
```

For other native Linux installations, if the refresh units are unavailable or do not generate CDI devices, generate the spec directly:

```bash
sudo mkdir -p /etc/cdi
sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
nvidia-ctk cdi list
```

On WSL with Docker Desktop, confirm Docker Desktop WSL integration is enabled for your distro and run the [canonical Docker proof and capacity query](#gpu-setup-fails-with-a-placeholder-gpu-name) from WSL.

If GPU passthrough is not required on this host, rerun onboarding with `--no-gpu` instead.

### GPU routing or compatibility patch failed

The route depends on the host environment and the operator control. Identify the matching path before applying the recovery guidance.

| Symptom                                                                                                                                                                 | Route or stage                  | Recovery                                                                                                                                                                                                                                                                                                                                                                         |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Native `--gpu` is rejected, host runtime evidence identifies GPU injection failure, or an explicit driver proof fails and host configuration confirms no GPU attachment | Ordinary Linux native attempt   | The default native-only route stops. Retry with `NEMOCLAW_DOCKER_GPU_PATCH=fallback` only if you explicitly accept one bounded compatibility retry, or use `=1` to select compatibility before creation.                                                                                                                                                                         |
| `Cleanup could not be proven safe`                                                                                                                                      | Native-to-compatibility handoff | Run the printed sandbox deletion command, verify both the gateway row and OpenShell-managed Docker containers labeled for that sandbox are absent, then rerun onboarding.                                                                                                                                                                                                        |
| The patched container exits or the compatibility attempt fails                                                                                                          | Compatibility recreation        | Inspect the saved diagnostics and the rollback outcome, then repair the NVIDIA Container Toolkit/CDI configuration. Keep the sandbox when the pre-patch container was restored. Use only a container-specific cleanup command printed after rollback. If no command was printed, inspect the sandbox and its labeled containers before removing anything. Then rerun onboarding. |
| A recreated container inherits only a loopback DNS stub and no usable upstream                                                                                          | Compatibility DNS fallback      | Repair the host's `systemd-resolved` upstream configuration, then rerun onboarding.                                                                                                                                                                                                                                                                                              |

For bridge-networked compatibility recreation without an explicit container DNS setting, NemoClaw selects a usable IPv4 upstream from `systemd-resolved` and probes that exact `--dns` path before it stops the original container. If the probe confirms that the resolver is unreachable, recreation stops and leaves the original container in place. An IPv6-only upstream list does not become a compatibility override; NemoClaw preserves Docker's default resolver path instead. Containers with explicit DNS settings or host networking keep their existing DNS path and do not use the fallback probe.

#### Ordinary native Linux bounded fallback

Ordinary Linux GPU onboarding uses native OpenShell GPU injection and stops on failure by default. Unset, `auto`, and `0` all preserve this native-only confinement boundary. `NEMOCLAW_DOCKER_GPU_PATCH=fallback` is the explicit operator authorization for one bounded retry. With that control set, if sandbox creation rejects the native GPU flag before progress, the exact OpenShell-managed container labeled for that sandbox records a host runtime GPU-injection error, or an explicit `nvidia-smi` driver proof fails while that container's immutable host configuration confirms that no GPU was attached, NemoClaw captures redacted diagnostics before one compatibility retry.
For a native flag rejection before creation progress, it proves that the sandbox and its labeled containers are absent without deleting by name.
For the other eligible failures, it requires verified cleanup before retrying.
When the managed runtime requires cleanup tied to its recorded resource identities, NemoClaw stops before the compatibility retry.
Free-form build/list text and sandbox-reported CUDA output never independently authorize the broader retry. Without corroborating host evidence, onboarding fails closed even when `fallback` is set and directs the operator to clean up and explicitly select compatibility with `NEMOCLAW_DOCKER_GPU_PATCH=1` if desired. Before the authorized retry, NemoClaw warns that the legacy GPU compatibility envelope recreates the OpenShell-managed Docker container and may relax container confinement compared with native injection. Specifically, compatibility recreation adds `SYS_PTRACE`, adds `apparmor=unconfined` when the original container has no AppArmor option, and uses a compatibility policy that makes `/proc` writable for the NVIDIA runtime's process-name initialization. These broader settings are why onboarding warns before the swap and retains a native-only opt-out. NemoClaw verifies cleanup with two stable checks (that sandbox is absent from the gateway list and no OpenShell-managed Docker containers labeled for that sandbox remain) before retrying through the compatibility path. Cleanup is polled at most five times, one second apart, and both conditions must pass twice consecutively; otherwise onboarding stops before the retry. These fail-closed safety limits are the internal constants `STABLE_ABSENCE_CHECKS` (2), `MAX_CLEANUP_ATTEMPTS` (5), and `CLEANUP_POLL_INTERVAL_MS` (1,000 ms); they are not configurable through environment variables. The first observation is immediate, so the default bound performs at most four one-second sleeps plus the five gateway/container queries. The bounds are intentionally fixed. Allowing environment input to weaken or extend the cleanup proof would make a security gate deployment-dependent. On a host that cannot prove absence within the bound, onboarding fails closed; select compatibility from the outset with `NEMOCLAW_DOCKER_GPU_PATCH=1` instead of weakening the handoff proof. If deletion or container cleanup cannot be proven safe, onboarding stops before the retry and prints manual cleanup guidance. Image build, upload, TLS, provider, policy, dashboard, and inference failures stay on their existing error paths and do not trigger the GPU compatibility fallback. Set `NEMOCLAW_DOCKER_GPU_PATCH=1` to use only the compatibility path for diagnostics or older host compatibility. Other legacy nonzero values keep that behavior through the `v0.0.x` release line and will be removed in `v0.1.0`.

#### Docker Desktop WSL compatibility route

Automatic GPU onboarding uses the compatibility path directly; it does not make a native attempt first. The path creates the sandbox and then recreates the OpenShell-managed Docker container with NVIDIA GPU flags. `NEMOCLAW_DOCKER_GPU_PATCH=0` is ignored because this runtime requires the compatibility patch for GPU passthrough, and onboarding logs a warning when it is set. To skip GPU passthrough entirely, rerun with `--no-gpu` or set `NEMOCLAW_SANDBOX_GPU=0`.

#### Jetson and Tegra compatibility default

Automatic GPU onboarding uses the compatibility path directly; it does not make a native attempt first. The path recreates the OpenShell-managed Docker container with NVIDIA GPU flags and propagates eligible host group IDs for the supported Jetson GPU device nodes. Use `NEMOCLAW_DOCKER_GPU_PATCH=0` only for troubleshooting because it bypasses that group propagation and CUDA may not initialize.

#### Common compatibility-path recovery

After compatibility recreation starts, onboarding keeps the pre-patch container as a rollback backup until OpenShell reports the replacement as Ready or Running and it passes direct GPU and applicable local-inference checks. If a later check fails, onboarding prints failure diagnostics and attempts to restore the pre-patch container before it exits. When rollback succeeds, the pre-patch sandbox remains available. If the failed replacement may remain and NemoClaw retains its validated exact container ID, it prints only an exact-container `docker rm -f` command. When a replacement is not stably running, the failure diagnostic includes its exact runtime ID, inspected state, and a bounded redacted log tail when available. If replacement cleanup cannot be confirmed without a validated exact ID, onboarding reports cleanup as unknown and prints no deletion command. When rollback fails, onboarding reports that the sandbox and container state is uncertain and prints no deletion command. A diagnostic bundle captured before rollback records cleanup as pending and contains no deletion command. Inspect the diagnostics, the sandbox, and its labeled Docker containers before removing anything.

> **Note**
>
> Starting with NemoClaw v0.0.43, the standard installer handles the `/proc/<pid>/task/<tid>/comm` permission case during this patch path.
> If an older release fails direct GPU proof with that path and `Permission denied`, upgrade NemoClaw and rerun onboarding.

When the failed sandbox remains, recovery stays blocked because OpenShell deletion targets its mutable name. Inspection is diagnostic only and does not authorize deletion. Run `nemo-deepagents <sandbox-name> destroy` to check for authoritative absence. Fix the NVIDIA Container Toolkit or CDI configuration reported in the diagnostics. Rerun onboarding only after retained recovery completes. If you do not need GPU access inside the sandbox, use `--no-sandbox-gpu` when onboarding can continue.

If sandbox creation fails with `CDI device injection failed: unresolvable CDI devices nvidia.com/gpu=all`, the OpenShell gateway tried `docker create --device nvidia.com/gpu=all` and Docker could not resolve the CDI spec. This injection happens inside the gateway, so `NEMOCLAW_DOCKER_GPU_PATCH=0` does not bypass it. Rerun with `--no-gpu`, or set `NEMOCLAW_SANDBOX_GPU=0` and resume onboarding.

If onboarding reports `OpenShell supervisor did not reconnect to the GPU-enabled container.` even though the diagnostic bundle shows the patched container is running and healthy, the supervisor-reconnect wait is treating a transient Error phase (reported while the OpenShell host re-registers the new container) as fatal. The reconnect wait debounces consecutive Error-phase polls before fast-failing, defaulting to 60 consecutive polls of about 120 seconds in total. Increase the debounce window with `NEMOCLAW_DOCKER_GPU_SUPERVISOR_RECONNECT_ERROR_DEBOUNCE` if your host needs more time to re-register the patched container, for example slow WSL2 + Docker Desktop setups. Set it to an integer above the default of 60, such as `120` (about 240 seconds), and rerun onboarding; the value is clamped to a minimum of `1`. If reconnect still fails after the GPU patch, NemoClaw attempts to restore the pre-patch CPU container before exiting. When rollback succeeds, the output says the pre-patch sandbox was restored. When rollback fails, the error says rollback failed and the pre-patch container was not restored, so inspect Docker state before retrying.

### `pip install` fails with a system-packages error

Recent Ubuntu releases (including DGX Spark's Ubuntu 24.04) mark the system Python install as externally managed, so `pip install` without a virtual environment fails. Use a venv instead. Avoid `--break-system-packages` unless you understand the risk, since it can break host tooling.

```bash
python3 -m venv ~/.venvs/nemoclaw
source ~/.venvs/nemoclaw/bin/activate
pip install ...
```

### Port 3000 conflict with AI Workbench

NVIDIA AI Workbench's Traefik proxy binds ports 3000 and 10000. If you run other services on Spark that expect port 3000, bind them to a different port.

## Windows Subsystem for Linux

For environment setup steps, refer to [Windows Prerequisites](../get-started/additional-setup/windows-preparation).

### `wsl --install --no-distribution` returns Forbidden (403)

Check your network connectivity. If you are behind a VPN, try reconnecting or switching to a different network. If your network or Windows image blocks the online WSL installer, install WSL manually with Microsoft's [offline install guidance](https://learn.microsoft.com/en-us/windows/wsl/install#offline-install). Download the latest official WSL `.msi` package from the [Microsoft WSL releases page](https://github.com/microsoft/WSL/releases/latest), choose the matching `.x64.msi` or `.arm64.msi`, install it, reboot if Windows requests it, then rerun `wsl --status`.

### Bootstrap says "Windows Subsystem for Linux is not fully installed"

The bootstrap script checks `wsl --status` before it installs or opens Ubuntu. If Windows reports that the WSL runtime is not installed, the script attempts `wsl --install --no-distribution` automatically. If the repair command succeeds and WSL reports that the changes require a reboot, reboot and let the bootstrap resume after sign-in. If the repair command succeeds but WSL still cannot be verified and the output does not request a reboot, follow the printed repair guidance instead of rebooting by default. If the repair command fails, follow the printed repair steps. If the repair command returns `Forbidden (403)` or remains blocked, install WSL manually with Microsoft's [offline install guidance](https://learn.microsoft.com/en-us/windows/wsl/install#offline-install). Download the latest official WSL `.msi` package from the [Microsoft WSL releases page](https://github.com/microsoft/WSL/releases/latest), choose the matching `.x64.msi` or `.arm64.msi`, install it, reboot if Windows requests it, then rerun the bootstrap script. Use the same repair flow if the bootstrap says "Windows Subsystem for Linux could not be verified" and reports a nonzero `wsl --status` exit code.

### Bootstrap says "Windows reports that WSL 2 cannot start yet"

The bootstrap script attempts `wsl --install --no-distribution` automatically when `wsl --status` reports that WSL 2 cannot start. If the repair command succeeds, reboot when prompted and let the bootstrap resume after sign-in. If the message persists after repair and reboot, enable virtualization in firmware and confirm that the Virtual Machine Platform optional component is enabled. Manual WSL installation only helps when the WSL runtime is missing or the online installer is blocked.

### `wsl -d Ubuntu` says "There is no distribution with the supplied name"

The Ubuntu package was installed with `--no-launch` but never registered, or Windows finished the install command before the distribution appeared in `wsl -l`. When this happens during the NemoClaw bootstrap, the script prints a sanitized `WSL install output` block. PowerShell transcript headers, footers, temporary transcript paths, and status-file paths are redacted before display so you can paste the useful WSL output into a bug report with less local machine metadata.

If the sanitized output says a reboot is required, reboot and rerun the bootstrap. If it does not request a reboot, register the distro manually or reinstall without `--no-launch`:

```bash
wsl --unregister Ubuntu
wsl --install -d Ubuntu
```

### Bootstrap says a Docker executable "is not signed by a trusted publisher"

The bootstrap script runs elevated, so before it launches `Docker Desktop.exe` or uses `docker.exe`, it checks the resolved executable's Authenticode signature and refuses to run one that is not validly signed by Docker. The script accepts `Docker Inc` as the certificate subject common name. If Docker changes the signer identity, the script refuses the executable until maintainers verify the signer on an official Docker download and update the allowlist. For a current-user installation, the administrator child completes the system changes and returns to the original non-elevated PowerShell process before the script starts Docker Desktop or uses its CLI. If you started the script from an elevated PowerShell window, rerun it from a normal PowerShell window so it can use the current-user installation without administrator privileges. Reinstall Docker Desktop from [docker.com](https://www.docker.com/products/docker-desktop/) or `winget install --id Docker.DockerDesktop`, then rerun the bootstrap script. If reinstalling does not clear the warning, treat the existing executable as untrusted and do not run it manually either.

The script continues after this warning instead of stopping, so the [`docker info` fails inside WSL](#docker-info-fails-inside-wsl) symptom below can appear a few minutes later even though the real cause is the untrusted executable, not WSL integration.

### `docker info` fails inside WSL

Confirm that Docker Desktop is running and that WSL integration is enabled for Ubuntu (Settings > Resources > WSL integration). Then restart WSL:

```bash
wsl --shutdown
wsl -d Ubuntu
docker info
```

### Windows-host Ollama is installed but not shown during onboarding

When NemoClaw runs inside WSL, it checks the Windows-host Ollama HTTP endpoint, the Windows `ollama.exe` process, the listener address, and HTTP `Host` validation.
It reuses the Windows route only when the listener is loopback-only, Docker Desktop can reach it, and an untrusted `Host` value receives `403`.
The route also requires `DOCKER_HOST` to be unset and Docker to use its local `default` context.
If Ollama is installed but does not pass those checks, the wizard should still offer a restart action and the WSL-local install.

If the Windows-host option does not appear, confirm that PowerShell interop is enabled in WSL and that Windows can locate Ollama:

```bash
powershell.exe -NoProfile -Command "Get-Process ollama -ErrorAction SilentlyContinue"
```

If the process is missing, start Ollama from Windows and rerun onboarding.
If the process exists but the endpoint is unprotected or unreachable, use the restart action when the wizard offers it.
The action sets `OLLAMA_HOST=127.0.0.1:11434` and verifies that an untrusted `Host` value is rejected.
If Docker Desktop cannot reach that protected route, choose WSL-local Ollama.
If Docker uses another context or `DOCKER_HOST` selects an endpoint, switch to the local `default` context and unset `DOCKER_HOST`, or choose WSL-local Ollama.
Do not set `OLLAMA_HOST=0.0.0.0:11434`.

### Ollama inference fails or hangs in WSL

Ollama configures context length based on your hardware.

Verify that Ollama inference works:

```bash
echo "Hello" | ollama run <model-id>
```

Replace `<model-id>` with the model you selected during onboarding (for example `qwen3.5:4b`).

If `ollama serve` fails with `Error: listen tcp 127.0.0.1:11434: bind: address already in use`, check whether Ollama is configured for automatic startup:

```bash
sudo systemctl status ollama
```

If it is active, stop it first, then start with the custom context length:

For additional troubleshooting, refer to the [Windows Setup](../get-started/additional-setup/windows-preparation) page.

## Podman

NemoClaw supports a native managed rootless Podman runtime provider.

For native rootless Podman on Linux, select the provider explicitly:

```bash
NEMOCLAW_GATEWAY_RUNTIME=podman nemo-deepagents onboard
```

Native preflight fails closed unless the current-user Podman socket and service, rootless engine, cgroups v2 hierarchy, bridge networking, DNS, host architecture, exact managed-image contract, and `lsof` listener enumeration are all qualified.
It accepts Podman's standard rootless layout: a `0660` current-user socket in a `0755` `podman` directory below a private current-user runtime directory, such as `/run/user/<UID>` at `0700`.
It rejects a world-writable socket, a group-writable socket without a private current-user directory in its path, and a path component writable by another user or group.
If `lsof` is unavailable, install it through the host's package-management policy and retry; NemoClaw does not install it.
Do not redirect it with `DOCKER_HOST`, `DOCKER_CONTEXT`, `CONTAINER_HOST`, or a named Podman connection; restore the current user's reported socket authority and retry with the explicit selector.
Native Podman supports stock managed-image onboarding and digest-pinned OpenClaw or Hermes images through `--from-image`.
Use the Docker provider for an explicit `--from <Dockerfile>` or a read-only host mount.