Skip to content

SVM documentation

Run untrusted and AI-generated code in isolated microVM sandboxes. One API, five SDKs, a CLI and an MCP server for agents.

Pick a language once; every code sample on the site follows it.

from svm import Sandbox
from svm.code_interpreter import CODE_INTERPRETER_TEMPLATE # "code-interpreter-all"
# run_code needs a template with the code interpreter kernel.
with Sandbox.create(template=CODE_INTERPRETER_TEMPLATE) as sandbox:
execution = sandbox.run_code("x = 21\nx * 2")
print(execution.text) # 42
result = sandbox.commands.run("echo hello from $(hostname)")
print(result.stdout)
# Leaving the block kills the sandbox.

Python

pip install svm · package svm

TypeScript

npm install @svm/sandbox

Go

go get …/firecracker-agent-platform/sdk/go

Ruby

gem install svm

Java

Maven dev.svm:sandbox

CLI

svm · ships with the Python package

Every SDK exposes the same methods under its own naming conventions. The SDK reference shows each method in all five languages side by side, generated from the SDK sources.