Agent Sandboxesagentsandboxes.org
Sandbox profile · Open-source project

CubeSandbox

Answer in brief

Tencent Cloud's open-source, E2B-compatible sandbox platform that runs each sandbox in a RustVMM/KVM microVM with copy-on-write snapshots. A fast-moving, well-specified microVM platform for teams that want E2B semantics on their own Linux hosts.

By the Agent Sandboxes editors · Updated

Overview

CubeSandbox is a sandbox platform open-sourced by Tencent Cloud in April 2026. Each sandbox is a microVM with its own kernel managed by a Rust hypervisor (CubeHypervisor, built on RustVMM and KVM, with Cloud Hypervisor and Kata Containers acknowledged upstream), and a REST gateway (CubeAPI) and reverse proxy (CubeProxy) implement the E2B API so that the E2B Python, JavaScript or Go SDKs work by changing E2B_API_URL. A single-node install is a one-line script on x86_64 Linux (PVM mode needs no bare metal or nested virtualisation; ARM64 needs native KVM), and CubeMaster orchestrates multi-node clusters with Kubernetes and Terraform deployment options and a web console with a template store.

The README claims sub-60 ms creation via snapshot clones that skip kernel boot, under 5 MB memory overhead and thousands of sandboxes per node. The CubeCoW engine provides copy-on-write snapshots, rollback and forking, and v0.7.0 (August 2026) added cross-node pause/resume backed by S3. Networking uses an eBPF virtual switch and an OpenResty egress gateway that filters domains and injects credentials so secrets never enter the sandbox. Minimum host is 4 cores, 8 GB RAM and 50 GB of XFS disk; GPU sandboxes and automatic crash recovery are roadmap items. There is no hosted service: cubesandbox.com documents self-build and cluster deployment only.

Notable

  • Initial open-source release v0.1.0 on 20 April 2026; v0.7.0 on 28 August 2026 added cross-node pause/resume with an S3 backend
  • Apache-2.0, listed in the CNCF Landscape, roughly 13k GitHub stars
  • README claims 60 ms cold start at single concurrency and P99 137 ms at 50 concurrent creations on bare metal

CubeSandbox specifications

AttributeDetails
IsolationDedicated microVM per sandbox with its own guest kernel, built on RustVMM and KVM (CubeHypervisor), with eBPF-based network isolation and egress filtering
DeploymentOpen-source project · Self-hostable
Open sourceYes (Apache-2.0)
SDKs and interfacesPython, JavaScript/TypeScript, Go, REST API, CLI
Cold start (vendor claim)README: sandboxes created in under 60 ms at single concurrency, average 67 ms / P95 90 ms / P99 137 ms at 50 concurrent creations, measured on bare metal; memory overhead claimed under 5 MB per sandbox
Max session lengthNot documented
PersistenceCubeCoW copy-on-write snapshot engine with cloning, rollback and forking from saved state; AutoPause/AutoResume for idle sandboxes; cross-node pause/resume with an S3 backend (v0.7.0); creating sandboxes from snapshots is a preview; pluggable volumes (S3, host mounts, shared block)
GPUNo — GPU sandboxes are on the roadmap, not available
NetworkingeBPF virtual switch (CubeVS) for inter-sandbox isolation and policy; CubeEgress gateway for L7 domain filtering, credential injection and auditing; per-sandbox traffic tokens
PricingFree to self-host (Apache-2.0); no hosted offering is described
Free tierFree to self-host
ComplianceNot documented
RegionsSelf-hosted; Terraform one-click deployment on Tencent Cloud

Facts from CubeSandbox’s public documentation, verified November 9, 2026. Performance numbers are vendor claims.

Strengths and trade-offs

Strengths

  • You want E2B-compatible SDKs against infrastructure you run yourself
  • You need microVM isolation with snapshot forking and rollback for agent branching or evaluation
  • You run on Tencent Cloud or want a Terraform path onto it
  • You need credential injection at the egress gateway so keys never reach the sandbox

Trade-offs

  • Self-host only; no managed service, so you operate the hypervisor fleet
  • Linux hosts only, with x86_64 PVM for the easy path and OpenCloudOS or TencentOS recommended
  • No GPU sandboxes yet; snapshot-based creation and Kubernetes deployment are labelled preview in places
  • Young project (first release April 2026) with several E2B API gaps listed on the roadmap

Good fit for: Self-hosted, E2B-compatible microVM sandboxes at high density on your own Linux hosts.

Use cases CubeSandbox fits

  • Open source & self-hosted: Tencent Cloud’s Apache-2.0, E2B-compatible microVM sandbox built on RustVMM and KVM for high density on your own hosts.

How CubeSandbox compares

SandboxIsolationOpen sourceSelf-host / BYOCCold start (vendor)Max sessionSnapshots / pauseGPUSDKs
CubeSandboxRustVMM/KVM microVMYesYes / No<60 ms (claimed)Not documentedYes / YesNoPython, JavaScript/TypeScript, Go, REST API, CLI
E2BFirecracker microVMYesYes / YesNot documented1 h / 24 h (Pro)Yes / YesNoPython, JavaScript/TypeScript
OpenSandboxContainers or FirecrackerYesYes / No64 ms P50 (claimed)Not documentedNot documented / YesNot documentedPython, JavaScript/TypeScript, Java, Kotlin, Go, C#, CLI, MCP server, REST API
SPACEFirecracker microVMYesYes / NoNot documented6 h idle suspendYes / YesNot documentedPython, REST API, CLI
MicrosandboxMicroVM (libkrun)YesYes / Yes<100 msNot documentedYes / Not documentedNoTypeScript, Python, Rust, Go, Ruby, CLI, MCP server
FirecrackerKVM microVMYesYes / No<125 ms (spec)Not documentedYes / YesNoREST API, CLI
Kata ContainersVM per podYesYes / NoNot documentedNot documentedNot documented / Not documentedYesCLI

See all CubeSandbox alternatives →

Frequently asked questions

What is CubeSandbox?
Tencent Cloud's open-source, E2B-compatible sandbox platform that runs each sandbox in a RustVMM/KVM microVM with copy-on-write snapshots. A fast-moving, well-specified microVM platform for teams that want E2B semantics on their own Linux hosts.
How does CubeSandbox isolate code?
CubeSandbox documents its isolation as: Dedicated microVM per sandbox with its own guest kernel, built on RustVMM and KVM (CubeHypervisor), with eBPF-based network isolation and egress filtering.
Is CubeSandbox open source?
Yes (Apache-2.0). It can be self-hosted.
How much does CubeSandbox cost?
Free to self-host (Apache-2.0); no hosted offering is described Check the official pricing page for current rates.
What are the alternatives to CubeSandbox?
Common alternatives include E2B, OpenSandbox, SPACE, Microsandbox, Firecracker, Kata Containers. See CubeSandbox alternatives for a full comparison.

Sources

  1. github.com/TencentCloud/CubeSandbox
  2. cubesandbox.com
  3. cubesandbox.com/guide/quickstart

Cite this page

Agent Sandboxes. (2026). CubeSandbox. agentsandboxes.org. Last reviewed November 9, 2026. https://agentsandboxes.org/sandboxes/cube-sandbox/

Found an error or a missing sandbox? Submit a correction — every entry links to the sources it relies on.