CubeSandbox
Also known as: Cube Sandbox, TencentCloud CubeSandbox
CubeSandbox is an open-source sandbox service for AI agents, released by Tencent Cloud on April 21, 2026 under the Apache 2.0 license. Its core promise is fast, hardware-level isolation: each sandbox gets its own guest OS kernel via RustVMM and KVM, which reduces the risk of container escapes that plague shared-kernel alternatives like Docker. Cold starts benchmark at under 150ms even at 50 concurrent sandbox creations, with per-instance memory overhead under 5MB.
The repository ships the full stack: an API gateway (CubeAPI), an orchestrator, per-node agents, a networking layer with eBPF-based egress control, and a hypervisor. One practical detail for teams already using E2B (a popular hosted sandbox for agents): CubeSandbox claims E2B SDK protocol compatibility, meaning you can swap one environment variable to migrate workloads to a self-hosted CubeSandbox deployment.
The right audience for CubeSandbox is engineering teams who need to run untrusted or AI-generated code at scale and want to own the infrastructure rather than pay per-execution to a managed service. If your agents execute code, browse the web, or run in a think-execute-feedback loop, sandbox isolation is not optional — it is the layer that determines your blast radius when something goes wrong.