Now in Public Beta

Sandboxes for AI Agents

Spin up secure, isolated environments in under 50ms. Execute code, run commands, manage files — all inside a sandboxed runtime. 10x cheaper than alternatives.

<50ms
Cold Start
$0.01
Per Hour
40+
POSIX Commands
0
Native Deps
sandbox.ts
// 3 lines to a running sandbox
import { Sandbox } from "@agentrunbox/sdk"
const sandbox = await Sandbox.create()
const result = await sandbox.exec("echo 'Hello from sandbox!'")
✓ Sandbox ready in 42ms
✓ Hello from sandbox!
Capabilities

Built for AI Agents Not retrofitted.

Everything your agent needs to execute code safely. Nothing it doesn't.

Sub-50ms Cold Start

Pure JavaScript sandbox. No WASM, no containers to boot. Your agent gets a running environment before the first token finishes streaming.

Full Isolation

Every sandbox runs in its own V8 isolate with a virtual filesystem. No host access, no escapes, no shared state between sessions.

10x Cheaper

No VMs, no microVMs, no Firecracker overhead. Pure compute-level pricing starting at $0.01/hr. Pay only for what your agents use.

Full Bash + POSIX

Complete bash interpreter with 40+ POSIX commands built in. grep, sed, awk, find, xargs, git. Not a toy shell.

Runs Everywhere

Same sandbox in Cloudflare Workers, Node.js, Bun, or browsers. Deploy where your agents already live.

Multiple Providers

Swap between in-process, Docker, Cloudflare Containers, or bare-metal. One API, multiple isolation levels.

Workflow

Three steps. That's it.

Step 01

Create a Sandbox

One API call spins up an isolated environment with a virtual filesystem, bash interpreter, and 40+ POSIX commands.

const sandbox = await Sandbox. create ( "cloudflare" )
Step 02

Execute Commands

Run bash commands, write files, pipe data. Everything your AI agent needs to accomplish its task.

await sandbox. exec ( "mkdir -p /work && echo done" )
Step 03

Get Results

Extract outputs, read files, stream logs. When done the sandbox vanishes. No cleanup, no lingering state.

const out = await sandbox. readFile ( "/work/result.json" )
Comparison

How we stack up against alternatives.

Same capabilities where it matters. Fraction of the cost. Zero infrastructure complexity.

Feature AgentRunBox E2B Daytona
Cold Start <50ms ~200ms ~90ms
Price / hr $0.01 $0.10+ $0.05+
Isolation V8 + VFS Firecracker Docker
Native Deps None Required Required
Browser Runtime Yes No No
Edge Workers Yes No No
Open Source Apache-2.0 Partial Yes
Built-in Commands 40+ POSIX Full Linux Full Linux

Ready to ship?

Start with $5 of free credits. No credit card required.

Open source · Apache-2.0 · Self-host or cloud