microsandbox cloud is in private beta, and currently requires you to explicitly request access. If you already have access, you can get your API key from the dashboard.
msb CLI are the same ones you use locally: the same builders, the same commands, the same code. Select the cloud backend and provide an API key; there is no daemon or separate client.
Connect
Same code, different backend
Everything from the quickstart works unchanged. With cloud selected and the API key exported, this creates a sandbox on cloud instead of your machine:msb doctor checks apply to the local runtime only.
What works on cloud
Sandbox lifecycle
Create, inspect, list, reconnect, start, stop, and remove sandboxes.
Commands and files
Run buffered, streaming, and interactive commands, then move files in or out.
Persistent storage
Create managed volumes and access their files without starting a sandbox.
Network controls
Apply egress policy and hostname-scoped secrets from the same SDK surface.
Compatibility
The everyday workflow is shared across local and cloud: sandbox lifecycle, command execution, common guest-filesystem operations, network policy, secrets, SSH sessions, and managed storage. The differences below are the ones to plan for. Across the docs, no badge means a feature works everywhere. Exceptions use only three badges: Local-only, Limited on cloud, and Cloud-only.REST API
The same key also authenticates the REST API directly, so you can manage sandboxes, volumes, and usage over plain HTTPS without an SDK. Command execution, file transfer, and SSH ride the sandbox command channel, which the SDKs and CLI handle for you.What to know
- Backend selection. Cloud is explicit: set
MSB_BACKEND=cloud, select a cloud profile, or choose it in code. See Backends. - Networking. Cloud sandboxes get a platform-assigned hostname. SSH works through the same
msb sshand SDK SSH clients you use locally. - Images. Specify an OCI image when you create the sandbox; the cloud pulls it for you.
- Keys and billing. API keys, usage, and invoices live in the dashboard.
Next steps
API reference
The REST API behind the SDKs, authenticated with your API key.
Backends
Force local, select in code, or switch with profiles.
Quickstart
New to microsandbox? Start here; everything carries over.