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.
#ProviderScoreList price per monthFree tierIsolation
1Tencent CubeSandbox
Self-hosted KVM microVM sandbox service from Tencent that works with the E2B SDK.
68Self-host · no list priceMonthlymicroVM
2E2B
Firecracker microVM sandboxes for AI agents, billed per second for vCPU and RAM while running.
68$29.15Credit or trialmicroVM
3E2B open-source runtime
The Apache-2.0 backend behind E2B Cloud: Firecracker microVM sandboxes you can run on your own Linux host or cloud.
68Self-host · no list priceMonthlymicroVM
4microsandbox
Open-source library and CLI that boots local microVMs from OCI images on Linux, macOS and Windows.
68Self-host · no list priceMonthlymicroVM
5Solo Enterprise for Agent Substrate
Supported Agent Substrate on your Kubernetes: each agent session in a gVisor or microVM sandbox, suspended when idle.
68Self-host · no list priceMonthlysandboxed container (gVisor or similar)
6Kata Containers
Building block: open-source container runtime that runs each container or pod inside a lightweight VM.
58Self-host · no list priceMonthlymicroVM
7Microsoft NVX
MIT-licensed micro-VM sandbox from Microsoft Research, built on OpenVMM, for KVM, MSHV and Windows hosts.
57Self-host · no list priceMonthlymicroVM
8Firecracker
Building block: the open-source KVM microVM monitor from AWS that many sandbox platforms run on.
55Self-host · no list priceMonthlymicroVM
9gVisor
Building block: Google's open-source application kernel that sandboxes containers through an OCI runtime, runsc.
54Self-host · no list priceMonthlysandboxed container (gVisor or similar)
10Kubernetes Agent Sandbox
Kubernetes controller for stateful agent sandboxes with warm pools; offered on GKE at no extra charge.
54Self-host · no list priceMonthlycontainer
11NVIDIA OpenShell
Open-source policy-enforced agent runtime from NVIDIA: sandboxes on Docker, Podman, Kubernetes or microVMs.
54Self-host · no list priceMonthlycontainer
12Anthropic sandbox-runtime
Open-source CLI and library that wraps any process in OS-level filesystem and network restrictions, no container needed.
46Self-host · no list priceMonthlyOS-level process sandbox
13Judge0
Open-source code execution API for 60+ languages, self-hosted for free or used as a cloud service priced per submission.
46Self-host · no list priceMonthlyOS-level process sandbox
14Beam
Container sandboxes with optional GPUs, plus persistent VMs, billed per vCPU and GiB with three CPU price tiers.
45$24.64Nonecontainer

Ranked by our score. See the full AI agent sandboxes ranking or how we score.

CompareTick 2 to 4 providers.