Flox defines project environments in one manifest, locks packages with content hashes, and activates the same toolchain on laptops, CI, and production. The CLI installs on macOS, Linux, and Windows via WSL2.
Overview
Flox is a software environment platform built on Nix that keeps developer and runtime toolchains aligned across machines. A declarative manifest and lockfile pin packages so the same definition resolves identically on supported systems without manual drift.
Teams use flox init to create per-project environments, flox install to add packages from Nixpkgs, and flox activate to enter an isolated shell where tools appear only while the environment is active. flox push and flox pull share environments through FloxHub, and flox containerize emits OCI images from an environment without maintaining a separate Dockerfile.
The CLI can run local services with flox services start, build custom packages with flox build and flox publish, and configure variables, hooks, and activation scripts in manifest.toml. Documentation positions it for platform teams standardizing toolchains, security teams wanting SBOM-friendly reproducible builds, and AI agents needing deterministic runtimes.
Install natively with OS packages or Homebrew on macOS, Linux packages, or Linux under WSL2 on Windows. Nix knowledge is optional for common workflows; advanced users can still use Nix directly when needed.
Key features
- Declarative manifest.toml environments
- Cryptographically pinned lockfiles
- flox activate isolated shells
- FloxHub push and pull sharing
- OCI containerize without Dockerfile
- Local flox services
- Custom flox build and publish
- Large Nixpkgs catalog search
Use cases
- Per-project reproducible dev setups
- Matching CI and laptop toolchains
- Sharing team environments
- Shipping locked envs as containers