To get started, you need to host your own sandbox server. Whether that's on a local machine or in the cloud, it's up to you.
Self hosting lets you manage your own data and code making it easier to comply with security policies. Also, having a sandbox server set up locally allows you to test and move through ideas quickly.
Let's help you start your first self-hosted sandbox server. It's easy!
Platform-specific requirements:
macOS — Requires Apple Silicon (M1/M2/M3/M4)
Linux #224 — KVM virtualization must be enabled
Windows — Coming soon!
curl -sSL https://get.microsandbox.dev | shThis will install the msb CLI tool, which helps you manage sandboxes locally.
msb server startTip
Use the --detach flag to run the server in the background.
Use the --dev flag to skip requiring an API key.
msb server start --help for more options.
microsandbox server is also an MCP server. See MCP.md for more information.
msb pull microsandbox/pythonmsb pull microsandbox/nodeThis pulls and caches the images for the SDKs to use. It is what allows you to run a PythonSandbox or NodeSandbox.
If you are started the server in dev mode, you can skip the API key.
msb server keygen --expire 3moAfter generating your key, set the MSB_API_KEY environment variable to the generated key.
Tip
For self-hosting on a cloud provider, refer to our cloud hosting guide for a list of cloud providers that would support running microsandbox.