TencentCloud

CubeSandbox: Run Secure, Fast Sandboxes for AI Agents

CubeSandbox is a self-hostable sandbox service for running untrusted AI-agent workloads in hardware-isolated microVMs. It combines E2B SDK compatibility with snapshots, network controls, and single-node or multi-node deployment.

View on GitHub Compare
Stars
12.8k
Forks
1.2k
Stars, last 30 days
+297

Our take

Health score

75/100

How it is scored
Activity
85
Community
88
Issues
66
Pull requests
60

+297 stars in the last 30 days

  • Releases more often than 87% of the projects we track
  • Merges more pull requests than 86% of the projects we track
  • More contributors than 77% of the projects we track

Project history

Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.

Selected snapshot

Stars

13,240

Forks

1,218

Change since Nov 13, 2026: +3 stars·+1 forks

Overview

CubeSandbox provides disposable execution environments for AI agents and other workloads that need to run code without sharing the host kernel. It uses KVM-based microVMs and is designed to start sandboxes quickly while keeping per-instance overhead low.

It is aimed at teams building agent platforms or code-execution services that need stronger isolation than ordinary containers. Choose it when you can operate Linux infrastructure with KVM and want a self-hosted service with E2B SDK-compatible interfaces; it may be more than needed for simple, trusted scripts.

Key Features

  • Runs each sandbox in a microVM with a dedicated OS kernel.
  • Provides REST APIs compatible with the E2B SDK interface.
  • Supports single-node deployment and scaling to multi-node clusters.
  • Offers snapshots, cloning, and rollback for sandbox state.
  • Includes network isolation and egress controls, with optional credential injection through its security proxy.
  • Supports automatic pause and resume for idle sandboxes.
  • Provides a volume framework for pluggable storage backends.
  • Includes Kubernetes deployment support, marked as preview in the README.

Use Cases

  • AI-agent developers can run generated code in isolated environments instead of executing it on application servers.
  • Platform teams can offer hosted or internal code-execution sandboxes with centralized scheduling and network policy.
  • Agent researchers can snapshot, clone, and roll back environments when comparing runs or exploring alternative states.
  • Teams migrating from E2B can evaluate a self-hosted option while retaining compatible SDK interfaces.

Getting Started

The README requires Linux with KVM support and links to deployment guides for cloud VMs, bare metal, and development environments. Follow the Quick Start guide for setup; the README describes the first deployment and sandbox workflow. Visit the repository for the full documentation.

Alternatives

  • agent-sandbox: Provides a self-hosted Kubernetes service with REST and MCP interfaces, while CubeSandbox emphasizes microVM snapshots, network controls, and single- or multi-node deployment.
  • n8n-sandbox-service: Offers REST-based command and file execution using containers or Firecracker microVMs, rather than CubeSandbox’s E2B-compatible service and deployment options.
  • microsandbox: Focuses on local microVMs managed through a CLI and SDKs, rather than a self-hosted service with single- or multi-node deployment.
  • zeroboot: Uses copy-on-write Firecracker snapshot forks for fast code-execution sandboxes, while CubeSandbox offers broader service features including E2B compatibility and network controls.
ProjectLanguageLicenseStarsStatus
CubeSandboxGoOther12.8kNot checked yet
Agent-SandboxGoApache-2.0222Active
n8n-sandbox-serviceGo–33Active
microsandboxRustApache-2.08.8kActive
zerobootRustApache-2.02.5kQuiet

Considerations

  • Deployment requires Linux and KVM; the README identifies x86_64 Linux as the quick-start requirement, with ARM64 support also described.
  • Running a sandbox service involves operating compute nodes and control-plane components, so it is intended for infrastructure teams rather than as a drop-in local library.
  • Kubernetes deployment is identified as preview in the README. Some cross-node snapshot workflows are also described as preview.
  • The input metadata reports the license as NOASSERTION, while the README states Apache License 2.0. Verify the repository's license files and terms before adoption.

Found this useful?

Share it with someone who would like CubeSandbox.

Comparisons