Skip to content
CU

CubePod

BetaOpen SourceApache-2.089 stars

Apache-2.0 self-hosted Kata Containers microVM platform for long-lived agents: persistent writable rootfs plus a separate workspace volume, pause to zero, warm-pool starts, copy-on-write forks, zero-trust egress and an E2B-compatible API.

Visit website
CategoriesMicroVMAI Agent SandboxSelf-hostedCode ExecutionDesktop SandboxTypeOpen-source toolContainmentHardware VMRating3.9 / 5
DocsGitHub
Boot rank
#36 / 119
70% of published starts are slower
Idle billing
Zero cost while idle
347 listings stay free while idle
State kept on pause
Disk only
Resume: Under 50 ms to claim a warm-pool standby and about 1 second to suspend or resume, per the project's documentation

Overview

CubePod starts from a fair complaint about the rest of this category: an agent that installs packages, configures daemons and authenticates CLIs loses all of it when an ephemeral microVM is paused or rebuilt. Its answer is two persistent volumes per sandbox, one holding a writable OverlayFS root filesystem and one holding /workspace, with the rootfs versioned separately so an OS reset or upgrade never touches project data. The compute underneath is Kata Containers, so the boundary is a hardware VM with its own kernel; Cloud Hypervisor is the recommended hypervisor in 0.7.0, and Kata Firecracker carries documented known issues. The lifecycle is built for long-lived agents: a warm pool of pre-attached microVMs is claimed in under 50 ms, pausing tears down the pod while keeping both volumes at zero CPU and zero RAM, connecting auto-resumes, and a copy-on-write fork clones a running sandbox in about a second. Secrets are handled with placeholders rather than environment variables, and egress goes through a sidecar that can deny by host and inject credentials only for bound destinations. It is Kubernetes-native but not Kubernetes-only: the same gateway, controller and egress proxy run locally under Docker Compose for development. The interface is a superset of E2B, so existing E2B Python and TypeScript SDK workflows can be repointed at the gateway, and first-party Python, TypeScript and Go SDKs plus a CLI and MCP server are included. The trade-offs are the usual self-hosted ones: you operate the cluster, the block storage and the image pipeline, and there is no managed or priced hosted tier to compare against.

Key capabilities

  • Kata Containers microVMs with a separate kernel per sandbox
  • Persistent writable rootfs volume plus a decoupled workspace volume
  • Pause to zero CPU and RAM, with automatic resume on connect
  • PodWarmPool claims a standby in under 50 ms
  • Crash-consistent copy-on-write fork of a running sandbox
  • Zero-trust egress with placeholder secrets and per-pod mTLS
  • E2B-compatible gateway plus Python, TypeScript and Go SDKs, CLI and MCP server
  • Kubernetes Helm chart or single-node Docker Compose
  • Optional browser and desktop sessions through Chromium CDP, noVNC and ttyd
  • Apache-2.0

cubepod.sh

# Start the local control plane
docker compose -f deploy/docker-compose/docker-compose.yaml up -d --build
curl -fsS http://127.0.0.1:8080/health

# Or from the Python SDK
pip install cubepod

from cubepod import CubePod
with CubePod(base_url="http://127.0.0.1:8080") as client:
    sbx = client.create("cubeplex-ubuntu24-desktop", timeout_seconds=3600)
    client.write_file(sbx.sandbox_id, "/workspace/hello.txt", b"persistent data\n")
    print(client.execute(sbx.sandbox_id, "cat /workspace/hello.txt").output)
    client.pause(sbx.sandbox_id)       # 0 CPU / 0 RAM, both volumes kept
    client.connect(sbx.sandbox_id)     # auto-resume
    child = client.fork(sbx.sandbox_id)

Similar alternatives

Technical specifications

Runtime architecture
Docker / Container
Runtime notes
  • Kata Containers microVMs on Kubernetes, with Cloud Hypervisor recommended by 0.7.0 and Kata Firecracker carrying documented known issues
  • Stock OCI images boot with an injected Rust podd-init that pivots into an OverlayFS root and runs the podd agent on port 49983
  • Two persistent volumes per sandbox: a writable OverlayFS rootfs volume and a separate /workspace volume
  • A local single-node mode runs the same components through Docker Compose with sparse loopback ext4 volumes
  • Zero-trust egress: cpodref_ placeholders inside the guest, replaced with real secrets at the pod boundary over per-pod mTLS
Cold-start boot time
Under 50 ms to claim a pre-attached PodWarmPool standby; about 1 second for suspend and resume
Max vCPU
2 vCPUs in the seeded templates; PodTemplate resources set the request and limit per sandbox
Max memory
2,048 MB in the seeded templates; PodTemplate resources set the request and limit per sandbox
Storage model
The seeded templates allocate a 10 GiB rootfs volume and a 20 GiB workspace volume per sandbox, backed by CSI raw block storage in production
Network isolation
Sandbox traffic is intercepted by nftables and routed through a cubepod-egress sidecar that applies the pod's policy, refusing denied DNS lookups and returning HTTP 403 for denied requests; per-pod mTLS carries secret exchanges. Real credentials never enter the guest: environment variables hold cpodref_ placeholders, and only a request to a bound host through the selective HTTPS MITM is given the real value. QUIC and DNS tunnelling are treated as bypass paths and handled by the same policy layer.

Lifecycle & capabilities

Filesystem persistence
Supported
Memory / disk snapshot
Unknown
Instant forking
Supported
GPU acceleration
Not supported
GUI desktop / VNC
Supported
Mobile / cloud phone
Not supported
Browser automation
Supported
Network egress control
Supported
Pause / auto-sleep
Supported
MCP protocol server
Supported
REST API & SDKs
Supported
Idle billing
Zero cost while idle
State kept on pause
Disk only
Resume latency
Under 50 ms to claim a warm-pool standby and about 1 second to suspend or resume, per the project's documentation
Session limit
Configurable through timeoutSeconds, idleTimeoutSeconds and pausedTTLSeconds; a paused sandbox can stay parked until its paused TTL expires
SDKs
Python, TypeScript, Go

Pricing model

Official Verified

Rate read 21 Nov 2026.

Pricing tiers
Free Tier
Summary

Apache-2.0 and free to self-host; there is no hosted plan or rate card, and the bill is your own Kubernetes cluster, block storage and image registry. A local single-node deployment runs on Docker Compose, and the built-in templates fit 2 vCPU, 2 GB and 30 GiB of volumes per sandbox.

Billing unityour own Kubernetes or Docker infrastructure
View official pricing page

Related architecture guides