CLI
| Command | Behavior |
|---|---|
devsandbox |
TUI dashboard on a TTY; help otherwise |
ls / ps [-a] |
Sandbox configs / instances with CPU and memory (every machine's too) |
run [sandbox] [--name] [--branch] [--profile] [--reprobe] [-d] |
Create a fresh instance (picker without args); --profile picks one of the sandbox's profiles; --reprobe re-detects the runtime's user-namespace mode |
start / stop <name>|--all (start -d) |
Start / Stop an instance |
rebuild <name>|--all [--force] [--reprobe] [-d] |
Recreate from current config when drifted; worktree and state kept (--reprobe alone isn't drift: add --force) |
rm <name> |
Remove sandbox: container, worktree, and state entry are removed |
exec [-i] [-t] <name> [cmd…] |
Exec as the instance's user with remoteEnv; no cmd: login shell |
vscode <name> [--goto PATH[:LINE[:COL]]] |
Open VS Code attached to the instance, optionally at a file and line (an instance with a credential claim needs --allow-credential-leak) |
profile <name> [profile] |
Show or switch an instance's profile (no restart; the next URL it opens uses it) |
done / undone <name> |
Mark an instance done (kept as is, shown dimmed) / clear the mark |
port <name> [--service s] <port…> |
Forward a container/service port to the host until exited |
inbox ls|show|reply|act|submit|done|reopen |
Read and answer Inbox threads (docs/reference/inbox-cli.md) |
login <credential> [--feature <ref>] [--profile p] |
Store a credential on this host and approve the feature claim it serves |
access ls|approve|revoke|forget |
List, approve claim versions of, or revoke this host's credentials; drop a repo from a folder's fence |
update <name> [version] |
Run a feature's update now (its tool into the dir sandboxes mount read-only) |
trust-origin <folder> |
Trust a repo's current origin URL for the host's own fetches |
serve install / serve uninstall |
Run the host daemon from login (it otherwise starts on demand; docs/architecture/daemon/role.md) |
service ls / service rebuild |
List services / recreate one and rewire running sandboxes in place |
gc [--force] |
Reap unreferenced services, orphaned history files and agent links |
ps --json |
Full snapshot for scripts; ls/inspect/run/inbox take --json too |
run, rebuild, start, stop and rm run in the host daemon (devsandbox serve, started on demand; Linux and macOS) with your shell's environment, and stream their output back: closing the terminal doesn't stop them, Ctrl-C still cancels. -d / --detach returns once the instance is registered and prints its name; devsandbox logs --build <name> --follow follows the rest.
devsandbox port makes a port inside a running instance or service reachable on the host:
Credentials
Features like ghcr.io/devsandboxes/features/gh and /sentry declare the credential their tool needs. The sandbox gets a phantom token; the host daemon keeps the real one and swaps it in on each call the claim allows, with gh's writes fenced to the sandbox's own repos:
Walkthrough: gh and sentry without a token. Commands and files: docs/reference/credentials-cli.md.
Automations
Sandboxes can come up on their own after a boot, notify you, and spawn child instances to do work, driven by a script you write:
[]
= "../pr-babysitter"
= "runtime" # true: devsandbox starts it once per boot; "runtime": docker/podman restart it
= { = ["web-app"], = 2 }
= "nohup ./babysit-loop.sh >babysit.log 2>&1 &"
Inside a sandbox, devsbd notify "PR 123 needs you" reaches the dashboard's Inbox tab and your desktop; a dispatcher manages its children with devsbd, an embedded in-container helper present in all sandboxes to interact with the host. Notifications, control and port forwards are served by a per-user host daemon (devsandbox serve) that devsandbox starts on demand, so they keep working with the dashboard closed; devsandbox serve install starts it at login for sandboxes the runtime restarts on boot. Guide, sample dispatcher, and limitations: docs/automations-guide.md.
Platform support
| Feature | Linux (docker/podman) | macOS (docker: OrbStack / Docker Desktop) | macOS (Apple container) |
Windows (docker) |
|---|---|---|---|---|
| Instances, worktrees, services, caches | ✅ | ✅ | ✅ | ⚠️ untested |
File bind mounts (shell-rc, feature mounts) |
✅ | ✅ | ❌ dirs only | ⚠️ untested |
| VS Code attach | ✅ | ✅ | ⚠️ experimental flag | ⚠️ untested |
| ssh-agent forwarding | ✅ | ✅ (relay only) | ⚠️ relay only, untested on Mac | ❌ use WSL2 |
| TUI dashboard + terminal | ✅ | ✅ | ✅ | ⚠️ untested |
Windows builds ship from the release workflow, but only the Linux build (e.g. inside WSL2) is exercised. Details: docs/architecture/runtimes.md, docs/architecture/helper/ssh-agent.md.