Devbox is a CLI that builds reproducible dev environments from a devbox.json file listing Nix packages. It offers local isolated shells, run commands, and optional export to containers or devcontainers.
Overview
Devbox is a command-line tool for creating isolated development shells on your machine without requiring everyone to install conflicting global tool versions. You declare packages such as language runtimes in devbox.json, then enter a shell with devbox shell or run one-off commands with devbox run so only that project sees those binaries.
Environments draw from a large Nix package index, so teams can pin exact versions and share the same definition through version control. Devbox emphasizes local shells that avoid an extra virtualization layer for day-to-day work, while still allowing export to Dockerfile, devcontainer, or cloud dev environment formats described on the product site.
Workflows include onboarding with matching local and CI setups via GitHub Actions integration, optional process-compose based services inside a shell, plugins to reuse shared configuration, and scripts defined beside packages in JSON. Installation uses a published install script that places the devbox binary on your system and supports self-updates from releases.
Key features
- devbox.json environment declaration
- Isolated devbox shell sessions
- devbox run scripted commands
- Hundreds of thousands of Nix packages
- Team-consistent tool versions
- Devcontainer and Dockerfile export
- GitHub Actions install action
- Optional in-shell services orchestration
Use cases
- Per-project Python or Go toolchains
- Onboarding without global package conflicts
- Reproducible CI matching local dev
- Trying tools without system-wide installs
- Shared shell definitions across machines