← Back to Leaderboard
CTencentCloud

TencentCloud/CubeSandbox

E2B-compatible MicroVMs for self-hosted, isolated AI agent execution

Open-Source AI AppQuickstart ↓
Engineering Health (Methodology)
A · 82/100
Maintenance Activity
● Updated today
Latest Release
v0.8.0
Commercial License Check
Custom / Check Repo

Automated SPDX check for reference only — not legal advice. Disclaimer

Maintenance35/35
Fork Adoption21/25
Release Cadence20/20
License Clarity6/20
Self-HostedAPIDocker
Total Stars
★ 13,553
24h Growth
+7
7d Growth
+81
Forks
1,258

GitHub Star History

Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.

TencentCloud/CubeSandbox Star History (2026-04-09 - 2026-12-04) ALL-TIME STAR HISTORY (2026-04 – 2026-12) +13.6k in 239d · avg +57/day 14.3k 7.2k 0 2026-04-09: ★ 12026-04-25: ★ 4,0132026-05-16: ★ 5,5502026-06-06: ★ 6,0682026-06-27: ★ 6,4152026-07-18: ★ 10,2722026-08-08: ★ 10,8392026-08-29: ★ 11,2422026-09-19: ★ 12,4842026-10-10: ★ 12,7792026-10-31: ★ 13,0802026-11-15: ★ 13,2482026-12-04: ★ 13,553 ★ 13.6k 2026-04 2026-08 2026-12

Evidence-Backed Technical Brief

AI Deep Review

Architecture & Core Mechanics

CubeSandbox separates sandbox lifecycle control from traffic routing. CubeAPI, a Rust REST gateway compatible with E2B, accepts lifecycle requests. CubeMaster tracks cluster state and selects a compute node, and Cubelet manages the sandbox on that node. CubeProxy routes E2B-compatible traffic to the running instance. In the KVM configuration, RustVMM MicroVMs run a separate guest kernel per sandbox instead of sharing the host kernel as ordinary containers do.

CubeVS applies eBPF network isolation and kernel-level policy. CubeEgress, an OpenResty-based gateway, adds application-layer filtering, request auditing, and credential injection so secrets need not be placed inside the guest. The v0.8 scheduler supports built-in plugins, CEL expressions, and external gRPC plugins, allowing teams to customize placement without changing the client API.

Key Capabilities & Differentiators

Resource pooling and snapshot cloning reduce startup work. On bare metal, sandbox creation took 60 ms at single concurrency; at 50 concurrent creations it averaged 67 ms, with P95 at 90 ms and P99 at 137 ms. The reported base memory overhead is below 5 MB for sandbox configurations up to 32 GB. Neither metric measures application readiness or the memory consumed by guest workloads.

Running sandboxes can be checkpointed, rolled back, or forked from a saved state. Idle instances can pause automatically and resume on a subsequent request. E2B-compatible volumes have an independent lifecycle, can be shared across sandboxes, and support pluggable storage backends. The v0.8 JuiceFS copy-on-write backend adds cross-node template sharing, resume, and boot from snapshots in preview. The browser console supports template management, sandbox creation, and live log viewing.

Trade-offs & Limitations

Compared with ordinary Docker containers, the separate guest kernel gives CubeSandbox a different isolation boundary, but introduces a virtualization layer and more service components to operate. It is most compelling when you need that boundary and create enough short-lived sandboxes to benefit from rapid cloning. If jobs are trusted and run for a long time, creation latency may matter less than operational simplicity. Benchmark the complete job on your hosts, not just sandbox creation.

Compared with managed E2B, endpoint compatibility can lower migration effort, but it does not remove responsibility for capacity, upgrades, egress policy, or storage recovery. Verify the SDK operations your workload depends on rather than treating API compatibility as proof of feature parity. The root contains a LICENSE file, but the license terms are unspecified here; verify the target release before commercial hosting or redistribution.

Hardware & Deployment Guide

Start with a single node and expand to a multi-node cluster when scheduling or capacity requires it. The standard quick-start targets x86_64 Linux with KVM; native ARM64 build and deployment are also supported. The PVM path targets ordinary cloud VMs without nested virtualization, while the QEMU development environment is for evaluation rather than representative performance testing. Tencent Cloud has a Terraform deployment path, and standard Kubernetes deployment remains in preview. After one-click deployment, the console is available on control-node port 12088; sandbox creation requires a ready template.

On upgrade, note that v0.7 separated node operations into CubeOps and introduced preview cross-node pause and resume with an S3 backend. v0.8 adds the preview JuiceFS backend, scheduler plugins, filesystem-only snapshots, and automatic restart policies, along with sandbox metrics and logs integrated with Prometheus and Grafana. Before depending on cross-node recovery, test snapshot, resume, and logging behavior on the intended hosts and storage backend.

Lifecycle routing: CubeAPI → CubeMaster → Cubelet for provisioning and lifecycle control; CubeProxy for traffic to running sandboxes.
Execution boundary: RustVMM MicroVMs give each sandbox its own guest kernel; bare-metal creation at 50 concurrent requests measured 67 ms average and 137 ms P99.
Egress controls: eBPF isolation works with the OpenResty-based CubeEgress proxy for domain, path, and method rules, auditing, and credential injection.
State management: Checkpoint, fork, or roll back a sandbox; E2B-compatible volumes persist independently of sandbox instances.
Scheduling extensions: v0.8 supports built-in plugins, CEL expressions, and external gRPC plugins.
Cross-node storage: v0.8 adds a preview JuiceFS copy-on-write backend for shared templates, cross-node resume, and booting from snapshots on another node.
Best For

Platform teams that run bursts of short-lived agent jobs and need self-hosted guest-kernel isolation, controlled egress, or reproducible sandbox state.

Skip If

A shared-kernel container meets your isolation needs, you prefer a managed fleet, or your production design depends on cross-node or Kubernetes features that are still in preview.

Reviewed on 2026-12-04 · Grounded in GitHub README, root file tree & releasesMethodology

Quick Start & Installation

Self-HostedAPIDocker
http://<control-node IP>:12088

Comparison vs. Top Agents & Frameworks Alternatives

Full comparison →
RepositoryStars7d TrendStackLicenseCore Positioning
CubeSandbox ★13.6k+81Go—E2B-compatible MicroVMs for self-hosted, isolated AI agent execution
sealos18.4k+14Go—A Kubernetes-backed desktop Ops Agent for deploying and running full-stack apps
multica59.1k+891Go—A shared task board that dispatches coding agents to machines you control.
pentagi35.7k+489GoMITSelf-hosted multi-agent penetration testing with logs and reports for human revi

AI Context Briefing (for Claude / Cursor / Windsurf)

Standardized architecture summary & quickstart commands ready to paste into coding agents.

Raw .md ↗
curl -sL https://repoforai.com/repo/TencentCloud/CubeSandbox.md

Embed Star History Chart & Badges in README.md

Full-history Star History SVGs and velocity cards on GitHub Camo: drop-in replacement for OSSInsight and Star History widgets.

TencentCloud/CubeSandbox Star History on RepoForAI

Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).

Frequently Asked Questions about CubeSandbox

How does an existing E2B client connect to a self-hosted cluster?

CubeAPI accepts E2B-compatible lifecycle requests, CubeMaster schedules them to a compute node, and Cubelet manages the MicroVM. CubeProxy routes traffic to the resulting sandbox. Start by changing the SDK endpoint, then test the specific operations you rely on, including templates, volumes, and network access.

What hardware should I budget for, and what does the memory figure include?

Size compute nodes for the chosen virtualization path and the CPU, guest memory, storage, and concurrency of actual workloads. The reported sub-5 MB figure is base overhead for sandbox configurations up to 32 GB, not total memory per running job. No GPU or VRAM requirement is specified for the sandbox service itself.

Can we self-host it commercially or redistribute a modified deployment?

The root contains a LICENSE file, but the license type and terms are unspecified here. Inspect the LICENSE at the precise release or commit you plan to deploy, along with applicable third-party terms, before approving commercial hosting or redistribution. Self-hosting support does not establish those rights.

When is CubeSandbox a better fit than Docker or managed E2B?

Choose Docker when shared-kernel isolation is acceptable and operational simplicity matters more than a separate guest kernel. Choose managed E2B when you want the SDK workflow without owning the compute fleet. Choose CubeSandbox when you need self-hosted MicroVM isolation and can operate the virtualization, networking, and storage layers.

Upstream README & Documentation

This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.

Maintaining TencentCloud/CubeSandbox? Pin to Homepage + competitor /alternatives pages with a custom Cloud/Demo CTA.Feature TencentCloud/CubeSandbox on Homepage & Alternatives ($19)
WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare