OmniRun documentation
Isolated virtual machines for AI agents. One API call to create, one to destroy. Sandboxes typically start in under a second (snapshot restore) and each runs its own kernel.
Start here
Two ways to your first sandbox. Both SDKs wrap the same REST API.
Browse the docs
Guides and reference, grouped by what you are doing.
Getting started
What a sandbox is, how it starts, and the calls you need: create, run, kill.
SDKs
OmniRun SDKs for TypeScript and Python. Both wrap the same REST API.
REST API
Endpoints for sandboxes, commands, files and exposures. Base URL api.omnirun.io.
Sandboxes
Internet on or off per sandbox, the opt-in SNI proxy, file transfer and limits.
Agents and models
The LLM proxy, the vault, Claude Managed Agents and OpenClaw.
Security and reference
The isolation model, start-up times and the changelog.
import { Sandbox } from '@omnirun/sdk';
const sandbox = await Sandbox.create('playground', {
timeout: 300,
});
// sandbox.sandboxId → "sb_a1b2c3d4"from omnirun import Sandbox
sandbox = Sandbox.create(
"playground",
timeout=300,
)
# sandbox.sandboxId → "sb_a1b2c3d4"$ curl -X POST https://api.omnirun.io/sandboxes \
-H "Authorization: Bearer $OMNIRUN_KEY" \
-d '{"template": "playground",
"timeout": 300}'- 01Create
The API restores a microVM from the template’s memory snapshot. Typically under a second.
- 02Run
Commands and code run inside the guest, under its own kernel.
- 03Kill
The VM stops and its sandbox is removed.