# Cube Sandbox

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

Source: https://talira.ai/catalog/cube-sandbox-3zwdwqr3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Infrastructure
- Categories: [ai / agents / sandboxing](https://talira.ai/categories/ai/agents/sandboxing)
- Licence: Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Self-hostable: yes[^1]
- Backed by: [Tencent](https://talira.ai/orgs/tencent.md)

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](https://talira.ai/catalog/e2b-zxrwgrzj.md) 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.

## Links

- Website: https://cubesandbox.com
- GitHub: https://github.com/TencentCloud/CubeSandbox

## 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]

## Trust

Overall: 0.75 out of 1.
Signals: maintenance 1.00, adoption 0.83, momentum 0.98, community 0.88, backing 0.30, extensibility 0.00.

- last commit today
- 474 commits in the last 90 days
- latest release v0.8.0 17 days ago
- 13.5k GitHub stars
- fast-growing: 13.5k stars in 7 months
- 153 contributors
- backed by Tencent

## Alternatives

- [E2B](https://talira.ai/catalog/e2b-zxrwgrzj.md): The AI agent cloud: an isolated sandbox machine for every agent session
- [OpenSandbox](https://talira.ai/catalog/opensandbox-zr38xmet.md): Open source sandbox runtime for AI agents on your own infrastructure, from Docker to Kubernetes
- [Wasmer](https://talira.ai/catalog/wasmer-n2vrj7qv.md): Fast and lightweight sandboxes for your apps and AI agents
- [Capsule](https://talira.ai/catalog/capsule-qaf2w9hz.md): Run untrusted Python and JavaScript code in isolated WebAssembly sandboxes
- [Cloudroom](https://talira.ai/catalog/cloudroom-bx88yfqn.md): Open source app and core for running any coding agent harness in the cloud
- [Vercel Sandbox](https://talira.ai/catalog/vercel-sandbox-20g2mqv2.md): Run agent workloads in isolated sandboxes

## Sources

[^1]: https://github.com/TencentCloud/CubeSandbox/blob/master/README.md (checked 30 Nov 2026)
[^2]: https://github.com/TencentCloud/CubeSandbox/blob/master/LICENSE (checked 30 Nov 2026)
