CoW Repo-Cache Hot-Forks
Skip cold git clone + npm ci. GKE CSI VolumeSnapshot hot-forks boot warm monorepos with pre-built dependency caches in sub-second clones.
Hardened gVisor sandboxes that boot in ~419ms — built for autonomous coding swarms, RLVR reward grading, and Spot NVIDIA GPUs. Drop in from E2B, Modal, or Daytona in one line, or connect 135 hosted MCP tools.
$ npm i @stateset/sandbox-sdk$25 in trial credits (~892 hrs shared) Test live on gVisor right here before signing up
Run live Claim API key Ship verified agents
import platform, sys
squares = [n * n for n in range(1, 7)]
print(f"gVisor OK · Python {sys.version.split()[0]} ({platform.system()})")
print(f"sum(1..6^2) = {sum(squares)}")Create a sandbox, run a command, collect the result. Familiar SDKs keep the infrastructure out of your agent loop.
Choose a runtime and set its resources.
Execute code and read or write files.
Collect output and release the compute.
import { Sandbox } from '@stateset/sandbox-sdk';
const sandbox = await Sandbox.create({
apiKey: process.env.STATESET_API_KEY,
baseUrl: "https://api.sandbox.stateset.app",
timeout_seconds: 300,
});
try {
const result = await sandbox.exec(
'python3 -c "print(sum(range(100)))"'
);
if (result.exit_code !== 0) throw new Error(result.stderr || 'Command failed');
console.log(result.stdout);
} finally {
await sandbox.close();
}
4950Example resultOne hardened v2.18 execution platform for coding agents, RLVR post-training, Spot GPU batches, and autonomous engineering swarms — with 10/10 SDK parity and zero vendor glue.
Skip cold git clone + npm ci. GKE CSI VolumeSnapshot hot-forks boot warm monorepos with pre-built dependency caches in sub-second clones.
Attach postgres:16, redis:7, playwright, localstack, mailpit, or mock-stripe per sandbox, branch seeded DBs, and review authenticated Playwright visual diffs.
Run agy, claude-code, codex, gemini-cli, and opencode in DAG waves with automatic 429/5xx circuit-breaker failover and GitHub, Sentry, PagerDuty, Linear, & Jira triggers.
Scrub terminal asciicasts, file diffs, screenshots, and LLM tool spans; pause any worker mid-run, attach interactively (tko_ token), and hand back cleanly.
Grade thousands of untrusted RLVR / GRPO / DAPO rollouts in parallel with Batch .map(), launch pre-baked gpu-pytorch & gpu-rl templates (CUDA 12.4 + PyTorch 2.5), and cut cold starts with Model-Weight CSI caches.
Run inside your own VPC with @stateset/byoc-runner, enforce declarative Policy-as-Code approval gates, and verify every run with cluster-wide Ed25519 DSSEv1 attestations.
Scale untrusted trajectory grading across gVisor with Serverless Batch .map(), pre-baked gpu-pytorch & gpu-rl templates, CoW repo caches, and Model-Weight CSI caches.
Connect Claude Code, Cursor, Windsurf, or Antigravity directly to mcp.sandbox.stateset.app/mcp with RFC 9728 OAuth and per-tenant API keys.
Honest architectural comparison across isolation, repo hot-forks, sidecars, swarms, RLVR GPUs, and enterprise governance.
| Capability | StateSet v2.18 | E2B | Daytona | Modal |
|---|---|---|---|---|
| gVisor Isolation + Egress Policy + Zero-Exposure Secrets | ✓ Built-in | Partial (Firecracker) | Partial (Docker / Kata) | ✓ gVisor + Secrets |
| CoW CSI Repo-Cache Hot-Forks | ✓ CSI Snapshots | ✗ Templates only | Partial (Snapshots) | Partial (Image layers) |
| Declarative Ephemeral Sidecars (PG / Redis / Playwright) | ✓ 1-field spec | ✗ Self-managed | Partial (Compose) | ✗ External services |
| Multi-Harness Autonomous Swarms & Incident Triggers | ✓ 5 harnesses + webhooks | ✗ Single sandbox | ✗ Single workspace | ✗ DIY orchestration |
| Time-Travel Replay + Live Human Takeover / Handback | ✓ Asciicast + tko_ attach | ✗ Logs only | Partial (SSH / IDE) | ✗ Logs + traces |
| BYOC VPC Runner + Policy Gates + SLSA v1.0 Provenance | ✓ BYOC + Policy + Ed25519 | Partial (BYOC Enterprise) | Partial (Self-hosted) | Partial (Enterprise VPC) |
| Serverless Batch .map() + RLVR / Spot GPU Templates | ✓ Spot + gpu-rl / gpu-pytorch | ✗ CPU only | Partial (Static GPU) | ✓ Native GPUs + .map() |
| 135-Tool Hosted Streamable HTTP MCP + 10 SDKs & 5 Compat Adapters | ✓ 135 tools + 10 SDKs | Partial (Basic MCP) | Partial (Basic MCP) | ✗ Custom endpoints |
Keep your existing E2B, Daytona, or Modal agent loops running unchanged while upgrading to gVisor isolation, CoW hot-forks, sidecars, and Ed25519 SLSA attestations.
Keep your Sandbox.create() and runCode() loops untouched while gaining gVisor isolation, ephemeral sidecars, and SLSA provenance.
Try interactive code migrator in Playground− import { Sandbox } from '@e2b/code-interpreter'+ import { Sandbox } from '@stateset/e2b-compat'− from e2b_code_interpreter import Sandbox+ from stateset_e2b_compat import SandboxThe tools your agents need to move from generating an answer to getting something done.
Give coding agents a workspace to install dependencies, edit files, and test their changes.
Build with the SDKRun Python against real files. Generate charts, transform datasets, and return useful artifacts.
Explore code executionUse browser-ready environments for automated research, UI testing, and web interactions.
Explore environmentsKeep untrusted agent execution isolated from your core stack. Enforce declarative policies, sign every output with Ed25519 provenance, and step in live whenever a human needs the wheel.
Explore the architectureNon-root gVisor pods, Envoy egress proxy, NXDOMAIN DNS, and controller-side secret injection that never exposes raw credentials to agent code.
Declarative path, glob, egress, secret, and spend rules enforced automatically across every swarm and sandbox run.
Every execution produces verifiable DSSEv1 / in-toto attestations backed by a cluster-wide Ed25519 signing identity.
Run data planes inside your own VPC while keeping unified asciicast replay, diffs, audit logs, and live human takeover.
4 vCPU · 8 GB sandbox, shared class.
Shown at pro rates. Start on Hobby with no monthly plan fee.
Pay for the time a sandbox runs, not a rounded-up hour.
At the pro shared compute rate. Trial eligibility and plan limits apply.
Guaranteed CPU and memory on on-demand capacity, never preempted.
No sales call. No infrastructure to configure. A guided first run, then your own code.
Sign up with email. Start on Hobby with trial credits for eligible new accounts.
Verify your email, then launch a sample from the dashboard. See the actual output and exit code.
Create an API key and connect your app with TypeScript, Python, or the REST API.
Part of StateSet, built for developers who need a place for their agents to execute.
Explore StateSetStateSet brings hardened gVisor sandboxes, sub-second CoW CSI repo hot-forks, declarative ephemeral sidecars (Postgres, Redis, Playwright), multi-harness autonomous swarms, Time-Travel Replay with live human takeover, RLVR / Spot GPU Batch .map() with pre-baked gpu-pytorch & gpu-rl templates, BYOC VPC runners, 10/10 zero-gap SDKs, and Ed25519 SLSA v1.0 provenance into one platform — plus a 135-tool Hosted MCP. Compare every pillar and estimate fleet TCO on the Compare page.
Yes. Use our drop-in compatibility SDKs (@stateset/e2b-compat, stateset_e2b_compat, @stateset/daytona-compat, stateset_daytona_compat, and stateset_modal_compat) or run npx @stateset/sandbox-cli migrate --from e2b|daytona|modal --mode compat --apply to swap imports in seconds while keeping your existing agent code intact.
Signing up and verifying your email are free. Add a card before you create your first sandbox: it isn't charged while your trial credits last ($25 for eligible new accounts, granted when you verify your email). After that, usage is billed to your card at pay-as-you-go rates.
The guided dashboard sample uses your signed-in session. You can run code without an SDK key or a model provider account. Create a sandbox API key when you connect your own application.
Shell commands, Python and Node.js code, file operations, and agent workloads. Browser workflows use browser-ready environments. Bring your own model provider credentials when your workload calls an AI model.
The guided sample stops its sandbox after execution. Your own sandboxes have a configured lifetime and can be stopped through the dashboard or API. Review usage and manage credits in billing.
About one second from the create request to the output of the first command when a warm sandbox is available: a median of 1.03 s over 15 runs against production on 20 November 2026. A create that finds no warm sandbox starts cold and takes longer. The benchmarks page has the method and a script to measure it yourself.
Sandboxes support gVisor isolation, non-root execution, resource and lifetime limits, scoped API keys, and execution history. Review the security documentation for the deployment details.
Bring your model. Bring your code. We'll give it room to run.
Create your first sandbox Explore pricing