Skip to content

Repository files navigation

Microsandbox Studio

A simple desktop app for Microsandbox.

Microsandbox Studio with three sandboxes

Microsandbox runs small virtual machines on your computer. Microsandbox Studio puts them in one window. Every sandbox is a card. You create, start and stop sandboxes with a click, and you reach any of them over SSH as <name>.msb, from a terminal, an editor or Claude Code.

The app does only a few things and keeps them simple:

  • Create a sandbox from any container image
  • Set CPUs, memory, variables and secrets
  • Choose the network and publish ports
  • Mount folders from your computer
  • Upload files into a running sandbox
  • Open every sandbox over SSH

Download

Important

Microsandbox Studio needs Microsandbox on your computer. Before you install the app, set up your system as described in the Microsandbox quickstart.

Get the installer for your system from the releases page

You need macOS 14 or later on Apple Silicon, Linux with KVM, or Windows with the Windows Hypervisor Platform turned on.

The macOS app is not signed by Apple. On the first start allow it under System Settings > Privacy & Security.

On Linux the app does not bring its own Python. Install Python 3.12 or later first.

Create a sandbox

Click New sandbox, give it a name and pick an image. The default image is an Ubuntu development image with Git and curl.

You can add variables and secrets, choose the network and add folders from your computer. Programs in the sandbox only see a placeholder for each secret. Microsandbox puts in the real value on the way to the hosts you allow.

The network and the folders are fixed once the sandbox exists. Everything else can be changed later on its card. To use another network or other folders, take a snapshot under Snapshots and restore it into a new sandbox.

The New sandbox dialog

Use a sandbox with Claude Code

  1. In Microsandbox Studio, turn on Use SSH in the top bar. You only do this once, and turning it off undoes it.

  2. Add this line at the very top of ~/.ssh/config (on Windows C:\Users\<you>\.ssh\config), above any Host or Match:

    Include ~/.microsandbox-studio/ssh_config
    

    The app shows the same line until it finds it in the file.

  3. Start the sandbox. Its network has to be Internet, because Claude Code installs itself in the sandbox on the first connect.

  4. In the Claude desktop app, open the environment menu below the prompt box and choose New environment.

  5. On the SSH tab, open Host and choose Add SSH connection.

  6. Enter a name and <sandbox_name>.msb as the SSH host, using your sandbox's name. Leave the other fields empty and save.

  7. Pick a folder, for example /workspaces/webapp, and click Create environment.

Programs run as root. For another user of the image, write it in front of the host, for example vscode@devbox.msb.

On Windows the app has to come from claude.com, not from the Microsoft Store. See SSH sessions in the Claude Code docs.

The same host works everywhere else too, for example ssh devbox.msb in a terminal or Remote SSH in VS Code.

Build it yourself

You need uv and Node.js.

git clone https://github.com/bnjgl/microsandbox-studio
cd microsandbox-studio
cd frontend
npm ci
npm run build
cd ..
uv run microsandbox-studio

To build the app for your system and start it, run these after the frontend build:

uvx pip wheel --no-deps proxy_tools -w wheels
uvx briefcase package --adhoc-sign
uvx briefcase run

The installer ends up in dist/. This works the same on macOS, Linux and Windows.

Run the tests with uv run pytest and, in frontend, npm test.

License

Apache-2.0

Microsandbox is a project of its own team, and this app is not affiliated with it.

Releases

Contributors

Languages