talira

Cube Sandbox

Self-hosted, E2B-compatible microVM sandboxes for AI agents

open sourceApache-2.0self-hostablefree

Cube Sandbox is Tencent Cloud's Apache-2.0 sandbox service for running AI agents' code, built on RustVMM and KVM. Each sandbox is a hardware-isolated microVM that its makers say starts in under 60 ms with under 5 MB of memory overhead. It runs on a single node or a multi-node cluster (bare metal, ordinary cloud VMs through PVM, or Kubernetes), and it's compatible with the E2B SDK, so code written for E2B switches to it by changing one environment variable. It adds copy-on-write snapshots, pause and resume across nodes, auto-pause for idle sandboxes, network policies and Prometheus metrics.

Problems it solves

  • run untrusted code from my AI agent in an isolated sandbox on my own servers
  • self-host an E2B-compatible sandbox instead of paying for E2B Cloud
  • start thousands of short-lived agent sandboxes quickly

Features

  • hardware-isolated microVM per sandbox on KVM
  • compatible with the E2B SDK
  • single-node or multi-node clusters, on bare metal, cloud VMs or Kubernetes
  • copy-on-write snapshots, cloning and cross-node pause and resume
  • auto-pause of idle sandboxes, network policies and Prometheus metrics

Limitations

  • It needs a Linux host with KVM support; the quick start asks for x86_64.1
  • Cross-node pause and resume and the JuiceFS storage backend are in preview.1

Alternatives

The same job

These do what Cube Sandbox does.

  1. E2B The AI agent cloud: an isolated sandbox machine for every agent session
  2. OpenSandbox Open source sandbox runtime for AI agents on your own infrastructure, from Docker to Kubernetes
  3. Wasmer Fast and lightweight sandboxes for your apps and AI agents
  4. Capsule Run untrusted Python and JavaScript code in isolated WebAssembly sandboxes
  5. Cloudroom Open source app and core for running any coding agent harness in the cloud
  6. Vercel Sandbox Run agent workloads in isolated sandboxes

Compare Cube Sandbox with the top 3