Skip to content
v2.18.0 · HARDENED AGENT SANDBOX, SWARM & RLVR PLATFORM

Run your agents.
Keep control.

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

LIVE GVISOR RUNTIME · v2.18.0
Zero-Egress · Ephemeral
hello.py
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)}")
Open full editor
Click Run live on gVisor to execute real Python on our GKE prod cluster — no signup required.
~419ms warm gVisor + SLSA v1.0
RLVR / GRPO + Spot L4 / A100 / H100
CoW repo hot-forks + sidecars
135-tool Hosted MCP + 10 SDKs (0 gaps)
Works out of the box with
Claude CodeCodexCursorGemini CLIOpenCodeAGYPyTorch 2.5gVisorKubernetes
01 / FROM PROMPT TO PROCESS

Your agent has a plan.
Give it a computer.

Create a sandbox, run a command, collect the result. Familiar SDKs keep the infrastructure out of your agent loop.

  1. 01

    Create an environment

    Choose a runtime and set its resources.

  2. 02

    Let your agent work

    Execute code and read or write files.

  3. 03

    Keep the result. Close the sandbox.

    Collect output and release the compute.

Read the quickstart
$ npm install @stateset/sandbox-sdk tsx
Set STATESET_API_KEY in your environment.
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();
}
OUTPUT4950Example result
WHY STATESET WINS

Everything other sandboxes force you to stitch together.

One 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.

SUB-SECOND CLONES

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.

FULL-STACK SANDBOXES

Ephemeral Sidecars & Visual PR Previews

Attach postgres:16, redis:7, playwright, localstack, mailpit, or mock-stripe per sandbox, branch seeded DBs, and review authenticated Playwright visual diffs.

AUTONOMOUS DAG WAVES

Multi-Harness Swarms & Auto-Router

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.

HUMAN-IN-THE-LOOP

Time-Travel Replay & Human Takeover

Scrub terminal asciicasts, file diffs, screenshots, and LLM tool spans; pause any worker mid-run, attach interactively (tko_ token), and hand back cleanly.

RLVR & GPU ELASTICITY

RLVR, Serverless Batch .map() & Spot GPUs

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.

ENTERPRISE MOAT

BYOC VPC Runner, Policy Gates & SLSA v1.0

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.

HEAD-TO-HEAD PROOF

StateSet v2.18 vs E2B, Daytona & Modal

Honest architectural comparison across isolation, repo hot-forks, sidecars, swarms, RLVR GPUs, and enterprise governance.

Feature comparison between StateSet v2.18, E2B, Daytona, and Modal
CapabilityStateSet v2.18E2BDaytonaModal
gVisor Isolation + Egress Policy + Zero-Exposure Secrets✓ Built-inPartial (Firecracker)Partial (Docker / Kata)✓ gVisor + Secrets
CoW CSI Repo-Cache Hot-Forks✓ CSI Snapshots✗ Templates onlyPartial (Snapshots)Partial (Image layers)
Declarative Ephemeral Sidecars (PG / Redis / Playwright)✓ 1-field spec✗ Self-managedPartial (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 onlyPartial (SSH / IDE)✗ Logs + traces
BYOC VPC Runner + Policy Gates + SLSA v1.0 Provenance✓ BYOC + Policy + Ed25519Partial (BYOC Enterprise)Partial (Self-hosted)Partial (Enterprise VPC)
Serverless Batch .map() + RLVR / Spot GPU Templates✓ Spot + gpu-rl / gpu-pytorch✗ CPU onlyPartial (Static GPU)✓ Native GPUs + .map()
135-Tool Hosted Streamable HTTP MCP + 10 SDKs & 5 Compat Adapters✓ 135 tools + 10 SDKsPartial (Basic MCP)Partial (Basic MCP)✗ Custom endpoints
10-SECOND DROP-IN MIGRATION

Switch in one import line. Zero rewrite.

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
$ npx @stateset/sandbox-cli migrate --from e2b --mode compat --apply
TypeScript
− import { Sandbox } from '@e2b/code-interpreter'+ import { Sandbox } from '@stateset/e2b-compat'
Python
− from e2b_code_interpreter import Sandbox+ from stateset_e2b_compat import Sandbox
Drop-in SDK compat + automated CLI codemodOpen migrator
02 / BUILT FOR THE WORK

Beyond the chat window.

The tools your agents need to move from generating an answer to getting something done.

Coding agents

Give coding agents a workspace to install dependencies, edit files, and test their changes.

Build with the SDK

Data & analysis

Run Python against real files. Generate charts, transform datasets, and return useful artifacts.

Explore code execution

Browser workflows

Use browser-ready environments for automated research, UI testing, and web interactions.

Explore environments
03 / CONTROL, AT EVERY LAYER

Let agents explore.
Set the boundaries.

Keep 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 architecture

gVisor isolation & zero-exposure secrets

Non-root gVisor pods, Envoy egress proxy, NXDOMAIN DNS, and controller-side secret injection that never exposes raw credentials to agent code.

Policy-as-Code approval gates

Declarative path, glob, egress, secret, and spend rules enforced automatically across every swarm and sandbox run.

Signed Ed25519 SLSA v1.0 provenance

Every execution produces verifiable DSSEv1 / in-toto attestations backed by a cluster-wide Ed25519 signing identity.

BYOC VPC runner & Time-Travel Replay

Run data planes inside your own VPC while keeping unified asciicast replay, diffs, audit logs, and live human takeover.

04 / PRICING

$0.028/hour

4 vCPU · 8 GB sandbox, shared class.

Shown at pro rates. Start on Hobby with no monthly plan fee.

  • Billed per second

    Pay for the time a sandbox runs, not a rounded-up hour.

  • $25 trial ≈ 892 hours

    At the pro shared compute rate. Trial eligibility and plan limits apply.

  • Dedicated when it can't be interrupted

    Guaranteed CPU and memory on on-demand capacity, never preempted.

05 / YOUR FIRST SUCCESSFUL RUN

From signup to stdout.

No sales call. No infrastructure to configure. A guided first run, then your own code.

  1. 01

    Create your workspace

    Sign up with email. Start on Hobby with trial credits for eligible new accounts.

  2. 02

    Run something real

    Verify your email, then launch a sample from the dashboard. See the actual output and exit code.

  3. 03

    Make it yours

    Create an API key and connect your app with TypeScript, Python, or the REST API.

Create a free account
BEFORE YOU BUILD

A few useful answers.

Part of StateSet, built for developers who need a place for their agents to execute.

Explore StateSet
How does StateSet compare to E2B, Daytona, and Modal?

StateSet 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.

Can I migrate existing E2B, Daytona, or Modal code without a rewrite?

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.

Do I need a credit card to start?

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.

Do I need an API key or a model to try it?

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.

What can run inside a sandbox?

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.

What happens after the first run?

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.

How fast does a sandbox start?

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.

How is execution controlled?

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.

Read about security
YOUR NEXT BUILD STARTS HERE

Less setup.
More possibility.

Bring your model. Bring your code. We'll give it room to run.

Create your first sandbox Explore pricing