NVIDIA OpenShell: Kernel-Level Sandbox for AI Agents
NVIDIA has released OpenShell, an open-source runtime for executing autonomous AI agents inside sandboxed environments with kernel-level isolation. The pitch is direct: agents are most useful when they can read files, install packages, call APIs, and use credentials, but that exact access is what makes them dangerous. That tension has sharpened as open source AI models have grown capable enough to drive agents that act on real filesystems and networks. OpenShell tries to split the difference by keeping an agent’s capability intact while enforcing explicit controls over everything it can touch. For teams thinking through enterprise AI adoption, it is the first serious attempt by a major infrastructure vendor to treat “which agent gets which permissions” as a first-class, declarative problem rather than a container configuration afterthought.
The timing is not accidental. Coding agents like Claude Code, OpenCode, Codex, and GitHub Copilot CLI now ship with the implicit assumption that they will be pointed at a local directory and given a shell. That works fine for a solo developer who audits every command, and it breaks down the moment an agent runs unattended in a CI pipeline or against a production-adjacent environment. OpenShell is NVIDIA’s answer to that gap, and it matters because it frames agent security as policy that can be reviewed, versioned, and audited — the same way infrastructure teams already treat Terraform or Kubernetes manifests.
How OpenShell works
OpenShell is built around three stable runtime components: the CLI, the Gateway, and the Supervisor. The CLI, SDK, and a terminal UI are the user-facing surfaces. The Gateway is the control plane — it owns API access, durable state, policy and settings delivery, provider configuration, and relay coordination. The Supervisor runs inside every sandbox workload and acts as the local security boundary: it launches the agent as a restricted child process and enforces policy at the exact point where process identity, filesystem access, network egress, and runtime credentials are visible.
That split matters more than it might seem. The Gateway owns platform state (sandboxes, policy revisions, provider records, session records, authorization decisions), while a sandbox owns its local execution boundary. Each sandbox Supervisor connects outbound to a known Gateway endpoint, authenticates as a sandbox workload, and keeps a live session open. This design sidesteps the classic problem of reaching into a pod’s network namespace: the Gateway delivers desired state, the Supervisor applies it locally, and if a config refresh fails, the Supervisor keeps the last-known-good config and leaves static isolation controls in place until the sandbox is recreated.
OpenShell can run on a single local machine or in a remote Kubernetes cluster. The CLI workflow stays the same either way — you point the CLI at a Gateway, and the Gateway provisions sandboxes through whatever compute driver it is configured with. Runtimes, schedulers, secret stores, identity providers, image pipelines, and GPU exposure remain owned by the platforms that already provide them. OpenShell layers its own control-plane semantics on top instead of trying to replace any of that infrastructure.
The four protection layers
OpenShell applies defense in depth across four policy domains. Understanding them is the fastest way to see what the tool actually protects and where its limits are.
Filesystem uses Landlock, a Linux Security Module, to confine access to declared paths only. This is a static control: it is locked at sandbox creation and requires destroying and recreating the sandbox to change. In practice that means a coding agent cannot read your ~/.ssh directory or your cloud credential files unless those paths are explicitly declared in the policy.
Network routes all ordinary egress through a CONNECT proxy paired with an OPA policy engine. This one is hot-reloadable at runtime, so you can tighten or loosen what a running agent can reach without rebuilding the sandbox. Outbound connections to unapproved destinations are denied, and policy can inspect HTTP methods, paths, and even GraphQL operation types when you enable Layer 7 inspection.
Process blocks privilege escalation and dangerous syscalls with seccomp BPF plus a privilege drop. The Supervisor runs the agent as an unprivileged sandbox user, rejects root, disables core dumps, and blocks syscalls like mount, pivot_root, bpf, and module loading. This closes the long-lived privileged remount and kernel-surface window that most container escapes rely on.
Inference is the layer most people have not seen before. OpenShell routes all model traffic through a gateway that isolates provider credentials from the sandbox entirely — the agent never sees the raw API key. It intercepts requests to an internal inference.local endpoint, injects credentials on the host side, and even denies reuse of a keep-alive connection that previously carried inference traffic for a different destination. The practical effect is that an agent cannot exfiltrate your Anthropic or OpenAI key by reading environment variables, because the key never enters the sandbox process.
Here is the threat model NVIDIA lays out, and it is the clearest summary of what the layers are for:
| Threat | Without controls | With OpenShell |
|---|---|---|
| Data exfiltration | Agent uploads source code or internal files to unauthorized endpoints | Network policies allow only approved destinations |
| Credential theft | Agent reads SSH keys or cloud credentials | Filesystem restrictions confine access to declared paths |
| Unauthorized API usage | Agent sends data to unapproved model providers | Provider profiles and network policies restrict model traffic |
| Privilege escalation | Agent attempts sudo or setuid paths | Unprivileged identity and seccomp restrictions block escalation |
AI Agent Framework Comparison: Where OpenShell Fits
The AI agent framework space in 2026 splits roughly into three camps, and OpenShell does not cleanly sit in any of them. The first camp is the orchestration frameworks — LangGraph, CrewAI, AutoGen, and the like — which are about structuring an agent’s reasoning and tool calls, not about containing what the agent can do to your machine. They assume the process is already trusted. The second camp is container-based isolation, where teams wrap agents in Docker or gVisor. That gives you a boundary but no policy language for what the agent may access, so people end up either over-provisioning (mount everything) or under-provisioning (mount nothing useful). The third camp is enterprise gateways from the major cloud vendors, which typically wrap model access with role-based controls but do not extend those controls to filesystem and process behavior.
OpenShell is closest to the second camp, but it adds the missing piece: a declarative YAML policy that spans filesystem, network, process, and credentials, version-controlled like any other piece of infrastructure. That is genuinely different from “run it in a container.” A container gives you isolation; OpenShell gives you isolation plus an auditable answer to the question “what is this agent allowed to do, and who approved it?” For a security reviewer, that second thing is often the entire ballgame.
The trade-off is complexity. OpenShell introduces a Gateway component you have to run and secure, a policy schema you have to learn, and a mental model where static controls only change on sandbox recreation. For a solo developer shipping a weekend project, that is overkill. For a platform team that needs to let dozens of engineers run coding agents against a monorepo without handing out raw credentials, it is probably the least-bad option currently available.
Getting started
Installation is two commands. The first pulls the installer, the second creates your first sandbox:
curl -fsSL https://openshell.nvidia.com/install.sh | sh
openshell sandbox create
The default sandbox image is published as ghcr.io/nvidia/openshell-community/sandboxes/base:latest and includes common development tooling, supported agent CLIs, and a default policy. You can also bring your own containerized runtime or use community sandbox images. Policy lives in YAML and covers the four layers above, and OpenShell can export sandbox logs as OCSF JSON records for downstream security tooling.
One thing worth flagging early: OpenShell warns you when an --env value looks like a credential (anything with a name segment like TOKEN, SECRET, PASSWORD, API_KEY, or ACCESS_KEY). The warning is non-blocking, but it exists because a plain environment variable is readable by the agent inside the sandbox. To actually hide a secret, you attach it through a profile-backed provider instead.
Who should use OpenShell
Platform and infrastructure teams are the clearest fit. If you are running coding agents at any scale — internal developer platforms, CI systems that invoke agentic workflows, or self-hosted model endpoints that need to stay reachable while everything else is locked down — OpenShell gives you a single policy surface to manage that access. Compliance-focused teams get a second benefit: because policy is declarative YAML, it becomes a version-controlled security control that auditors can actually review, rather than a set of ad-hoc shell flags scattered across job definitions.
Security researchers and anyone evaluating the agent-security space should also pay attention, because OpenShell is the first mainstream reference for what “agent permissions” should look like. Even if you never run it, its four-layer model (filesystem, network, process, inference) is a useful checklist to apply to whatever isolation approach you are already using.
Who should NOT use OpenShell
Solo developers working on local, non-sensitive projects do not need this. If your agent only ever runs against a throwaway directory on your own laptop and you review its output, the overhead of running a Gateway and authoring policy is pure friction. Teams that only use fully-managed, hosted agents (where the vendor already sandboxes execution on their own infrastructure) will get most of the benefit from their vendor’s existing controls rather than standing up their own OpenShell deployment. And anyone whose threat model does not include an agent trying to exfiltrate data or escalate privileges — which is to say, agents running on a machine with nothing worth stealing — is solving a problem they do not have.
Limitations and caveats
The most important caveat is that OpenShell is Linux-first. Landlock and seccomp are Linux kernel facilities, so the strong guarantees apply to Linux sandboxes. NVIDIA documents Docker, Podman, Kubernetes, and VM-backed sandboxes as supported drivers, but the filesystem and process isolation fundamentally depend on the host kernel, which means macOS and Windows users are running a degraded or remote version of the security story.
There is also a real operational cost to the static-versus-dynamic split. Filesystem and process controls are locked at sandbox creation, so changing what an agent can read means destroying and recreating the sandbox — which resets any per-sandbox endpoint approvals and can interrupt long-running work. The network layer is hot-reloadable, and OpenShell’s default enforcement mode is audit (log violations but forward traffic), which is the right place to start but easy to leave on indefinitely if nobody checks the logs.
Finally, it is worth being honest that OpenShell protects against a specific class of risk — an agent doing something its policy did not allow. It does not protect against an agent doing something harmful that was allowed, or against a prompt-injection attack that tricks a well-scoped agent into behaving badly within its own permissions. Sandboxing is one layer of an agent-security strategy, not the whole strategy. Anyone who treats OpenShell as a complete answer to agent safety is going to be disappointed.
What OpenShell means for enterprise AI adoption
The broader significance is that agent security is finally being treated as infrastructure. For the past two years, most enterprises adopting agentic AI have relied on a mix of manual code review, trust in the vendor, and hope. OpenShell signals that the market is moving toward a model where agent permissions are declarative, auditable, and reviewable — the same posture shift that happened with cloud infrastructure when “just SSH into the box” gave way to Terraform and least-privilege IAM.
That is good news for enterprises, but it also raises the bar. Teams that adopt agents without a policy story are now the ones taking on unmanaged risk, and the existence of a reference tool like OpenShell makes that gap visible to auditors and security teams. If you are planning an enterprise AI adoption push that includes coding or browsing agents, the question is no longer whether to sandbox them, but which policy model you will standardize on — and OpenShell is now the most complete open-source answer to that question.