Skip to content
CLOUD SANDBOXES FOR AI AGENTS

Run your agents.
Keep control.

Execute code, automate browsers, and turn data into useful results in isolated cloud environments. Set run budgets, keep the output, and start with a working commerce or operations example.

$25 in trial credits Your card isn't charged while they last

Sign up Choose a workflow Keep the result

ISOLATED BY DESIGNENV / 001
gVisor isolation
•••agent-workspaceILLUSTRATION

❯ python analysis.py

Artifact written to /workspace/report.csv

gVisor isolation
Code + shell execution
Files + artifacts
Kubernetes native
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 https://sandbox.stateset.app/downloads/stateset-sandbox-sdk-2.13.0.tgz 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
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 execution separate from your application. Choose resource limits, scope access, and follow what your agents are doing.

Explore the architecture

Isolate execution

gVisor runtime support and non-root execution.

Define the environment

Explicit CPU, memory, and sandbox lifetime limits.

Control access

Scoped API keys, team roles, and encrypted secrets.

See what happened

Execution output, usage tracking, and audit logs.

04 / PRICING

$0.028/hour

4 vCPU · 8 GB sandbox, shared class.

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

See plans and rates
  • 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
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 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