Home / AI agent sandboxes / Best open-source agent sandbox to self-host
Best open-source agent sandboxes to self-host
Open-source agent sandboxes you can run on your own hardware, ranked by our score.
Top pick (2026-11-15): Tencent CubeSandbox. Tencent CubeSandbox scores 68/100, #21 of 63 AI agent sandboxes. Strong on free tier, isolation, persistence, docs and SDKs. Weak on limits. Best for: Moving E2B SDK code to sandboxes on your own servers without changing client code.
| # | Provider | Score | List price per month | Free tier | Isolation |
|---|---|---|---|---|---|
| 1 | Tencent CubeSandbox Self-hosted KVM microVM sandbox service from Tencent that works with the E2B SDK. | 68 | Self-host · no list price | Monthly | microVM |
| 2 | E2B Firecracker microVM sandboxes for AI agents, billed per second for vCPU and RAM while running. | 68 | $29.15 | Credit or trial | microVM |
| 3 | E2B open-source runtime The Apache-2.0 backend behind E2B Cloud: Firecracker microVM sandboxes you can run on your own Linux host or cloud. | 68 | Self-host · no list price | Monthly | microVM |
| 4 | microsandbox Open-source library and CLI that boots local microVMs from OCI images on Linux, macOS and Windows. | 68 | Self-host · no list price | Monthly | microVM |
| 5 | Solo Enterprise for Agent Substrate Supported Agent Substrate on your Kubernetes: each agent session in a gVisor or microVM sandbox, suspended when idle. | 68 | Self-host · no list price | Monthly | sandboxed container (gVisor or similar) |
| 6 | Kata Containers Building block: open-source container runtime that runs each container or pod inside a lightweight VM. | 58 | Self-host · no list price | Monthly | microVM |
| 7 | Microsoft NVX MIT-licensed micro-VM sandbox from Microsoft Research, built on OpenVMM, for KVM, MSHV and Windows hosts. | 57 | Self-host · no list price | Monthly | microVM |
| 8 | Firecracker Building block: the open-source KVM microVM monitor from AWS that many sandbox platforms run on. | 55 | Self-host · no list price | Monthly | microVM |
| 9 | gVisor Building block: Google's open-source application kernel that sandboxes containers through an OCI runtime, runsc. | 54 | Self-host · no list price | Monthly | sandboxed container (gVisor or similar) |
| 10 | Kubernetes Agent Sandbox Kubernetes controller for stateful agent sandboxes with warm pools; offered on GKE at no extra charge. | 54 | Self-host · no list price | Monthly | container |
| 11 | NVIDIA OpenShell Open-source policy-enforced agent runtime from NVIDIA: sandboxes on Docker, Podman, Kubernetes or microVMs. | 54 | Self-host · no list price | Monthly | container |
| 12 | Anthropic sandbox-runtime Open-source CLI and library that wraps any process in OS-level filesystem and network restrictions, no container needed. | 46 | Self-host · no list price | Monthly | OS-level process sandbox |
| 13 | Judge0 Open-source code execution API for 60+ languages, self-hosted for free or used as a cloud service priced per submission. | 46 | Self-host · no list price | Monthly | OS-level process sandbox |
| 14 | Beam Container sandboxes with optional GPUs, plus persistent VMs, billed per vCPU and GiB with three CPU price tiers. | 45 | $24.64 | None | container |
Ranked by our score. See the full AI agent sandboxes ranking or how we score.