Developer Documentation
Boot your first microVM in four lines.
Install the SDK, authenticate with an API key, and execute untrusted code inside isolated Linux kernels.
TypeScript SDK
npm i @microvm-cloud/sdk import { MicroVM } from "@microvm-cloud/sdk";
const vm = await MicroVM.boot({
snapshot: "py-data-312",
memoryMb: 512,
egress: { allow: ["pypi.org"] },
});
const run = await vm.exec("python3 -c 'print(sum(range(1000)))'");
await vm.destroy(); CLI Snapshot Workflow
brew install mcvm mcvm auth login
mcvm snapshot build --from ./Dockerfile --tag py-agent-v4
mcvm run py-agent-v4 --mem 1024 --egress deny -- "python3 eval.py" Control Plane API
Isolation spec →POST /v1/sandboxes Restore a Firecracker microVM from a warm snapshot or cold rootfs.
POST /v1/sandboxes/:id/exec Execute a command over vsock and stream stdout/stderr frames.
PUT /v1/sandboxes/:id/files Upload workspace files directly into the guest ephemeral NVMe disk.
DELETE /v1/sandboxes/:id Terminate the guest immediately and scrub allocated host pages.