CubePod — Sandbox Built for Long-Lived Autonomous Agents
Sandbox Built for Long-Lived Autonomous Agents
Persistent Writable RootFS MicroVM Execution Platform
Hardware-isolated Kata MicroVMs backed by Dual CSI Raw Block volumes. Sleep at 0 CPU/RAM, resume on any node in ~1s, and keep OS packages intact.
/dev/cubepod-rootfs RW · Persistent upperdir apt, pip & npm survive sleep
/dev/cubepod-workspace RW · /workspace volumeKey: agent-ws · 1000:1000
Pre-formatted standby MicroVMs
Cross-node CSI block re-attach
0 RAM · no memory snapshots
Decoupled dual block PVCs
Drop-in E2B Compatibility or Superset SDKs
Switch tabs or click Replay to watch the live podd daemon execution stream.
export E2B_DOMAIN="127.0.0.1:8080"
export E2B_API_KEY="cpod_live_secret"
from e2b_code_interpreter import Sandbox
with Sandbox.create() as sbx:
sbx.commands.run("pip install pandas matplotlib")
res = sbx.run_code("import pandas as pd; pd.DataFrame({'a':[1,2,3]})")
print(res.results[0].html) from cubepod import AsyncCubePod
async with AsyncCubePod(base_url="http://127.0.0.1:8080") as cp:
box = await cp.create(
"cubeplex-ubuntu24-desktop",
volume_key="agent-ws-042",
secret_bindings=[{
"env_name": "GITHUB_TOKEN",
"placeholder": "cpodref_gh_readonly_01",
"allowed_hosts": ["api.github.com"],
}],
)
forked = await cp.fork(box.sandbox_id)
await cp.reset_rootfs(box.sandbox_id)
await cp.pause(box.sandbox_id) import { Sandbox } from 'cubepod';
const sbx = await Sandbox.create({
baseUrl: 'http://127.0.0.1:8080',
templateId: 'cubeplex-ubuntu24-desktop',
volumeKey: 'agent-ws-042',
});
await sbx.files.archiveSync({ 'app/main.py': 'print("ok")\n' }, { dest: '/workspace' });
const panel = await sbx.createEndpoint(8080, { expiresInSeconds: 3600 });
console.log('GUI Panel:', panel.url);
await sbx.pause(); cubepod health
cubepod sandbox create --template cubeplex-ubuntu24-desktop
cubepod sandbox exec <id> "apt-get update && apt-get install -y ripgrep"
cubepod sandbox fork <id>
cubepod sandbox reset-rootfs <id>
cubepod sandbox pause <id>
# Expose sandbox tools via Model Context Protocol
cubepod mcp Four-Layer Architecture Stack
Decouples ephemeral OCI images from persistent RootFS deltas with zero host kubelet patches.
Access & Ingress Layer
Client InterfacesDrop-in E2B SDKs, native CubePod SDKs (Python/TS/Go), CLI, and MCP stdio Server.
Control & Gateway Plane
KubernetesAuto-Resume traffic interceptor, PodWarmPool reconciler, and per-pod mTLS CA.
Kata MicroVM Data Plane
Hardware IsolationDedicated guest kernel running Rust PID 1 podd-init, podd, and zero-trust egress.
CSI Raw Block Storage Plane
Zero-Copy CoWRead-only Base OCI image over independent rootfs-pvc and workspace-pvc block devices.
Built for Long-Lived Autonomous Agents
Select any capability to open its architecture reference.
Dual-Volume & OS Reset
Increment rootfsGeneration to reset a broken OS while keeping volumeKey workspaces intact.
Zero-Export Suspend
Flush with sync + fsfreeze and delete the Pod; auto-resume on any node in ~1s.
< 1s CoW Sandbox Fork
Snapshot both RootFS and Workspace volumes simultaneously for parallel agent branching.
Zero-Trust cpodref_ Vault
Real keys never enter guest memory; ordered egress rules swap placeholders at the proxy.
Lazy Desktop & Panel
Launch Xorg, Chromium CDP, Neko WebRTC, and ttyd on demand over signed /panel/ URLs.
6 Code Kernels & MCP
Stream outputs across Python, JS, TS, R, Java, and Bash, or connect Claude via cubepod mcp.
CubePod vs. Upstream E2B & Containers
| Dimension | CubePod v0.5.0 | Upstream E2B | Containers |
|---|---|---|---|
| System Persistence | RootFS + /workspace persistent | Ephemeral RootFS | Lost on restart |
| Storage Engine | Dual CSI Raw Block (NVMe-oF) | Ephemeral overlay | Overlay / NFS |
| OS / Data Coupling | Decoupled (rootfsGeneration) | Coupled state | Full wipe on reset |
| Suspend & Wake | 0 CPU/RAM · ~1s block attach | Memory dump / cold boot | Always billed RAM |
| Sandbox Forking | < 1s CoW dual-volume clone | Full copy / N/A | Not supported |
| Secret Isolation | cpodref_ + mTLS proxy swap | Plaintext env vars | Plaintext ENV |
| Deployment | 100% E2B Superset · Self-Host | Proprietary SaaS | DIY plumbing |
Part of the Open-Source CubePlex Agent Stack
Built on a Brain-Hands Decoupling architecture: CubePlex (Team Agent Workspace) and CubeLoop (Async Agent Runtime) act as the reasoning Brain, while CubePod provides the persistent hardware-isolated execution Hands.