Published: 2026-11-28
Summary

NVIDIA OpenShell hands-on: deny-by-default network, rules proposed from denials, placeholder API keys

Chapters / key moments (click to jump — plays here on the page)

OpenShell is NVIDIA's sandbox runtime for agents and the isolation layer NemoClaw is built on. Each agent runs in its own container with no network access except one channel to a supervisor, and the real API keys never enter the sandbox. The video runs the full loop on Ubuntu. The exact commands are not read out in the video, so use the OpenShell documentation for them; this page records the workflow and what the demo proved.

Source video

"OpenShell Tutorial: Safe, Private Runtime for Autonomous AI Agents" by Fahd Mirza — Watch on YouTube → The video asks viewers to subscribe to the creator's newsletter; nothing below depends on it.

The workflow shown

  1. Docker Engine 28 or newer on the host. The video upgrades Docker first.
  2. Install OpenShell with the one-line installer, then check its status shows connected and authenticated.
  3. Add a provider key (the demo uses OpenRouter; Anthropic, OpenAI and others work) and import a provider profile from the OpenShell repository. A profile says which service may be reached and which program may use it.
  4. Create a sandbox from an agent image (the demo uses an OpenCode image), attach the provider and open a shell inside it. Pick a model and start the agent.
  5. Watch it fail closed. Asked to call GitHub, the agent reports no external network access. The policy logs show every attempt denied.
  6. Turn denials into proposed rules. OpenShell generates rules from the logged denials; the demo approves only the GitHub rule and leaves the others blocked.
  7. Retry without restarting. The approved rule loads into the running sandbox and the same prompt now succeeds, while the logs still show the other destinations denied.

What the demo proved

  • The agent never holds the key. Printing the API-key variable inside the sandbox returns a placeholder string. OpenShell swaps in the real key only for requests to the approved provider, so a leaked or prompt-injected agent gives an attacker nothing usable.
  • System folders are read-only inside the sandbox; the temp folder is writable.
  • Plain network calls with no AI involved are blocked too.
  • Architecture: agent in a container or VM, a supervisor that checks policy and injects credentials, and a gateway that stores policies, providers and sandboxes. An approver flags risky rule changes; by default you approve manually, or automatically when no new risk is found. It can also run on Kubernetes.

For running OpenClaw or Hermes inside OpenShell through NemoClaw, see the NemoClaw setup guide and NemoClaw policy guide.

What you can actually set up from this

Extracted from the video's own transcript — the specifics the original summary left out.

Gotchas

  • OpenShell needs Docker Engine 28 or newer on the host; the video upgrades Docker before installing.
  • Everything is denied by default, including plain network calls with no AI involved, so expect the first run of any agent to fail closed until you approve rules.
  • Approve rules one destination at a time from the proposed list; the demo approved only GitHub and the other proposed destinations stayed blocked.
  • Printing the API-key variable inside the sandbox shows a placeholder, not your key; the real key is added outside the sandbox only for approved provider requests.
  • The video does not read out its commands; take them from NVIDIA's OpenShell documentation.

Weekly Digest — In Your Inbox

Get the week's top AI agent news, updates, and guides — every Friday.