devbox

July 19, 2026 · View on GitHub

Sandboxed Linux development environment powered by microsandbox.

Prerequisites

Quick Start

pnpm install
pnpm devbox init      # Create sandbox from built image
pnpm devbox shell     # Interactive zsh session
pnpm devbox exec npm run lint   # Run a command inside the sandbox

Image Building

The Arch Linux dev image is built once and loaded into microsandbox:

pnpm image

This builds from archlinux base, installs dev tools (zsh, git, node, pnpm, python, go, nvim, delve, mise, cmake, gcc, etc.), and loads the resulting image as localhost/arch-dev:latest.

CLI Commands

CommandDescription
devbox initCreate sandbox from image + baseline snapshot
devbox shellInteractive zsh session
devbox exec <cmd>Run a command in the sandbox
devbox start/stop/restartManage sandbox lifecycle
devbox statusShow sandbox status
devbox removeRemove sandbox + snapshot
devbox metricsCPU/memory usage
devbox logs [-f]View or follow logs