microsandbox requires glibc-based Linux with KVM, macOS with Apple Silicon (M-series chip), or Windows 11 with Windows Hypervisor Platform enabled. All local backends use hardware virtualization.
Install microsandbox
Install the SDK for the language you are using, and install the microsandbox uses hardware virtualization: Linux needs KVM, macOS needs Apple Silicon, and Windows needs Windows Hypervisor Platform. Check your local setup with:For platform-specific setup notes, see Linux troubleshooting, macOS troubleshooting, or Windows troubleshooting.
msb CLI for terminal workflows such as managing images, volumes, and sandboxes. Both run microsandbox locally; there is no separate server or daemon to set up.What just happened?
Here’s what happened behind thatSandbox.builder(...).create() call:
- Pulled the image from Docker Hub, unless it was already cached.
- Assembled a copy-on-write filesystem so changes inside the sandbox do not modify the base image.
- Booted a microVM as a child process with the resource limits you configured.
- Started the guest agent so the SDK can run commands and move data in and out.
exec call uses the host-guest command channel, not SSH and not the sandbox network.
Next steps
- Tune sandbox settings: resize headroom, labels, secrets, and storage
- Troubleshoot Linux setup: KVM,
/dev/kvm, and permissions - Troubleshoot macOS setup: Apple Silicon and local runtime checks
- Troubleshoot Windows setup: WHP,
msb doctor, and Windows 11 notes - Run commands and stream output:
exec,shell,attach, and streaming - Control network access: policies, DNS interception, and secret protection
- Manage sandboxes with the CLI: create, inspect, and manage sandboxes from the terminal