Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
C

CubeSandbox

> AI 编程
Open source

Instant, Concurrent, Secure & Lightweight Sandbox for AI Agents.

10.8K stars0 likes1 views
WebsiteGitHub

About

Instant, Concurrent, Secure & Lightweight Sandbox for AI Agents.

CubeSandbox

Instant, Concurrent, Secure & Lightweight Sandbox Service for AI Agents

中文文档 · Quick Start · Documentation · Changelog · X(Twitter) · Top Contributor Program · Submit Use Case

--- Cube Sandbox is a high-performance, out-of-the-box secure sandbox service built on RustVMM and KVM. It supports both single-node deployment and easy scaling to multi-node clusters. It is compatible with the E2B SDK and can create a hardware-isolated, fully serviceable sandbox in under 60ms with less than 5MB of memory overhead.

## News
v0.7: Cross-node pause/resume, control plane & ops separation, faster sandbox networking
Cross-node pause/resume — with an S3 backend, suspend a sandbox on one node and resume it on another, or create sandboxes from snapshots (preview)
Control plane & operations separation — node management moves into CubeOps with multi-replica deployment and the new cubeopscli
Changelog →
v0.6: K8s deploy, Volume framework, template aliases
K8s deploy — Deploy Cube control-plane components and compute nodes on Kubernetes
Volume framework — E2B-compatible Volume framework that lets users plug in custom backend storage
Template aliases — Set an alias when creating a template, and create sandboxes by specifying that alias.
Changelog → · K8s deploy → · Volume plugin →
v0.5: AutoPause, Terraform deployer, ARM64 & network policy hardening
AutoPause/AutoResume — idle sandboxes auto-suspend and wake on the next request. Terraform one-click cluster deploy ARM64 native full-stack support network policy hardening — per-sandbox traffic tokens, policy-routing egress.
Changelog → · Terraform deploy →
v0.4: Safer egress, easier ops
Credential vault — Agents call external APIs as usual; keys never enter the sandbox. Dashboard — version matrix and template health checks; see at a glance whether templates need rebuilding after upgrades.
Changelog → · Security proxy guide → · WebUI guide →
Snapshot, Clone & Rollback at hundred-millisecond granularity
CubeSandbox 0.3.0 introduces the CubeCoW Copy-on-Write snapshot engine, enabling event-level snapshots, instant cloning, and rollback to any saved state. Changelog →
Initial open-source release
Cube Sandbox is now open source! Millisecond boot, hardware-level isolation, E2B-compatible sandbox for AI Agents. Changelog →
## Product Highlights
⚡ Ultra-fast Startup

Resource pooling and snapshot cloning skip all cold-start overhead. Average <60ms cold start — sandbox creation faster than a blink.

Quick start →
Hardware Isolation

Every sandbox runs a dedicated OS kernel in its own MicroVM.

Architecture →
E2B SDK Compatible

Compatible with E2B SDK interface. Switch from E2B Cloud seamlessly by changing one environment variable — zero client code changes.

Examples →
High-density Deployment

<5MB overhead per sandbox enables thousands of instances per server via kernel sharing and Copy-on-Write (CoW). Supports automatic sandbox pause and resume, further improving deployment density and cost optimization.

Quick start →
️ Network Security

eBPF-based inter-sandbox isolation and egress filtering at kernel level; built-in L7 security proxy enables per-domain/path/method policies with automatic credential injection — secrets never visible to sandbox code.

Security proxy guide →
Flexible State Management

High-frequency snapshot and rollback at hundred-millisecond granularity. Create checkpoints on running sandboxes, roll back to any saved state at any time, or fork from a specific state to explore in parallel.

v0.3 changelog →
Volume Framework

E2B-compatible Volume framework that lets users plug in custom backend storage solutions. Volumes have an independent lifecycle and can be shared across sandboxes.

Volume plugin →
Production Deployment

Deploy production clusters on Tencent Cloud with one click using Terraform. Also supports deployment on standard Kubernetes clusters (preview).

Terraform deploy → · K8s deploy →
ARM Architecture Support

Full native ARM64 support across compilation, build, and deployment workflows.

Bare-metal deploy →
## Demos
Installation & Demo Performance Test RL (SWE-Bench) Snapshot · Clone · Rollback
## Benchmarks In the context of AI Agent code execution, CubeSandbox achieves the perfect balance of security and performance: | Metric | Docker Container | Traditional VM | CubeSandbox | |---|---|---|---| | **Isolation Level** | Low (Shared Kernel Namespaces) | High (Dedicated Kernel) | **Extreme (Dedicated Kernel + eBPF)** | | **Boot Speed**
*Full-OS boot duration | 200ms | Seconds | **Sub-millisecond (<60ms)** | | **Memory Overhead** | Low (Shared Kernel) | High (Full OS) | **Ultra-low (Aggressively stripped, <5MB)** | | **Deployment Density** | High | Low | **Extreme (Thousands per node)** | | **E2B SDK Compatible** | / | / | **✅ Drop-in** | * *Cold start benchmarked on bare-metal. 60ms at single concurrency; under 50 concurrent creations, avg 67ms, P95 90ms, P99 137ms — consistently sub-150ms.* * *Memory overhead measured with sandbox specs ≤ 32GB. Larger configurations may see a marginal increase.* For detailed metrics on startup latency and resource overhead, see the [Core Operations Performance Benchmark Report](./docs/blog/posts/2026-06-01-cubesandbox-perf-benchmark.md) (bare metal) and the [PVM Cloud Server Benchmark Report](./docs/blog/posts/2026-06-03-cubesandbox-perf-benchmark-pvm.md).
Sub-150ms sandbox delivery under both single and high-concurrency workloads CubeSandbox base memory footprint across various instance sizes
(*Blue: Sandbox specifications; Orange: Base memory overhead). Note that memory consumption increases only marginally as instance sizes scale up.
## Quick Start

⚡ Millisecond-level startup — watch the fast-start flow above.

Cube Sandbox requires an **x86_64 Linux** environment with **KVM** support. The guid

Issues· 148 open

View all issuesOpen on GitHub
  • #1866

    [Feature Request] Chart-native trusted CA certificates for private-CA image registries (create-from-image pulls)

    enhancementarea/CubeMasterUpdated Sep 28, 2026
  • #1846

    AIO openclaw docker image

    enhancementkind/questionneeds-triageUpdated Sep 28, 2026
  • #1859

    [Bug Report] cubemastercli pod accumulates thousands of zombie processes (PID 1 = sleep infinity never reaps orphans)

    bugarea/CubeMasterneeds-triagebug-report-fixes-under-reviewUpdated Sep 28, 2026
  • #1864

    [Feature Request] Server-managed cube-envd injection for zero-friction template creation

    enhancementarea/Cubeletarea/CubeMasterlifecycleUpdated Sep 28, 2026
  • #1776

    Feature request: operator-managed DNS resolver admission for Kubernetes guests

    enhancementarea/Cubeletarea/CubeNetUpdated Sep 28, 2026
  • #1803

    [Bug Report] App templates using the same image and configuration result in inconsistent sandbox creation latency

    bugarea/Cubeletarea/hypervisorneeds-triagelifecycleUpdated Sep 24, 2026
  • #244

    [good first issue] docs: Help us build integration guides with mainstream AI agent frameworks

    area/documentationgood first issuehelp wantedUpdated Sep 24, 2026
  • #1841

    [Bug Report] cross-host envd requests intermittently 502 (connect refused) from a stale eBPF host-port session

    bugarea/CubeNetbug-report-fixes-under-reviewUpdated Sep 24, 2026
  • #1827

    Network features and improvements for v0.8.0

    enhancementarea/Cubeletarea/CubeNetUpdated Sep 24, 2026
  • #1845

    [Bug Report] one-click: CubeTemplateCenter keeps the bundled MySQL endpoint when an external database is configured

    bugarea/CubeMasterneeds-triagebug-report-fixes-under-reviewUpdated Sep 24, 2026

> Tags

Rustagentscontainersandbox

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 28, 2026
CategoryAI 编程
PricingOpen source

> Related tools

G
GitHub Copilot
GitHub 官方 AI 编程助手,覆盖补全、Chat 与 Agent 模式。
C
Cursor
AI 原生代码编辑器,对话改代码、多文件 Agent 与规则体系是其核心。
S
skills
Skills for Real Engineers. Straight from my .agents directory.