
OpenShell
Sandboxed runtime for autonomous AI agents, open source by NVIDIA
Replaces E2b
Who it's for
Run Claude Code, OpenCode, Codex, or GitHub Copilot CLI with constrained file and network access, so an agent can work in a repository without reaching the rest of your machine.
You only run agents on disposable cloud machines that hold no secrets or private code.
Grant selected sandboxes access to self-hosted or private model endpoints while keeping sensitive context under your control.
You already send all model traffic to a public provider and have no data residency requirement.
Treat policy YAML as version-controlled security controls that reviewers can read, diff, and audit alongside application code.
Your security reviews happen outside version control and cannot consume policy files.
The problem
Autonomous agents need real access to be useful: files to read, packages to install, APIs to call, and credentials to authenticate with. Giving them that access on a developer machine or shared server creates risk. An agent can upload source code to an unauthorized endpoint, read local secrets such as SSH keys or cloud credentials, send data to an unapproved model provider, or attempt privilege escalation with sudo or dangerous syscalls. Hosted sandbox services reduce that risk by moving execution elsewhere, but then your code and context run on someone else's infrastructure. OpenShell keeps the agent capable while enforcing explicit, reviewable limits on what it can reach, on hardware you control.
How it works
Each agent runs in its own sandbox. Kernel controls confine which files it can access and which system calls it can make, using Landlock for filesystem limits and seccomp restrictions with an unprivileged process identity to block escalation.
Filesystem, network, and process rules live in policy files. Filesystem and process rules are locked at sandbox creation, and network rules are hot-reloadable at runtime. Because policies are plain YAML, they can be version-controlled and audited.
Agents never see real credentials. Provider profiles resolve opaque placeholders only at authorized endpoints, so a leaked prompt or file cannot expose a working secret. Attachments, rotation, and revocation update at runtime.
Before a policy change is approved, OpenShell uses formal verification to flag risky new access, such as reaching a new host with credentials or calling a new API method. Those changes wait for human review.
Python, TypeScript, Go, and Rust SDKs connect applications to a gateway. Middleware, gateway interceptors, and compute drivers let you extend the runtime, and it ships OCSF JSON log export for observability.
Features
- Kernel-level isolation
- Declarative YAML policies
- Credential handling through providers
- Formally verified policy changes
- SDKs and extension points
How to install
Setup needs Docker, Podman, or host virtualization; the installer adds the CLI and a local gateway.
curl -LsSf https://raw.githubusercontent.com/NVIDIA/OpenShell/main/install.sh | sh
openshell sandbox create --name demoRecommended for this setup
Strengths
- Enforcement below the agent: Controls are applied by the kernel to file access, system calls, and network connections, so they hold regardless of which agent or model runs inside the sandbox.
- Works with the agents people already use: The docs list Claude Code, OpenCode, Codex, and GitHub Copilot CLI as supported use cases, and you can use the default Ubuntu image or bring your own containerized runtime.
- Runs where you choose: A local gateway runs on Linux, macOS on Apple Silicon, or WSL 2 with Docker, Podman, or host virtualization, and a Helm chart covers Kubernetes, including OpenShift guidance in the docs.
- Active and permissively licensed: The Apache-2.0 repository is written in Rust and had a push on the day this page was researched. The 0.1.x line adds a stable release cadence.
Trade-offs
- Early version: The latest release is v0.1.2 and the project describes 0.1.x as introducing new isolation primitives and APIs, with an upgrade guide for the changes. Expect breaking changes as it matures.
- Platform limits: Windows support through WSL 2 is marked experimental. On Kubernetes, your CNI must enforce NetworkPolicy, so cluster setup matters for the isolation guarantees.
- You operate it: Unlike a hosted sandbox service, you run and upgrade the gateway yourself, and the repository has 498 open issues at the time of writing.
- Anonymous telemetry on by default: OpenShell collects anonymous operational counts. It does not collect prompts, credentials, file paths, or user content, and you can disable it with OPENSHELL_TELEMETRY_ENABLED=false or compile it out.
Tech stack
FAQ
Yes. The repository is licensed under Apache-2.0, and you can run it on your own machines or in your own Kubernetes cluster.
The docs name Claude Code, OpenCode, Codex, and GitHub Copilot CLI. The default sandbox image is minimal Ubuntu with no agent installed, so you install the agent you want or bring your own container image.
Linux, macOS on Apple Silicon, or Windows with WSL 2 (experimental), plus Docker, Podman, or host virtualization. The install script sets up the CLI and a local gateway.
Agents never see real credentials. OpenShell adds them only to requests bound for endpoints approved by a provider profile, and attachments, rotation, and revocation update at runtime.