Backends

heyvm supports multiple sandbox backends. Install and configure at least one for your host platform — see the per-backend pages below for setup steps.

Available backends

BackendIdentifierPlatformsDescription
MicrosandboxmsbmacOS, LinuxFull-VM isolation via the microsandbox SDK. Supports Python and Node.js sandbox types.
Apple Containerapple_container (alias apple_vf)macOS (Apple silicon)Linux OCI containers run as lightweight VMs through Apple's container CLI. Default backend on macOS.
Apple Virtualizationapple_virtmacOS (Apple silicon)Full Linux VMs booted directly through Apple's Virtualization.framework via the avfbind Swift FFI — no container CLI or daemon required. Default backend for heyvm wt on macOS.
Sandbox Execsandbox_execmacOSProcess-level sandboxing using macOS's built-in sandbox-exec.
BubblewrapbubblewrapLinuxLightweight namespace-based isolation via bwrap. Supports shell, Python, and Node.js sandbox types. Default backend on Linux.
LibvirtlibvirtLinux (selectable on all platforms for cloud deploy)Full-VM virtualization via KVM/QEMU. Strongest isolation of any backend; runs Ubuntu, Debian, or Alpine cloud images.
FirecrackerfirecrackerLinux (selectable on all platforms for cloud deploy)Lightweight KVM microVMs via the Firecracker VMM. Default worktree backend on Linux when /dev/kvm is available.
Firecracker Containerdfirecracker_containerdLinuxRuns OCI container images as Firecracker microVMs via firecracker-containerd (the aws.firecracker containerd runtime + devmapper snapshotter).
KVMkvmLinux (x86_64 only)Direct /dev/kvm VM management via the rust-vmm ecosystem (kvmbind) — no external VMM binary required.
Hyper-VhypervWindowsFull-VM isolation via Microsoft Hyper-V. Default backend on Windows.
Windows Sandboxwindows_sandbox (alias wsb)WindowsDisposable desktop-style isolation via Windows Sandbox.
DockerdockermacOS, Linux, WindowsContainer isolation via the Docker runtime, using OCI-compatible images. Default worktree backend on Linux when Docker is installed.
WASIXwasixmacOS, Linux, WindowsWebAssembly sandbox powered by the Wasmer WASIX runtime.
WASI P2wasip2macOS, Linux, WindowsWebAssembly sandbox powered by Wasmtime's WASI Preview 2 runtime, with WASI-HTTP support.