Elastic sandboxes built for agent scale

Boot 50 SWE-bench sandboxes in 9.7s over zero-config hf:// HTTP Range, branch trajectories via sandbox.fork, attach over WebSocket PTY (stratabox ssh) & wildcard preview URLs, and scale to 40,000 live containers, 4,535 Firecracker MicroVMs, and 56,104 FnCall QPS.

Select a stratum to inspect the runtime stack

Multi-language SDKs, RL adapters, and stateless control

Official Python, Rust, Go, and TypeScript SDKs plus verl and Harbor adapters drive batch rollouts with sandbox.fork, WebSocket PTY (stratabox ssh), and wildcard preview URLs through a zero-state O(1) ApiServer and Power-of-k PlacementEngine.

SDK / verl / Harbor -> IAM -> ApiServer (O(1) + WS/Preview) -> Edge

Warm FnCall & scale
56,104 QPS (< 5 ms hit) · 40,000 live containers
Interactive & branching
sandbox.fork + WebSocket PTY (stratabox ssh) + Preview URLs
Ecosystem & SDKs
Py / Rust / Go / TS SDKs · verl & Harbor integrations

One runtime across four isolation boundaries

Route stateless functions, stateful containers, Firecracker microVMs, and full KVM machines from official Python, Rust, Go, and TypeScript SDKs.

stratabox Async SDK Anon pipes Direct fast path Warm slot Python + MIG tmpfs RO rootfs
Isolation boundary
Isolated container slot + warm Python worker pool + GPU/MIG lease
Rootfs and storage
Read-only base rootfs + ephemeral tmpfs scratch workspace
Control channel
Private anonymous pipes (bypasses aether and chronus)
Startup latency
< 5 ms warm hit · 56,104 QPS on 10 Edges (6.18 ms E2E p50)
Memory reclamation
Constant-RAM worker pool reset on completion (105,000 calls, 0 leaks)
Target workloads
Competitive programming judges, single-file snippets, GPU kernel benchmarks
fncall_warm_pool.py pip install stratabox
from stratabox import StrataBoxClient, StrataBoxFnCallArgs

async with StrataBoxClient() as client:
    # Sub-5 ms warm Python pool (or GPU/MIG lease)
    fn = await client.run_fncall(
        StrataBoxFnCallArgs(
            language="python",
            code="print(6 * 7)",
            use_warm_python=True,
            gpu_mode="none",
        )
    )
    print(fn.stdout.strip(), f"warm={fn.warm_hit}")

Backend comparison

Backend Isolation Storage Control channel Startup & verified scale Best for
FnCallContainer slot + warm Python pool + GPU/MIG leaseRead-only rootfs + ephemeral tmpfsAnonymous pipes< 5 ms warm · 56,104 QPS (1.00x skew)OJ judges, snippets, GPU kernel benchmarks
ContainerNamespaces + pivot_root + AppArmor + Landlock v8 + Seccomp + eBPFComposable EROFS (256 KiB FUSE) + OverlayFSHidden UDS (--listen-fd 3)1,068.7/s burst · 40,000 live (~13 MiB, 2.0 ms resume)SWE-bench repair, multi-turn agents, builds
MicroVmFirecracker v1.18.0 + 15.75 MiB slim kernel + DAXFile snapshot clone (Power-of-k) + 256 KiB CoWvsock UDS multiplex189.5/s clone · 4,535 live (~19 MiB/VM)Untrusted root, kernel security, Docker-in-VM
FullVmQEMU/KVM (q35) + virtio-pmem DAX + virtio-gpu DRMComposable rootfs or full qcow2/raw diskKernel AF_VSOCK (16,384 CIDs)39.8/s · 1,600 live (167.6 ms exec p99)OSWorld/WebArena GUI, custom OS, DRM graphics

Load only the blocks each rollout touches

Rollouts read 4.2% to 13.3% of an image. Prefetch compact EROFS metadata locally and page 256 KiB chunks through pure-Rust FUSE.

Prefetched local meta.erofs serves stat() and directory walks with 0 remote data chunk reads.

Chunks transferred (7.8%)5 / 64
Metadata stat() remote I/O (local meta.erofs)0 remote reads
Local write amplification (-92.2%)Only touched 256 KiB chunks
Verified 10-Edge density1,068.7 /s container burst

Across a 64-chunk (16 MiB) slice with a 7.8% sparse working set (paper §4.4: 4.2%–13.3%), fuse.stratabox singleflight-fetches only the 5 touched 256 KiB chunks into the node-local L2 cache, skipping 92.2% of unread blocks.

Three storage primitives

Loop-free composable EROFS

Mount immutable Base, Workspace, and Toolkit layers natively via file-backed Linux EROFS without consuming /dev/loop devices.

DashMap mount deduplication shares 3 read-only mounts across all concurrent containers; offline compaction merges base layers up to 3 GiB while preserving OverlayFS whiteouts.

Pure-Rust /dev/fuse 256 KiB pager

Multi-device --blobdev images keep compact meta.erofs locally while fuse.stratabox intercepts kernel reads on demand in 256 KiB chunks.

Singleflight coalescing deduplicates concurrent misses into a persistent node-local L2 cache, keeping stat() and directory walks strictly local.

VM CoW blocks and scrubbed pack_diff

OverlayBD-style 256 KiB copy-on-write block devices back MicroVm and FullVm guests with sparse dirty tracking and incremental snapshots.

pack_diff removes caller-specified sensitive paths and build-time UID artifacts before sealing a writable upperdir into a reusable read-only EROFS layer.

Pack dense sandboxes without noisy neighbors

Verified across multi-node 10-Edge (10 × n2-standard-16) and 4-Edge (4 × n2-standard-32) GCP Spot clusters up to 192 vCPUs and 768 GiB RAM, coordinating all four isolation backends with zero resource leaks.

One 16-vCPU stateless control plane sustains 56,104 FnCall QPS at 1.00x skew, coordinates 40,000 / 40,000 live containers (1,068.7/s peak, ~13 MiB/ctr, 2.0 ms auto-resume) at <= 21.2% Control CPU, clones 4,535 live Firecracker MicroVMs (189.5/s, ~19 MiB/VM) at 7.43% Control CPU, and drives 1,600 / 1,600 live QEMU FullVMs (39.8/s, 167.6 ms exec p99) with 0 leaked sandboxes.

Backend Peak live / calls Peak rate / QPS Create p50 / p99 Fleet exec p99 Pause -> resume Physical RAM / sbx Control CPU / skew
FnCall (warm Python)105,000 calls (0 leaks)56,104 QPS6.18 / 28.84 msN/AN/AConstant poolStateless / 1.00x
Container (EROFS + eBPF)40,000 / 40,000 (0 leaks)1,068.7/s (4k) · 477.9/s (40k)1,318 / 5,499 ms490.5 ms (40k)357 ms -> 2.0 ms~13 MiB21.2% / 1.00x (±2)
MicroVm clone (10-Edge file)4,535 live (0 leaks)189.5/s (1k) · 77.4/s (4k)567 / 3,460 ms (4k)379.9 ms (4k)Snapshot clone~19 MiB (49.7–54.1 GiB free)7.43% / 1.18x
MicroVm cold (15.75M slim)4,155 live (0 leaks)131.7/s (1k) · 120.4/s (2k)1,494 / 5,651 ms363.5 ms (4.15k)N/A~63 MiB (31.6 GiB free)6.78% / 1.12x
MicroVm cold (67.72M generic)4,200 / 4,200 (0 leaks)75.4/s (1k) · 53.5/s (4.2k)3,064 / 8,720 ms295.9 ms (4.2k)631 ms -> 218.5 ms~138 MiB (4.3 GiB free)1.37% / 1.07x
FullVm (QEMU/KVM 512M)1,600 / 1,600 (0 leaks)39.8/s (900) · 22.1/s (1.6k)3,382 / 17,877 ms167.6 ms (1.6k)973 ms -> 241.5 ms~265 MiB (8.56 GiB freed)1.31% / 1.09x

Cluster environments: Cluster B — 10 × n2-standard-16 Spot Edges + 1 × 16-vCPU Control + 1 × 16-vCPU LoadGen (192 vCPUs / 768 GiB RAM; 160 Edge vCPUs / 640 GiB Edge RAM); Cluster A — 4 × n2-standard-32 Spot Edges (Intel Ice Lake, nested KVM). Host OS: Ubuntu 24.04 LTS (Linux 7.0.0-1018-gcp), 15.75 MiB 7.0.0-stratabox-microvm guest kernel, Firecracker v1.18.0, QEMU 8.2.2.

Confine untrusted root workloads in depth

Seven verified kernel and L7 runtime controls — including the L7 Time-Machine anti-contamination gateway — neutralize reward-hacking vectors during agentic RL runs.

Global HASH_OF_MAPS cgroup v2 eBPF & Netlink firewall

Attack vector
Agents port-scan internal package mirrors, abuse IPv4-mapped IPv6 addresses, or fetch remote solutions once evaluation begins.
Defense mechanism
Loads a single node-wide pair of cgroup v2 connect4/connect6 and udp4/udp6 eBPF programs backed by BPF_MAP_TYPE_HASH_OF_MAPS + per-sandbox LPM_TRIE maps (zero per-container ip/nft/BPF_PROG_LOAD subprocesses), updating egress rules in microseconds.
Kernel primitive
bpf_get_current_cgroup_id() + BPF_MAP_TYPE_HASH_OF_MAPS + AF_NETLINK

Zero-state routing encoded in every sandbox ID

ApiServer holds zero per-sandbox state. It extracts the owning edge node in O(1) with zero allocations and survives restarts without interrupting live sandboxes.

Prefixstratabox
Home edgeedge02
Backend codectr (Container)
Sandbox UID9f4a21

O(1) direct proxy target: Edge node edge02 -> Container runtime (0 DB lookups)

Start a local cluster in three commands

Build the Rust binaries, launch a multi-edge local cluster, import OCI images into chunked EROFS layers, and drive workloads from Python, Rust, Go, or TypeScript.

stratabox-sdk-python
bash Compile release binaries for stratabox-agent and stratabox-daemon, then install your preferred SDK.
# 1. Build release binaries: in-sandbox agent and cluster/node CLI
cargo build --locked --release -p stratabox-agent -p stratabox-daemon

# 2. (Optional) Build 100% static musl stratabox-agent for Alpine or scratch images
CC_x86_64_unknown_linux_musl=gcc cargo build --locked --release \
  --target x86_64-unknown-linux-musl -p stratabox-agent

# 3. Install the official Python SDK (requires Python 3.11+)
pip install stratabox

Official SDKs

pip install stratabox

Async StrataBoxClient and event-loop-safe SyncStrataBoxClient for TRL, OpenRLHF, and Jupyter with PEP 561 typing and direct async with handles.

Workspace architecture & RL integrations

stratabox-proto
Shared wire DTOs, typed error catalog, O(1) SandboxId codec, 8-byte binary RPC framing, SigV4, and RFC 6455 WebSocket primitives.
stratabox-agent
Static musl in-sandbox daemon housing the aether UDS/AF_VSOCK multiplexer, chronus session worker, PTY master, and POSIX sh fallback.
stratabox-storage
Composable EROFS/OverlayFS engine, zero-config hf:// & s3:// /dev/fuse 256 KiB pager with L2 cache, VM CoW blocks, and scrubbed pack_diff.
stratabox-sandbox
Four execution backends, sandbox.fork branching, global HASH_OF_MAPS eBPF firewall, GPU/MIG leasing, AppArmor/Landlock/Seccomp, and PR_SCHED_CORE QoS.
stratabox-edge
Node daemon with L7 Time-Machine anti-contamination gateway, WebSocket PTY & port preview proxy, zero-downtime hot-upgrade, and auto-resume.
stratabox-control
Stateless control plane with hierarchical IAM quotas, Power-of-k-Choices placement, and zero-state O(1) ApiServer with wildcard preview & WS relay.
stratabox-daemon
Composition root and unified CLI (cluster, control, edge, ssh, layer, doctor), OCI/directory chunked EROFS builder, and cluster preflight diagnostics.
stratabox-verl
Official ByteDance verl multi-turn agentic RL tool & reward adapter with trajectory forking, GPU/MIG kernel scoring, and L7 Time-Machine anti-cheat.
stratabox-harbor
Zero-fork Harbor evaluation integration supporting all four backends, hf:// & custom OCI EROFS builds, fractional CPUs, and live firewall lockdown.