This guide documents how to install NVIDIA OpenShell for the AgentOps demo:
| Target | Use case | Section |
|---|---|---|
| macOS / Linux workstation | Local dev, CLI, Podman sandboxes | Local install |
| OpenShift / RHOAI cluster | Demo gateway on OCP with Kubernetes driver | OpenShift cluster deployment |
OpenShell provides sandboxed, zero-trust execution for AI agents.
Official references:
- OpenShell Installation (CLI)
- OpenShift install guide (Helm chart)
- Helm chart README — Secret bootstrap
A working OpenShell setup has two components:
| Component | Role |
|---|---|
openshell CLI |
Creates sandboxes, applies policies, manages providers |
openshell-gateway |
Daemon that talks to the compute driver (Podman, Docker, MicroVM, Kubernetes) |
Local: the project installer (scripts/install-openshell.sh) installs both components, configures Podman as the compute driver, and starts a gateway on https://127.0.0.1:17670.
Cluster: the Helm chart deploys the gateway into OpenShift; sandboxes are provisioned by the Kubernetes driver via the Red Hat build of Agent Sandbox Operator.
In Cursor, use the OpenShell skills for each scenario — see Install via Cursor skills.
| Scenario | Install skill | Cleanup skill |
|---|---|---|
| Local (macOS/Linux workstation) | openshell-local-install |
openshell-local-cleanup |
| Cluster (OpenShift/RHOAI) | openshell-cluster-install |
openshell-cluster-cleanup |
Important:
openshellis not in Homebrew core. Do not runbrew install openshelldirectly. Use the official install script, which adds thenvidia/openshelltap on macOS.
- Network access to GitHub releases and container registries (for sandbox images)
- A supported compute driver for creating sandboxes (see Compute Drivers)
- macOS on Apple Silicon (
arm64) - Homebrew
- One of: Podman 5.x, Docker Desktop 28+, or host virtualization for MicroVM
- glibc 2.28+ (Debian/Ubuntu, RHEL/Fedora; Alpine/musl not supported by packages)
- Package manager:
dnf/yum(RPM) orapt(Debian package) - For Podman driver: Podman 5.x, cgroups v2, rootless networking, active user socket
Three ways to install or remove the local OpenShell stack, from easiest to most manual:
| Method | Best for | Install | Uninstall |
|---|---|---|---|
| Cursor skills (local) | Workstation setup via agent | openshell-local-install |
openshell-local-cleanup |
| Cursor skills (cluster) | OpenShift deploy via agent | openshell-cluster-install |
openshell-cluster-cleanup |
| Project scripts | Terminal / CI (local) | scripts/install-openshell.sh |
scripts/uninstall-openshell.sh |
| Deploy Makefile | Terminal / CI (cluster) | make -C deploy deploy-openshell |
make -C deploy undeploy-openshell |
| Manual steps | Custom setups | Official NVIDIA script | Package manager + manual cleanup |
| Skill | Path | Use when you want to… |
|---|---|---|
openshell-local-install |
.cursor/skills/openshell-local-install/ |
Install OpenShell on your Mac/Linux workstation |
openshell-local-cleanup |
.cursor/skills/openshell-local-cleanup/ |
Remove local OpenShell (CLI, gateway, config) |
openshell-cluster-install |
.cursor/skills/openshell-cluster-install/ |
Deploy OpenShell gateway on OpenShift |
openshell-cluster-cleanup |
.cursor/skills/openshell-cluster-cleanup/ |
Uninstall OpenShell from OpenShift |
Example prompts (local):
Install OpenShell on my Mac
Uninstall OpenShell locally
Example prompts (cluster):
Deploy OpenShell on OpenShift
Remove OpenShell from the cluster
From the repo root, run the project installer:
./scripts/install-openshell.shScript: scripts/install-openshell.sh
The installer wraps the official NVIDIA OpenShell install script and automates the full local stack setup for the AgentOps demo.
| Step | macOS | Linux |
|---|---|---|
| Install OpenShell CLI + gateway | Homebrew tap nvidia/openshell |
RPM (dnf/yum) or .deb (apt) |
| Install Podman (default driver) | brew install podman + podman machine |
dnf/yum/apt install |
| Configure compute driver | Writes ~/.config/openshell/gateway.env |
Same |
| Start / restart gateway | brew services restart openshell |
systemctl --user + loginctl enable-linger |
| Register local gateway | openshell gateway add --local |
Same |
| Smoke test | openshell status (with retries) |
Same |
| Variable / flag | Default | Description |
|---|---|---|
--help |
— | Show usage |
--dry-run |
off | Print planned actions without making changes |
OPENSHELL_VERSION |
latest | Pin OpenShell release (e.g. 0.0.58) |
OPENSHELL_DRIVER |
podman |
Compute driver: podman, docker, or vm |
SKIP_PODMAN |
0 |
Set to 1 to skip Podman install and machine setup |
LOCAL_GATEWAY_URL |
https://127.0.0.1:17670 |
Gateway endpoint to register |
Pin a specific OpenShell version:
OPENSHELL_VERSION=0.0.58 ./scripts/install-openshell.shUse Docker instead of Podman:
OPENSHELL_DRIVER=docker SKIP_PODMAN=1 ./scripts/install-openshell.shPreview planned actions without making changes:
./scripts/install-openshell.sh --dry-runTo remove everything installed by the project installer, use a Cursor skill (see Install via Cursor skills) or run the script directly:
Via Cursor: ask the agent to uninstall locally — it uses the openshell-local-cleanup skill.
Via script:
./scripts/uninstall-openshell.sh --yesScript: scripts/uninstall-openshell.sh
Preview planned actions without making changes:
./scripts/uninstall-openshell.sh --dry-runRemove the Homebrew tap on macOS:
REMOVE_BREW_TAP=1 ./scripts/uninstall-openshell.sh --yes| Component | macOS | Linux |
|---|---|---|
| Gateway registration | openshell gateway remove |
Same |
| Gateway service | brew services stop openshell |
systemctl --user disable --now openshell-gateway |
| OpenShell packages | brew uninstall openshell |
dnf/yum/apt remove openshell, openshell-gateway |
| User configuration | ~/.config/openshell/ |
Same |
| Runtime data | $(brew --prefix)/var/openshell |
— |
Note:
--yesis required to perform the uninstall. Podman is never removed — it may be used outside this demo.
curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | shThe script:
- Adds the Homebrew tap
nvidia/openshell - Installs the
openshellformula (CLI + gateway) - Starts the gateway via
brew services - Generates mTLS certificates under
~/.config/openshell/gateways/openshell/mtls/
Install a specific version:
OPENSHELL_VERSION=0.0.58 curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | shRequires uv:
uv tool install -U openshellYou must run and register the gateway separately when installing from PyPI.
The official install script targets Apple Silicon with a generated Homebrew formula. On Intel Macs, prefer the PyPI install or download release artifacts from GitHub Releases.
curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | shThe script detects the OS and installs:
| Distribution | Package | Service |
|---|---|---|
| RHEL / Fedora | RPM | openshell-gateway (systemd user unit) |
| Debian / Ubuntu | .deb |
openshell-gateway (systemd user unit) |
Enable the gateway to survive logout (recommended on servers and workstations):
sudo loginctl enable-linger "$USER"
systemctl --user enable --now openshell-gatewayInstall a specific version:
OPENSHELL_VERSION=0.0.58 curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | shAfter dnf install of the RPM packages:
systemctl --user enable --now openshell-gateway
openshell gateway add --local https://127.0.0.1:17670
openshell statusSee OpenShell RPM Quick Start.
Required on first use:
openshell gateway add --local https://127.0.0.1:17670openshell statusIf auto-detection fails or you want a specific runtime, configure the gateway before creating sandboxes.
Option A — environment file (works well on macOS with Homebrew service):
mkdir -p ~/.config/openshell
echo 'OPENSHELL_DRIVERS=podman' > ~/.config/openshell/gateway.envRestart the gateway:
# macOS
brew services restart openshell
# Linux
systemctl --user restart openshell-gatewayOption B — gateway TOML:
# ~/.config/openshell/gateway.toml
[openshell.gateway]
compute_drivers = ["podman"]Gateway config reference: Gateway Configuration.
OpenShell supports one compute driver per gateway. Auto-detection order (when unset): Kubernetes → Podman → Docker. MicroVM (vm) is never auto-detected.
| Driver | macOS | Linux (RHEL/Fedora) | Notes |
|---|---|---|---|
| Podman | Yes (via podman machine) |
Yes (native rootless) | Preferred for demo clusters aligned with OpenShift/Podman workflows |
| Docker | Yes (Docker Desktop) | Yes | Common for local dev |
MicroVM (vm) |
Yes (Hypervisor.framework) | Yes (KVM) | VM-backed sandboxes; set explicitly |
| Kubernetes | N/A (gateway on cluster) | Yes (Helm chart) | Production / cluster deployment |
Full driver reference: Sandbox Compute Drivers
Podman on Mac runs inside a Linux VM (podman machine). OpenShell connects to the Podman API socket on the host.
brew install podman
podman machine init # first time only
podman machine start
podman machine list # should show "Currently running"
podman infoForce the Podman driver (auto-detection on macOS may skip Podman if Docker is absent):
mkdir -p ~/.config/openshell
echo 'OPENSHELL_DRIVERS=podman' > ~/.config/openshell/gateway.env
brew services restart openshellIf the socket is not found automatically:
podman machine inspect --format '{{.ConnectionInfo.PodmanSocket.Path}}'
# Typical: $HOME/.local/share/containers/podman/machine/podman.sockOn macOS, the Podman driver defaults host_gateway_ip to 192.168.127.254 (gvproxy) so sandboxes can reach the gateway host.
sudo dnf install -y podman
podman info # confirm rootless socket is activeConfigure OpenShell:
[openshell.gateway]
compute_drivers = ["podman"]Or:
echo 'OPENSHELL_DRIVERS=podman' > ~/.config/openshell/gateway.env
systemctl --user restart openshell-gateway# macOS
brew install --cask docker
# Start Docker Desktop, then:
openshell status
# Linux — use Docker Engine 28+ or Podman with docker.sock compatibilitySet explicitly if needed:
[openshell.gateway]
compute_drivers = ["docker"][openshell.gateway]
compute_drivers = ["vm"]Requires host virtualization (Hypervisor.framework on macOS, KVM on Linux).
brew services list
brew services restart openshell
brew services stop openshellLogs and config:
- Gateway listen address:
https://127.0.0.1:17670 - Optional config:
~/.config/openshell/gateway.toml - Homebrew fallback config:
/opt/homebrew/var/openshell/gateway.toml - CLI mTLS bundle:
~/.config/openshell/gateways/openshell/mtls/
systemctl --user status openshell-gateway
systemctl --user restart openshell-gateway
journalctl --user -u openshell-gateway -fAfter install and driver configuration:
openshell status
openshell sandbox list
# Example: create a sandbox (requires a configured inference provider / API key)
export ANTHROPIC_API_KEY=sk-...
openshell sandbox create -- claudeProvider setup: Manage Providers
| Symptom | Cause | Fix |
|---|---|---|
No available formula with the name "openshell" |
OpenShell not installed; tap missing | Run ./scripts/install-openshell.sh or the official install script, not brew install openshell |
brew services restart openshell fails |
Gateway never installed via Homebrew | Run ./scripts/install-openshell.sh first |
openshell status shows Connection refused right after install |
Gateway still starting after service restart | Wait a few seconds and retry; the project installer retries automatically |
no compute driver configured and auto-detection found no suitable driver |
No Docker/Podman/K8s detected | Set OPENSHELL_DRIVERS=podman in ~/.config/openshell/gateway.env and restart gateway |
| Podman running but gateway does not see it (macOS) | Socket path / auto-detect bug | Set OPENSHELL_DRIVERS=podman; confirm podman machine is running |
openshell doctor only checks Docker |
Known limitation on some versions | Verify podman info manually and set driver explicitly |
| Gateway not reachable after logout (Linux) | User systemd session ended | sudo loginctl enable-linger "$USER" |
Deploy the OpenShell gateway on OpenShift as a single Helm release (openshell, namespace openshell). The wrapper chart deploy/helm/openshell/ declares the upstream OCI chart as a real Helm subchart dependency (pinned 0.0.83 in Chart.yaml / Chart.lock). For the full Agent Sandbox + OpenShell + OpenClaw architecture and launch flow, see Agent Sandbox and OpenShell — How It Works. For RHOAI platform bootstrap (prerequisite), see cluster-bootstrap.md.
Experimental: the Kubernetes/OpenShift deployment path is under active development upstream. Pin chart and image versions deliberately (ADR-0006).
openshell CLI ──HTTPS/mTLS──► Route (openshell-gw)
│
▼
openshell-gateway (StatefulSet)
│
▼
Red Hat Agent Sandbox Operator (OLM)
│
▼
Sandbox pods (privileged SCC)
OpenClaw runs inside a sandbox (not a plain Deployment). Browser access to the Control UI goes through openclaw-ui-proxy (nginx mTLS bridge) — see ADR-0011.
| Requirement | Notes |
|---|---|
OpenShift 4.x with oc configured |
Cluster admin or sufficient RBAC in target namespace |
| Helm 3.x | For OCI chart install from GHCR |
| RHOAI platform deployed | make -C deploy deploy-all (or deploy-operators + deploy-platform minimum) |
| Red Hat build of Agent Sandbox Operator (OSC 1.13) | OLM Subscription via deploy-operators — channel preview-0.9, CSV agent-sandbox-operator.v0.9.0 |
APPS_DOMAIN |
Cluster apps domain (e.g. apps.ocp.example.com) — required for deploy-openshell and UI proxy |
| Local OpenShell CLI | For openshell-register-gateway (run automatically by deploy-openshell) — see local install |
Install operators (once per cluster):
make -C deploy deploy-all
# or minimum: make -C deploy deploy-operatorsVerify Agent Sandbox Operator:
oc get csv -n agent-sandbox-system
oc get crd sandboxes.agents.x-k8s.ioRecommended:
APPS_DOMAIN=apps.ocp.example.com make -C deploy deploy-openshellThis target:
- Waits for the
sandboxes.agents.x-k8s.ioCRD (from the OLM operator). - Runs
helm dependency build(resolves upstream chart perChart.lock). - Installs one Helm release with chart
values.yaml(SCC RoleBinding, Route, gateway StatefulSet). - Labels the namespace for the RHOAI Dashboard (
opendatahub.io/dashboard=true). - Waits for rollout and PKI secrets.
- Enables MLflow RBAC for OpenClaw tracing (
deploy-mlflow-openclaw-integration). - Registers the gateway with your local CLI and syncs mTLS certs (
openshell-register-gateway, aliasocpby default).
Chart location: deploy/helm/openshell/. Architecture and history: ADR-0003.
Full demo stack (platform + OpenShell + UI + OpenClaw):
./scripts/cluster-lifecycle.sh full
# or from repo root: make demoOn macOS with Podman (no Docker Desktop), Helm may fail pulling OCI charts with docker-credential-desktop not found. The Makefile sets DOCKER_CONFIG automatically; for manual helm commands:
mkdir -p /tmp/helm-nodocker && printf '{}' > /tmp/helm-nodocker/config.json
export DOCKER_CONFIG=/tmp/helm-nodockerOr remove "credsStore": "desktop" from ~/.docker/config.json if you do not use Docker Desktop.
Required for browser access to the OpenClaw gateway inside the sandbox:
APPS_DOMAIN=apps.ocp.example.com make -C deploy deploy-openclaw-ui-proxyThen launch OpenClaw (creates sandbox if missing). Requires secrets/secrets.env with MAAS_API_KEY and OPENCLAW_GATEWAY_PASSWORD:
./scripts/launch-openclaw.shControl UI: https://openclaw-gw--openclaw-ui.<APPS_DOMAIN>/ (enter gateway password or use /?password=...).
Or use the combined agent target:
APPS_DOMAIN=apps.ocp.example.com make -C deploy deploy-agentBy default, a pre-install Helm hook Job runs openshell-gateway generate-certs and creates:
| Secret | Purpose |
|---|---|
openshell-jwt-keys |
Ed25519 signing key for sandbox JWTs |
openshell-server-tls |
Gateway server certificate |
openshell-client-tls |
Client mTLS certificate for CLI and sandboxes |
This works on OpenShift without disabling pkiInitJob. The certgen Job security context is compatible with the restricted SCC (NVIDIA/OpenShell#2089).
Do not set pkiInitJob.enabled=false unless you manage TLS and JWT secrets externally. If you disable it without pre-creating openshell-jwt-keys, the gateway pod fails with:
MountVolume.SetUp failed for volume "sandbox-jwt" : secret "openshell-jwt-keys" not found
Upstream reference: Helm README — Secret bootstrap.
make -C deploy validate-openshell
openshell status # expect: Connected (gateway alias ocp by default)
oc -n openshell get rolebinding | grep privileged
oc -n openshell rollout status statefulset/openshellExpected secrets: openshell-jwt-keys, openshell-server-tls, openshell-client-tls. Expected RoleBinding: openshell-sandbox-privileged-scc on SA openshell-sandbox. Expected gateway logs: TLS enabled — listening on encrypted HTTPS.
Full agent validation:
make -C deploy validate-openclaw
make -C deploy validate-tracesdeploy-openshell runs openshell-register-gateway automatically. The gateway is reached via the cluster Route (openshell-gw), not port-forward. mTLS client certs are synced to:
~/.config/openshell/gateways/<GATEWAY_NAME>/mtls/{ca.crt,tls.crt,tls.key}
Default GATEWAY_NAME is ocp. Re-register or refresh certs:
make -C deploy openshell-register-gateway
# or mTLS only:
GATEWAY_NAME=ocp make -C deploy openshell-sync-mtls
openshell statusExpected: Status: Connected.
| Artifact | Pinned value |
|---|---|
| Wrapper chart | agentops-openshell:0.3.0 (deploy/helm/openshell/) |
| Upstream OCI chart | oci://ghcr.io/nvidia/openshell chart helm-chart:0.0.83 — Chart.yaml dependencies[].version + Chart.lock |
| Agent Sandbox Operator | channel preview-0.9, CSV agent-sandbox-operator.v0.9.0 (deploy/helm/operators/values.yaml) |
| UI proxy chart | openclaw-ui-proxy:0.1.0 (deploy/helm/openclaw-ui-proxy/) |
Bump versions deliberately and re-test on the target cluster before updating manifests (ADR-0006).
Remove OpenShell and the UI proxy (does not remove the Agent Sandbox Operator or RHOAI):
make -C deploy undeploy-openshellFull platform + OpenShell teardown:
make -C deploy undeploy-everythingPVCs created by the StatefulSet may be retained. To force namespace removal:
oc delete ns openshell| Symptom | Cause | Fix |
|---|---|---|
secret "openshell-jwt-keys" not found |
pkiInitJob.enabled=false without manual JWT secret |
Reinstall with default pkiInitJob or pre-create the secret |
docker-credential-desktop not found (Helm OCI pull) |
Stale Docker Desktop config on macOS/Podman host | Makefile sets DOCKER_CONFIG; or fix ~/.docker/config.json |
FAIL: CRD sandboxes.agents.x-k8s.io not available |
Agent Sandbox Operator not ready | make -C deploy deploy-operators; wait for CSV Succeeded |
certgen Job Failed |
RBAC or image pull issues | oc -n openshell logs job/openshell-certgen |
Sandbox pods Failed |
Missing privileged SCC on openshell-sandbox |
Re-run make -C deploy deploy-openshell |
invalid peer certificate: BadSignature |
Stale local mTLS bundle | make -C deploy openshell-register-gateway |
certificate not valid for name "openshell-gw-openshell.<domain>" |
Server cert missing Route SAN | undeploy-openshell then redeploy (certgen does not rotate existing certs on upgrade) |
| Control UI password rejected | Stale config or wrong password | Re-run launch-openclaw.sh; use OPENCLAW_GATEWAY_PASSWORD from secrets/secrets.env |
Sandbox activity is logged in OCSF format inside each sandbox pod at /var/log/. From your workstation:
openshell logs <sandbox-name> --tail --source sandboxSee Sandbox Logging. MLflow traces: ADR-0010.
- docs/AGENT-SANDBOX-AND-OPENSHELL.md — canonical architecture and
launch-openclaw.shprocedure .cursor/skills/openshell-cluster-install/— OpenShift deploy (agent skill).cursor/skills/openshell-cluster-cleanup/— OpenShift uninstalldeploy/helm/openshell/— wrapper chartdeploy/Makefile—deploy-openshell,deploy-openclaw-ui-proxy,validate-openshell- AGENTS.md — platform stack
- Cluster Bootstrap Guide — RHOAI platform deploy (prerequisite)
- ROADMAP.md — Phase 1.5 OpenShell + OpenClaw integration