microsandbox sandboxes are real microVMs — isolated, fast, disposable — but driving them by CLI means memorizing a dozen flags and incantations. msb-tui puts a live dashboard in your terminal: create sandboxes from templates, start, stop and restart them, exec a shell, stream logs, and publish ports, all without leaving your flow. It talks to microsandbox through the typed Rust SDK — never by scraping CLI output — so what the dashboard shows is what the API knows.
- Live sandbox rail — cards with status, image, CPU gauge, memory, net I/O rates, uptime, and mounts, refreshed as metrics arrive.
- Per-sandbox detail tabs — Overview (live metrics and this sandbox's ports), Logs, and Ports, one keystroke deep.
- 20 built-in templates — a bare Shell preset plus the 19-entry sbx Hub catalog of
popular AI agent harnesses, ready to launch with
Enter. - User-defined TOML templates — save any form as a template with
Ctrl+S; files in~/.config/microsandbox-tui/templates/shadow built-ins by id. - Environments & credentials — named env-var profiles (
env_profile) and OS-keyring secrets, injected as env vars when a sandbox is created; managed in one place withE. - Snapshot-preserving port publishing — publish/unpublish recreates the sandbox through a snapshot/restore cycle, so your data survives the change.
- Boot autostart — mark any sandbox (
ain the dashboard) and it starts at every system boot: the headlessmsb-tui autostartpass starts all marked sandboxes, andmsb-tui autostart installsets up the systemd user service that runs it at boot (Linux; enable lingering to survive without an active login). - In-TUI runtime install — no
msbbinary at startup? The banner offers a one-key install/update of the microsandbox runtime. - Self-update — at startup the TUI checks GitHub Releases for a newer stable
msb-tui (prereleases never nag). When one exists, a banner offers
[V]: confirm, and the release tarball is downloaded, sha256-verified, and swapped in place — relaunch to run the new version. - Polished dark theme — responsive layout from small terminals to wide desktops.
Dashboard — a live sandbox card (CPU gauge, memory, network, workdir, mounts, uptime, state-gated actions) beside the Overview pane with metrics and published ports.
Create — the template picker: Create from scratch, Shell, and the AI-agent harness catalog from the sbx org on Docker Hub, with a live values preview.
Ports — the host⇄guest port matrix for the selected sandbox, with publish/unpublish behind the snapshot-preserving recreate flow.
| OS | Architecture | Virtualization | Notes |
|---|---|---|---|
| Linux | x86_64, ARM64 | KVM | recommended path |
| macOS | Apple Silicon | Hypervisor.framework | Intel Macs are unsupported (a microsandbox limitation) |
| Windows 11 | x64, ARM64 | Windows Hypervisor Platform | preview, per the microsandbox docs |
The msb runtime is not required at startup. If no runtime is detected, the dashboard
shows a banner — press U to install or update microsandbox from inside the TUI.
Grab a tarball from GitHub Releases.
Every release ships one archive per target, each with a .sha256 sibling:
| Platform | Target triplet | Asset |
|---|---|---|
| Linux x86_64 | x86_64-unknown-linux-gnu |
msb-tui-v0.1.0-x86_64-unknown-linux-gnu.tar.gz |
| Linux ARM64 | aarch64-unknown-linux-gnu |
msb-tui-v0.1.0-aarch64-unknown-linux-gnu.tar.gz |
| macOS Apple Silicon | aarch64-apple-darwin |
msb-tui-v0.1.0-aarch64-apple-darwin.tar.gz |
Example install on Linux x86_64:
curl -fsSLO https://github.com/Freudenjunge/microsandbox-tui/releases/download/v0.1.0/msb-tui-v0.1.0-x86_64-unknown-linux-gnu.tar.gz
curl -fsSLO https://github.com/Freudenjunge/microsandbox-tui/releases/download/v0.1.0/msb-tui-v0.1.0-x86_64-unknown-linux-gnu.tar.gz.sha256
sha256sum --check msb-tui-v0.1.0-x86_64-unknown-linux-gnu.tar.gz.sha256 # shasum -a 256 -c on macOS
tar -xzf msb-tui-v0.1.0-x86_64-unknown-linux-gnu.tar.gz
sudo install -m 0755 msb-tui-v0.1.0-x86_64-unknown-linux-gnu/msb-tui /usr/local/bin/cargo install --git https://github.com/Freudenjunge/microsandbox-tui.gitThis builds and installs the msb-tui command from the default branch.
git clone https://github.com/Freudenjunge/microsandbox-tui.git
cd microsandbox-tui
cargo install --path .msb-tui # open the dashboard
msb-tui --create # jump straight into the create formOn first run, the dashboard checks for an msb runtime on your PATH. If none is found, a
banner explains the situation and offers U to install the matching microsandbox runtime
in the background — the TUI stays responsive while it downloads.
A typical round trip:
- Press
c— the template picker opens, "Create from scratch" on top and the catalog below. - Pick a template with
↑/↓and hitEnterto launch it directly (oreto tweak the form first). - Watch the new card appear in the rail — status, CPU, memory, and net rates go live as the sandbox boots.
2opens the Logs tab and streams its output;3opens Ports and publishes a binding with+.xopens an interactive shell for the selected sandbox in a new terminal window, with the dashboard running in parallel.
| Key | Action |
|---|---|
q |
Quit |
? |
Help overlay |
| Key | Action |
|---|---|
↑/↓ |
Select sandbox card |
1/2/3 |
Detail tabs: overview / logs / ports |
Tab |
Cycle detail tabs |
c |
Create sandbox |
E |
Environments & credentials manager |
x |
Exec — interactive shell in a new terminal window |
s |
Start/stop toggle (state-dependent) |
r |
Restart |
Del |
Remove sandbox (confirm) |
U |
Install/update the microsandbox runtime |
v |
Update msb-tui when a newer stable release exists (confirm) |
| Key | Action |
|---|---|
f |
Toggle follow |
g |
Grep filter (enters grep input mode) |
s |
Source filter (stdout / stderr / system) |
↑↓ / PgUp / PgDn |
Scroll |
| Key | Action |
|---|---|
+ or p |
Publish a port (form → confirm; recreates via snapshot/restore) |
- or _ |
Unpublish the selected binding (confirm) |
↑/↓ |
Select binding |
Esc / q / 1 |
Back to overview |
| Key | Action |
|---|---|
↑/↓ |
Navigate (row 0 = "Create from scratch") |
Enter |
Create from the selected template directly |
e |
Open the form prefilled from the template |
n |
Open the empty form |
d |
Delete a user template (confirm) |
Ctrl+S |
Save the current form as a template |
Esc |
Back to the dashboard |
The create flow opens on a picker with 20 built-in templates: a bare Shell preset plus 19
AI agent harnesses from the sbx org on Docker Hub. Each catalog entry is a
community-maintained reference to the public sbx/<name>-image base image — entries
launch with 2 vCPUs, 4G of memory, and your current directory mounted.
| Template | Image | Description |
|---|---|---|
| Shell | alpine |
Bare sandbox with CWD mount — generic starting point |
| Pi | sbx/pi-image |
Pi coding agent |
| Hermes Agent | sbx/hermes-agent-image |
The self-improving AI agent by Nous Research |
| OpenClaw | sbx/openclaw-image |
Personal AI assistant with multi-platform chat |
| Kiro | sbx/kiro-image |
Kiro CLI by AWS with interactive device-flow auth |
| Crush | sbx/crush-image |
Multi-provider AI coding agent from Charm |
| Junie | sbx/junie-image |
The AI coding agent by JetBrains |
| GitHub Copilot | sbx/copilot-image |
GitHub Copilot CLI, GitHub's agentic coding CLI |
| Aider | sbx/aider-image |
AI pair programming in your terminal |
| Droid | sbx/droid-image |
Droid CLI by Factory, an agentic coding CLI |
| Open Interpreter | sbx/open-interpreter-image |
Let language models run code on your computer |
| OpenHands | sbx/openhands-image |
AI software engineer by All Hands AI |
| Antigravity | sbx/antigravity-image |
Google's agent-first dev platform — the agy terminal agent |
| Vibe | sbx/vibe-image |
Mistral AI's open source coding agent |
| Docker Agent | sbx/docker-agent-image |
Docker's multi-provider agentic coding CLI |
| Claude Code | sbx/claude-image |
Anthropic's Claude Code, resolved by the sandbox proxy |
| OpenCode | sbx/opencode-image |
OpenCode, the open-source terminal coding agent |
| Codex | sbx/codex-image |
OpenAI Codex CLI, OpenAI's agentic coding CLI |
| Cursor | sbx/cursor-image |
Cursor Agent, the CLI coding agent from Cursor |
| Devin | sbx/devin-image |
Devin CLI by Cognition, resolved by the sandbox proxy |
Your own templates. Save any create form with Ctrl+S, or drop a TOML file into
~/.config/microsandbox-tui/templates/<id>.toml — a user file with the same id as a
built-in shadows it, so every entry above can be customized. Example:
[meta]
name = "My OpenCode box"
description = "OpenCode with a bigger brain"
[spec]
image = "sbx/opencode-image"
name = "my-opencode"
cpus = 4
memory = "8G"
mount_cwd = true
ports = ["127.0.0.1:4096:4096"]All [spec] keys are optional except image. Three conventions worth knowing:
mount_cwd = true(the default) follows the sbx workspace convention: the TUI's current directory is bind-mounted into the sandbox at the same absolute path and becomes the default working directory, so paths and stack traces line up between host and guest.net_profileselects the network preset:public(the default — internet allowed, private networks blocked),private(LAN/internal only), orhost(host machine access).env_profilenames an environment profile whose env vars are injected at create (see Environments & credentials).
Press E in the dashboard to open the manager — two tabs, PROFILES and CREDENTIALS.
Environments are named env-var profiles you reuse across sandboxes, stored in
~/.config/microsandbox-tui/environments.toml:
[[profile]]
name = "agent"
description = "Shared agent env"
env = ["RUST_LOG=debug", "CI=1"]There are no built-in profiles. Templates set one with env_profile = "agent" in their
[spec]; the create form offers the Env-Profile cycle-select (<none> first).
Credentials bind a secret (API key, token) to an env-var name and inject it at create
time. ~/.config/microsandbox-tui/credentials.toml keeps only names and assignments:
[[credential]]
name = "anthropic"
description = "Claude API key"
env_key = "ANTHROPIC_API_KEY"
profiles = ["agent"]
sandboxes = []Secret values never touch disk — they live in your OS keyring (service msb-tui, one
account per credential name). Credentials attach to a profile (every sandbox created
with it gets the vars) or to a single sandbox via the create form's "Credentials"
cycle-select; used sandboxes are tracked on the credential.
Merge precedence at create (highest wins): profile vars → form/template vars → credential vars — the form overrides the profile, an assigned credential overrides both.
Rotation limit: secrets are injected when a sandbox is created. Rotating a value in the keyring never changes already-created sandboxes — recreate the sandbox (e.g. via the snapshot recreate flow) to pick up the new value.
msb-tui talks to microsandbox exclusively through the typed microsandbox 0.7.8 Rust
SDK — there is no CLI scraping and no guessed JSON. Sandboxes are created and started
detached, so they survive the TUI process; close the dashboard, reopen it, and your fleet
is still running. Port changes ride a snapshot-preserving recreate: the sandbox disk is
snapshotted, the sandbox is stopped and removed, then restored with the new port set and
its configuration reapplied — your data survives the change. The full architecture and
design decisions live in docs/DESIGN.md.
All changes run the four gates:
cargo fmt --check
cargo clippy -- -D warnings
cargo test
cargo checkRelease planning and task history are tracked in docs/PLAN.md.
Apache-2.0 — see LICENSE.
microsandbox-tui is an independent community project. It is not affiliated with, endorsed by, or sponsored by Superrad Company (microsandbox), Docker (the sbx TUI and the sbx Hub org), or the maintainers of the products shipped as templates (Claude Code, OpenCode, Aider, Cursor, Codex, and others). Product names and trademarks belong to their respective owners and are used here only to describe what this tool manages.
Inspired by Docker's sbx TUI; built on microsandbox.


