Microsandbox runs agents, user code, and automation inside hardware-isolated microVMs with CLI and SDKs, locally or on managed cloud.
Overview
Microsandbox is an open-source runtime for executing untrusted workloads—AI agents, plugins, CI jobs, scrapers, and similar tasks—inside fast microVMs that each have their own kernel boundary, unlike ordinary containers that share a host kernel. It targets local-first use with optional managed cloud deployment using the same SDK.
The msb CLI manages sandboxes, snapshots, images, and volumes. SDKs for Rust, TypeScript, Python, Go, and Ruby let applications call Sandbox.builder(...).create() to boot a microVM as a child process without separate infrastructure. Requirements noted in the source include Apple Silicon on macOS, KVM on Linux, and WHP on Windows; the project labels itself beta with possible breaking changes.
Agent Skills and an MCP server teach coding agents to control sandbox lifecycle, commands, filesystem access, volumes, and monitoring. Guides cover Docker inside a sandbox, Playwright, browser-use agents, GitHub Actions runners, and warm worker snapshots.
Managed Microsandbox Cloud offers orgs, SSO, audit logs, and quotas while the Apache-licensed runtime can be evaluated for bring-your-own-cloud deployments.
Key features
- Per-workload microVM kernel isolation
- msb CLI for sandboxes and images
- Multi-language SDKs
- Sandboxfile YAML configuration
- MCP server for agent control
- Agent Skills for coding tools
- Local and cloud same SDK
- OCI image workflow
Use cases
- Isolated AI agent command execution
- Untrusted user code sandboxes
- Disposable CI job microVMs
- Headless browser jobs in VMs
- Self-hosted GitHub Actions runners