Run Cloud

AI sandbox for agentsA Firecracker microVM per task, billed per second.

An AI sandbox is an isolated machine where an agent runs the code it writes. Run Cloud gives every task its own Firecracker microVM with its own Linux kernel. It starts in well under a second and bills per second: 1 vCPU and 4 GiB cost about $0.021 an hour, around a fifth of E2B or Daytona at the same size. Start with $5 free and no card.

IsolationA Firecracker microVM with its own kernel, not a container
StartWell under a second
Size0.125 vCPU and 128 MiB by default, up to 32 vCPUs and 112 GiB
CPU billingYour reservation, plus CPU used above it at the same rate
PriceAbout $0.021 an hour for 1 vCPU and 4 GiB, billed per second
Keep statePause and resume, filesystem snapshots, persistent sandboxes with a URL and SSH
Use it fromCLI, TypeScript, Python and Go SDKs
To start$5 of usage with no card, then $15 free every month once you add one

Published 2026-11-24 · Updated 2026-11-24

Run your first sandbox

  1. Create a Run Cloud account. It is free to start and asks for no card.
  2. Install the runcloud CLI and sign in:
    npm install -g runcloud
    runcloud login
  3. Create a sandbox with the size you need. It prints the sandbox ID:
    runcloud sandbox create --cpu 1 --memory 4096 --json
  4. Run commands in it. Pipes and && work, and a non-zero exit code comes back instead of throwing:
    runcloud sandbox exec SANDBOX_ID "uname -a && df -h /"
  5. Destroy it when the task is done, and billing stops:
    runcloud sandbox rm SANDBOX_ID

From code, the TypeScript SDK does the same. It reads an API key from the dashboard in RUN_CLOUD_API_KEY:

import { Client } from "@run-cloud/sdk";

const cloud = new Client();
const sandbox = await cloud.sandboxes.create({ cpu: 1, memory: 4096 });
try {
  const result = await cloud.sandboxes.exec(sandbox.id, "uname -a");
  console.log(result.stdout);
} finally {
  await cloud.sandboxes.destroy(sandbox.id);
}
Run a sandbox: full documentation

Coming from E2B

The Python SDK has adapters for E2B, Daytona, Modal, Vercel Sandbox, Blaxel and Fly Sprites, so a migration starts with one import:

pip install runcloud-sdk

# from e2b import Sandbox
from runcloud.compat.e2b import Sandbox

box = Sandbox.create()
print(box.commands.run("python -V").stdout)
box.kill()
Python SDK and compatibility adapters

Price for 1 vCPU and 4 GiB, per hour

Each figure comes from the vendor's published per-second or per-hour rates, read on 2026-11-24, for a sandbox holding 1 vCPU and 4 GiB of memory for an hour.

ProviderPer hourVs Run CloudIsolationPlan and free usage
Run Cloud$0.0211xFirecracker microVMNone. $5 free with no card, $15 free every month with one source
Cloudflare Sandboxup to $0.126not the same sizeMicroVMFixed sizes: 1 vCPU comes with 6 GiB (standard-2). Workers Paid, $5 a month, with some usage included; disk billed separately source
E2B$0.1155.5xFirecracker microVMHobby is free with $100 of one-time credit; Pro is $150 a month source
Daytona$0.1155.5xContainers by default, VMs optionalNone. $200 of free compute source
Modal Sandboxes$0.1678xgVisor, VMs optionalStarter is free with $30 of credit a month source
Vercel Sandboxup to $0.341not the same sizeFirecracker microVMVercel pairs 2 GB with each vCPU, so 4 GB means 2 vCPUs. Hobby has a free monthly quota and 45-minute sessions; Pro is $20 a month source

Cloudflare and Vercel bill CPU only while it is busy, so an agent that mostly waits pays less there than the full-CPU figures above. On Run Cloud the same pattern costs less too: keep the default 0.125 vCPU reservation, about $0.0015 an hour with 128 MiB, and the sandbox bursts above it when the agent works.

What teams use it for

Good fit

  • Run code an agent wrote, with a real kernel boundary between it and your machine.
  • Give a coding agent a disposable Linux box it can install into and break.
  • Run builds and tests in parallel, one sandbox per job.
  • Do an expensive setup once, snapshot it, and restore it for every later run.
  • Keep a dev server or small service running in a persistent sandbox with its own URL.
  • Drive a desktop sandbox for computer-use agents: screenshot, click and type.

Know before you start

  • Memory is reserved up front and is a hard limit by default. Where memory bursting is enabled for your organization, --memory-limit lets a sandbox use more when its host has room, billed as used.
  • Paused and stopped sandboxes still count against your organization limits until you destroy them.
  • Default organization limits are 100 sandboxes and 100 reserved vCPUs at once. Larger fleets ask support to raise them.
Run Cloud pricing, with sandbox examples

Frequently asked questions

What is an AI sandbox?

An isolated machine where an AI agent runs the code it writes, installs packages and touches files, without reaching your laptop or your servers. Run Cloud sandboxes are Firecracker microVMs: each one boots its own Linux kernel, so a bad command stays inside the VM.

Why a microVM instead of a container?

A container shares the host kernel, so a kernel bug can let code out. A microVM runs its own kernel behind a hypervisor, which is a stronger boundary for code nobody reviewed. Firecracker keeps that boot under a second.

How much does a sandbox cost?

You pay per second for the CPU and memory you reserve: $0.00000492 per physical core-second (2 vCPUs) and $0.00000083175 per GiB-second. 1 vCPU and 4 GiB comes to about $0.021 an hour, or about $15 for a month running nonstop. CPU used above the reservation bills at the same rate.

I use E2B, Daytona, Modal or Vercel Sandbox. How hard is it to switch?

The Python SDK ships adapters for E2B, Daytona, Modal, Vercel Sandbox, Blaxel and Fly Sprites. For E2B, replace from e2b import Sandbox with from runcloud.compat.e2b import Sandbox. The adapters cover creation, lookup, commands, lifecycle and destruction.

Can a sandbox keep its state?

Yes. Pause and resume a sandbox, snapshot its filesystem and restore it as many times as you like, or create a persistent sandbox that stays running with its own URL and SSH access.

Can my agent also test a mobile app?

Yes, on the same account and bill. Run Cloud also runs iOS simulators and Android emulators at $0.02 per active minute, which agents drive through the CLI, SDK or MCP server.

Testing a mobile app as well? See the iOS simulator for AI agents.

Give your agent its own machine.

Create an account, run runcloud sandbox create, and pay per second. $5 of usage is on us, no card needed.