Not all sandboxes are the same

Not all sandboxes are the same

●1 ●17 ●39
calendar_today ago • schedule10 min read

One question came up at the Edera booth more than any other at KubeCon North America 2026 - "Aren't you just another AI agent sandbox?" The honest answer is that Edera is a sandbox, and it also provides a substrate for running agents. But "sandbox" now covers a wide range of very different technologies, and that makes comparisons hard.

In short, Edera differs in how it isolates workloads. Each workload runs in its own microVM on a Xen-based Type-1 hypervisor, not on the KVM foundation most microVM sandboxes share. On top of that isolation, Edera adds the necessary substrate features like snapshot, restore and copy-on-write forking, as well as capability-based access, so agents never hold on to sensitive credentials.

This post is my personal attempt to map that landscape fairly. Some sandboxes isolate workloads with a hypervisor. Of those, a few run on a Type-1 hypervisor such as Xen, which is the approach we take at Edera, while many others choose to build on KVM, often because it is widely available and portable across Linux hosts. Other projects avoid virtualisation entirely. gVisor, for example, re-implements the Linux kernel interface in userspace, rather than using the microVM model shared by Edera, Kata Containers or Firecracker. Others again rely on WebAssembly, unikernels, eBPF or policy enforcement.

Below, we walk through the main options for isolating agents on self-managed infrastructure such as Kubernetes, describe what each one does, and explain where it fits.

First, containers are not a sandbox

Containers changed how software is built, shipped and run, and they remain the right packaging format for most workloads. They were not designed, however, as a security boundary for untrusted code. Every container on a node shares the host kernel. That shared kernel delivers density and performance, but it also means a single kernel vulnerability can be enough for a workload to escape. Running code an agent wrote, or code an agent was tricked into running, calls for an additional isolation layer. Every project below provides that layer in a different way.

Hyperlight

Approach: an embeddable virtual machine monitor (VMM) that creates lightweight microVMs.

Hyperlight is a CNCF Sandbox project. (In this case "Sandbox" refers to the CNCF maturity level, not the isolation technique.) Most VMMs, such as QEMU or Firecracker, run as separate processes. Hyperlight is different in that it’s a library that an application links-in directly. Its core is written in Rust, and it offers SDKs for Python and .NET.

When an application requests a sandbox, Hyperlight creates a microVM with its own memory. The CPU's hardware virtualisation extensions enforce the isolation, through whichever hypervisor the host provides. That is KVM or MSHV on Linux, WHP on Windows and Hypervisor.framework on macOS.

The guest is deliberately minimal and has no emulated devices. It can reach the host only through functions the host application chooses to expose. Permissions follow a capability model where the embedder writes an explicit allow-list so nothing is actually granted by default. Many people first met Hyperlight through hyperlight-wasm and hyperlight-js, which run WebAssembly and JavaScript guests built specifically for it. The newer hyperlight-unikraft integration extends this to unmodified Linux programs.

Unikraft

Approach: unikernels running in hardware-isolated microVMs.

Unikraft takes a somewhat different route to isolation. The unikernel compiles an application together with only the OS components it needs, producing a single purpose-built image. Teams can build these images from an existing Dockerfile, and each one runs in its own microVM with hardware-level isolation.

Because the image omits most of a general-purpose OS, the trusted computing base is much smaller. Unikraft puts it at roughly 200,000 to 250,000 lines of code, a fraction of a standard Linux kernel, which reduces the code an attacker could use to escape. The approach also brings performance and efficiency gains. Unikraft Cloud then adds features that matter for agent workloads, such as live VM forking, checkpointing, migration, stateful microVMs and scale-to-zero with state preserved. The project reports cold starts measured in milliseconds, which is amazing!

wasmCloud

Approach: WebAssembly components with capability-based, deny-by-default access.

wasmCloud is a CNCF Incubating project, originally created by Cosmonic, and it integrates natively with Kubernetes. It runs microservices, functions and agents as WebAssembly (WASM) components, not containers. These components are typically kilobytes to a few megabytes in size, start in milliseconds and run on any WASI-conformant runtime. The project positions this as a denser and more secure alternative to containers that does not require teams to change how they operate.

The central difference is the default posture. A container can reach the network, make system calls and read its environment unless something blocks it, so hardening one means predicting everything it might do and restricting it from outside. A WASM component starts with no access to files, the network or system calls. Each capability must be granted explicitly. Components declare the interfaces they need in a language-neutral format, and the runtime enforces those declarations. wasmCloud manages which interfaces each component may use, which makes the security surface small and easy to audit.

gVisor

Approach: a userspace application kernel that intercepts system calls.

Like wasmCloud, gVisor does not use microVMs. Google open-sourced it under the Apache 2.0 licence in 2018 and donated it to the CNCF in October 2026. gVisor is an application kernel, so that means it implements a Linux-compatible interface itself, in memory-safe Go, and runs as an ordinary userspace process. Apps make syscalls to gVisor, not directly to the host kernel. This sharply reduces how much of the host kernel the workload can reach, while still giving the app the Linux features it expects.

The gVisor project describes this as a 3rd option, distinct from both syscall filters and VMs. It is not a filter such as seccomp-bpf, and it is not a wrapper around existing isolation tools such as AppArmor or firejail. It is also not a conventional VM like QEMU or VirtualBox. The aim is to provide much of a VM's isolation while keeping the small footprint, fast startup and flexibility of a normal process. In practice, gVisor ships an OCI runtime called runsc, so it works with Docker and Kubernetes (via RuntimeClass) with little change to existing tooling. As with any sandbox, it limits what a workload can do to the host, and it does not decide what data or credentials the workload should be given in the first place.

OpenShell

Approach: kernel-enforced, policy-driven runtime with formally verified policy changes.

NVIDIA donated OpenShell to the CNCF in the same week as gVisor. OpenShell is a runtime for fleets of autonomous agents. It starts from a practical tension that agents are most useful when they can read files, install packages, call APIs and use credentials, yet each of those abilities is a risk. OpenShell lets operators declare in a policy what each agent may touch, and then enforces that policy.
Enforcement works at 2 points, runtime and policy-change time.

  • At runtime, each agent runs in an isolated sandbox. Kernel controls restrict which files it can open and which system calls it can make, and every outbound connection is checked against policy before it leaves. Agents never hold real credentials since OpenShell injects them only into requests going to approved endpoints.
  • Before a policy change takes effect, OpenShell uses formal verification to work out what new access it would grant. Risky changes, such as reaching a new host with credentials or calling a new API method, are held for human review.

Docker Sandboxes

Approach: disposable microVMs built for coding agents.

Docker Sandboxes target a specific use case, and that’s the ability to run AI coding agents safely on a dev's machine. Each sandbox is a dedicated microVM with hypervisor-level isolation and its own filesystem, network and Docker daemon. Inside it, an agent can install packages, edit configs, delete files and even build and run containers. None of this touches the host or the host's Docker daemon.
The model is built around disposability. Each agent works in an isolated copy of the dev environment. If an agent goes wrong, the developer deletes the sandbox and starts a fresh one in seconds.

Chainguard Sandbox SDK

Approach: microVM sandboxes on Chainguard Workspaces, driven by an SDK.

The Chainguard Sandbox SDK creates sandboxes on Chainguard Workspaces, so it is a natural fit for teams already using Chainguard. Devs can run commands in a sandbox, copy files in and out, and delete it when finished. The workflow will feel familiar to users of Vercel Sandbox, E2B or Modal. SDKs are available for Go, Python, TypeScript and Rust. Each sandbox is a microVM, and the SDK covers lifecycle operations such as pausing a sandbox and snapshotting its disk, both useful for an agent substrate. Its design reflects its origins, where workspaces were built for long-lived developer sessions, not for launching thousands of short-lived sandboxes. Currently, each user can run one sandbox at a time, and each sandbox runs one command at a time.

Lynx by Tigera

Approach: eBPF-based discovery and per-agent enforcement in the kernel.

Lynx does not provide hardware isolation, unikernels or Wasm-style sandboxing, but it does isolate agents. Tigera brings its experience in kernel-level network enforcement from Project Calico to agent control. Lynx deploys an eBPF probe on every node and uses it to observe and, when needed, quarantine agent activity. The Lynx Runtime identifies agents as soon as they start, based on the libraries they load and the models they call. It attributes every connection to the agent that opened it, so traffic that bypasses Lynx Gateway is flagged. Operators set per-agent limits on which programs an agent may run, which files it may write and where it may connect, and the kernel enforces them. Teams typically begin in monitor mode and switch to enforcement once they understand normal behaviour.

Agent Sandbox

Approach: a Kubernetes-native orchestrator for sandboxed, stateful workloads.

Agent Sandbox is a Kubernetes project under SIG Apps. It is built for isolated, stateful, singleton workloads such as agent runtimes and reinforcement-learning environments. It adds a Sandbox custom resource definition (CRD) and controller, which give a declarative, standard API for a long-running single-container workload with a stable identity. The result resembles a lightweight single-container VM, built from Kubernetes primitives.

Agent Sandbox orchestrates sandboxes. It does not isolate them itself. It follows the standard controller pattern, where a user creates a Sandbox resource, and the controller creates and manages the matching Pod. That Pod uses a RuntimeClass to select an isolating runtime such as gVisor, Kata Containers or Edera. The Sandbox CRD covers workloads that fit neither stateless, replicated Deployments nor ordinal StatefulSets. Its main features are the stable identity, where each Sandbox keeps a fixed hostname and network identity, with persistent storage that can be attached to survive restarts, as well as lifecycle management whereby the controller handles creation, scheduled deletion, pausing and resumption of agents.

Agent Substrate

Approach: an execution layer that suspends and resumes agent environments across a shared compute pool.

At KubeCon we heard several people ask whether Agent Substrate competes with Agent Sandbox. The 2 solutions solve different problems. Agent Sandbox gives each agent an isolated place to run. Agent Substrate addresses running agents at scale. It keeps an agent's environment intact between tasks but releases the compute while the agent is idle. By suspending and resuming environments across a shared pool, teams can scale agent workloads without dedicating compute to every session.

Agent Substrate originated at Google and is now a CNCF Sandbox project, with a growing set of contributors:

  • NVIDIA have discussed contributing and integrating it with NVIDIA Dynamo for model inference and KAI Scheduler for shared cluster resources, bringing agent execution, inference and scheduling together on Kubernetes.
  • NVIDIA and Google are collaborating on an integration between OpenShell and Agent Substrate, so enterprises can secure and govern agents consistently across clouds and on-premises.
  • Solo.io is also building its kagent project to add identity, policy and observability on top of Agent Substrate.

Edera

Approach: microVMs on a Type-1 (Xen-based) hypervisor, with substrate features and capability-based credential access.

Like Firecracker and Kata Containers, Edera runs workloads in microVMs. The main architectural difference is the hypervisor. Most microVM sandboxes build on KVM, which runs as part of the Linux host kernel. Edera deliberately uses a Type-1 hypervisor based on Xen, which sits beneath the host OS. We explain the reasoning in more detail in our post on why we chose Xen.

Edera provides a Kubernetes RuntimeClass, as gVisor and Kata Containers do. That means it works with the SIG Apps Agent Sandbox API described above, or teams can use Edera's own sandbox API directly. The Edera Agent Runtime also covers substrate needs, such as snapshot and restore, and copy-on-write forking for managing agent state.

Isolation alone does not stop an agent from misusing a credential it has been given. Edera addresses this with an object-capability (OCAP) model. In this model, the agent never holds the secret, such as a GitHub token. A broker holds it and gives the agent a capability for only the specific, limited operation it is allowed to perform. Edera's capcurl concept applies this pattern, giving workloads credentialed API access without placing the credential inside them.

Conclusion

We did not write this post to rank these projects. Each makes deliberate trade-offs, and each is a good answer to a particular problem. What the landscape shows is that "sandbox" describes a goal, not a single technology. MicroVMs, unikernels, userspace kernels, WebAssembly and kernel-level policy enforcement can all stop an agent from doing what it should not.

The more useful question for most organisations is what they need a sandbox to do. Some need only a secure runtime for their agents. Others also need substrate features. Again, the ability to preserve agent environments between tasks, releasing compute while agents are idle, and resuming quickly from a shared pool, so platform teams can scale without dedicating compute to every session. Teams focused on isolation strength will weigh further trade-offs, such as KVM versus Xen, or microVMs versus unikernels.

No single sandbox is right for every organisation. The right choice depends on your threat model, your workloads and how you operate. We hope this guide makes that choice somewhat easier.

Want more #ai & #ai-agents deep dives?

Join 6,113+ developers sharing real benchmarks, code breakdowns, and projects. Free forever.

1 Comment

1 vote

More Posts

Your AI Agent Doesn't Need Your Token: Edera's Ariadne Conill on Object Capabilities

Tom Smithverified - Nov 5

Frameworks Are Institutional Memory

Ken W. Algerverified - Sep 17

StarlingX 13.0 Turns Two Edge Upgrades Into One Reboot. Test the Targets Yourself.

Tom Smithverified - Nov 24

Your Kubernetes Requests Are a Guess. groundcover Wants an Agent to Keep Fixing Them.

Tom Smithverified - Nov 3

AWS Certifications Are a Building Block, Not the Final Destination

Ijay - Jun 16
chevron_left
1.5k Points • 57 Badges
17Posts
12Comments
17Connections
Head of Developer Relations at Edera. Working on projects related to Kubernetes, the Linux kernel, and secure software development,.

Related Jobs

View all jobs →

Commenters (This Week)

3 comments
1 comment
1 comment

Contribute meaningful comments to climb the leaderboard and earn badges!