FAQ
Answers to the most common questions about StateSet Sandbox.
What is StateSet Sandbox?
It is a production runtime for AI agents that provides isolated code execution, file I/O, and artifact storage on top of Kubernetes.
How is this different from running containers myself?
We handle isolation, lifecycle, timeouts, limits, and a stable API/SDK so agents can safely run code without you managing workers or custom orchestration.
How are files read and written?
File content is base64 encoded over the API and decoded inside the sandbox. This avoids binary corruption and keeps file I/O reliable for agent workflows.
What are the file size limits?
Default limits are 10MB per file and up to 100 files per request. Large artifacts should be uploaded via the artifact API.
How long do sandboxes run?
Each sandbox has a timeout (default and plan-based). You can set a custom timeout per sandbox within your plan limits.
Is the system isolated?
Each sandbox runs in its own Kubernetes pod with strict file path validation and non-root execution.
Does it work with Claude Code?
Yes. The sandbox image includes Claude Code CLI, and BYOK makes it easy to provide your Anthropic key.
Where can I deploy?
You can use the hosted API or run the controller in your own Kubernetes cluster.
How does StateSet Sandbox compare to E2B, Daytona, and Modal?
StateSet Sandbox unifies gVisor and Kata microVM isolation on Kubernetes ($0.028/hour for 4 vCPU · 8 GB shared Spot sandboxes) with sub-second CSI CoW Repo-Cache hot-forks, ephemeral service sidecars, multi-harness autonomous swarms, serverless batch .map() on Spot NVIDIA GPUs, and enterprise SLSA v1.0 provenance plus BYOC VPC execution in one platform. Explore the side-by-side 10-pillar capability matrix and Fleet TCO calculator on our comparison page.
Can we migrate existing E2B, Daytona, or Modal code without rewriting everything?
Yes. StateSet publishes five drop-in compatibility packages—@stateset/e2b-compat (TypeScript), stateset-e2b-compat (Python), @stateset/daytona-compat (TypeScript), stateset-daytona-compat (Python), and stateset-modal-compat (Python)—so existing sandbox lifecycle, file I/O, and .map() code runs with a one-line import swap. You can automate the switch across your codebase with `npx @stateset/sandbox-cli migrate --from auto --mode compat --apply`.
How do CoW Repo-Cache hot-forks and Ephemeral Service Sidecars work?
CoW Repo-Cache uses GKE CSI VolumeSnapshot clones to hydrate large repositories and dependencies into sandboxes in sub-second time without repeating cold git clones. Ephemeral Service Sidecars attach isolated presets—including postgres:16, redis:7, playwright, localstack, mailpit, and mock-stripe—alongside your sandbox, with built-in database branching and Visual PR Previews for full-stack verification.
How do Multi-Harness Autonomous Swarms and Time-Travel Human Takeover work?
The Multi-Harness Auto-Router schedules tasks across five coding agent harnesses—agy, claude-code, codex, gemini-cli, and opencode—using parallel waves and automatic circuit-breaker failover if a provider degrades or rate-limits. Every run records a scrubbable asciicast v2 replay, and Live Human Takeover mints single-use scoped tko_ attach tokens to pause a worker at a barrier for interactive PTY or Web-IDE intervention before an audited handback.
Does StateSet support Serverless Batch .map() and Spot GPUs?
Yes. Serverless Batch .map() fans out parallel workloads across six compute and accelerator SKUs—cpu-standard, cpu-highmem, nvidia-t4, nvidia-l4, nvidia-a100-80gb, and nvidia-h100-80gb—with automatic Spot preemption retry, On-Demand fallback, and scale-to-zero after completion. Live Spot NVIDIA L4 CUDA execution is verified in production on GKE Autopilot (23,034 MiB VRAM, driver 535.274.02, 0/0 idle replicas post-run).
Does StateSet provide a Hosted MCP server and BYOC VPC runner?
Yes. StateSet runs a 135-tool Hosted Streamable HTTP MCP server at mcp.sandbox.stateset.app with RFC 9728 OAuth protected-resource discovery (including 5 rl_* RLVR tools) so AI clients connect securely out of the box. For strict data residency, self-hosted @stateset/byoc-runner executes inside your own AWS, GCP, or Azure VPC via outbound-only lease polling alongside Policy-as-Code approval gates and cluster-wide Ed25519 SLSA v1.0 provenance attestations.
How does StateSet Sandbox support RLVR, GRPO, and post-training workloads?
StateSet Sandbox v2.18.0 ships native RLVR, GRPO, DAPO, GSPO, SFT, Harvest, and GPU Flywheel workflows across all five product surfaces: Serverless Batch .map() parallel trajectory grading in zero-egress gVisor, pre-baked gpu-pytorch (CUDA 12.4 + PyTorch 2.5.1) and gpu-rl templates, CoW repo caches, Model-Weight CSI caches, 5 rl_* MCP tools, and the Dashboard RL Studio (/dashboard/rl).
Still have questions?
Compare runtimes, try the interactive migrator, or review migration docs and pricing.