Agent Sandboxes vs NVIDIA's OpenShell: same ideas, very different shapes
I’ve spent the last few weeks writing about Agent Sandboxes, the thing I built so Claude can run with the brakes off without also having the run of my machine. Meanwhile NVIDIA has been building OpenShell, “the safe, private runtime for autonomous AI agents”, which is after the same problem with rather more people on it.
So I did the obvious thing and had a research agent sit down with OpenShell’s documentation and compare the two.
One caveat before anything else: the agent read OpenShell’s docs, not its code. Everything I say about OpenShell below is what its documentation says it does. I haven’t run it, and if I’ve got something wrong I’d like to hear about it.
So what is OpenShell?
It’s a runtime for running lots of agents under a policy you write down. It’s in Rust, Apache-2.0 licensed, now a CNCF project, sitting at about 22,000 stars, and v0.1.11 came out today.
The design is a central gateway with sign-in and user roles, and a trusted supervisor next to each sandbox. The supervisor checks every connection and every DNS lookup against the policy, and adds credentials to the traffic as it leaves. The agents themselves can run in Docker, Podman, Kubernetes or microVMs.
Mine is one Linux box in the loft, a web UI, and a bloke.
The bit I found reassuring
Two projects, started separately, at wildly different scales, and the core of both is the same list:
- Landlock and seccomp for isolation.
- MicroVMs with no network interface at all, reached over vsock.
- Network allowlists that deny by default.
- The agent holds a placeholder for each credential, and the real value is swapped in only on the way to an endpoint that’s allowed to have it.
- Short-lived Google tokens, minted outside the sandbox.
If you set out to stop an agent leaking your tokens, it seems you end up in roughly the same place.
That’s the most useful thing I took from the whole exercise. Seeing the same five in a CNCF project’s design docs is a decent sign they’re the right five.
The whole comparison on one card. The middle column is the reassuring one.
What OpenShell has that I don’t
This is the list that stings a bit, in a good way.
- Network rules per program. A rule can say this binary may reach that host, and the binary is identified by a hash of its file. Mine are per workspace, so anything running in the sandbox gets the same allowlist.
- Rules on individual requests. Method, path, MCP tool, GraphQL operation, for any service, with an audit-only mode so you can watch what a rule would block before you turn it on.
- Raw TCP filtering. Tools like
mongoshwork. In Agent Sandboxes only things that speak through the HTTP proxy (or SSH, via a helper) get out, and raw TCP clients stay blocked. - Agents can ask for access. The agent proposes a new network rule, risk checks run on it, and a human approves.
- Multiple users with roles. Mine has one user, and it’s me.
- Kubernetes support and SDKs.
Most of that follows from who it’s for. A gateway, roles and Kubernetes are what you need when a company runs agents for a lot of people. I’m not that.
Numbers 2 and 4 are different though. Those would make my setup better tomorrow, at any size.
What mine has that OpenShell doesn’t
Building for one person has its perks, because you end up building everything around the agent as well:
- A web UI that works on a phone, with the agent’s terminal, a shared browser, VS Code and Files. OpenShell has a CLI and a terminal UI.
- Sharing a workspace with a guest, through a relay on your own VPS.
- Hermes workspaces, so a workspace can run Hermes Agent in place of Claude Code, with the same isolation.
- Google grants narrower than Google’s own scopes, like Gmail limited to a single label.
- Discord and Slack tokens swapped inside WebSockets. Discord’s gateway sends the bot token in its first WebSocket message, where a normal header swap never sees it.
- Apple builds, with signing and TestFlight.
- Archiving, backups and a Grafana stack.
I’d describe the difference like this: OpenShell is a runtime, and you bring the rest. Agent Sandboxes is the whole kitchen, for exactly one cook.
What I’m borrowing
Best first, by how much it gives for the work involved.
- Method and path rules for every token, not just the Google ones, with an audit-only mode first. nono (which does the sandboxing underneath) already supports these rules, so it’s mostly UI work.
- “Blocked, then propose, then approve.” Show recent blocked connections on the Access tab, with a one-click “allow host:port”.
- Warnings when an allowlist edit widens access. Wildcards, private addresses, cloud metadata addresses. The edits most likely to be a mistake should be the ones that make you look twice.
- Short-lived GitHub App and OAuth2 tokens minted outside the sandbox, the way the Google ones already are.
- Refuse to start an agent until the proxy and the port filter are confirmed running.
The first one gives the most for the work, so that’s where I’d start.
Should you use mine or theirs?
If you’re running agents for a team, want roles and an audit trail, or you’re already on Kubernetes, go and look at OpenShell. It has a foundation behind it and a lot more eyes on it than mine does.
If you’re one person with a spare Linux box who wants to open a browser on your phone and see what your agent’s up to, Agent Sandboxes was built for precisely that.
And honestly, read both sets of docs even if you use neither. The overlap between them is a pretty good checklist for anybody letting an agent loose near their credentials.
TL;DR
- OpenShell (NVIDIA, CNCF, Rust) and Agent Sandboxes agree on the fundamentals: Landlock, seccomp, network-less microVMs, default-deny allowlists and placeholder credentials.
- OpenShell goes further on policy: per-program and per-request rules, raw TCP, agent-proposed rules, multiple users, Kubernetes.
- Agent Sandboxes goes further on everything around the agent: a phone-friendly UI, guest sharing, Hermes, narrow Google grants, Apple builds, backups.
- I’m borrowing five things, starting with per-request rules and an audit-only mode.
- The OpenShell half of this comes from its docs, not from running it.
If you work on OpenShell and I’ve misdescribed it, let me know and I’ll fix it.
Happy hacking!
-Matt