Flox logo

Flox

Portable developer environments with reproducible package management

Flox provides portable, reproducible developer environments and a package manager that taps into over 80,000 Nix packages, enabling easy sharing and container image creation.

Flox banner

Overview

Reproducible environments for every developer

Flox lets you create per‑project virtual environments that layer and replace dependencies exactly where needed. By leveraging the extensive Nixpkgs collection, you gain access to more than 80,000 packages while keeping your setup portable across machines and stages of the software lifecycle.

Share, activate, and containerize instantly

With a few CLI commands you can initialize an environment, install packages, and activate it without root privileges. Environments can be exported as simple definition files or built into Docker images, making it straightforward to share a consistent development stack with teammates or CI pipelines.

Seamless integration and community support

Flox is written in Rust and works alongside existing Nix tooling, so you can reuse familiar Nix expressions. The project is licensed under GPL‑2.0 and welcomes contributions via its public repository, documentation site, and community channels on Discourse, Slack, and Twitter.

Highlights

Create per‑project environments that layer dependencies
Share environments via definition files or container images
Access 80,000+ packages from the Nixpkgs repository
Activate environments instantly without root

Pros

  • Deterministic builds across different machines
  • Leverages the mature Nix ecosystem
  • Lightweight activation with no VM overhead
  • High‑performance Rust implementation

Considerations

  • Requires Nix to be installed on the host
  • GPL‑2.0 license may affect proprietary redistribution
  • CLI‑focused, no graphical user interface
  • Learning curve for users new to Nix concepts

Managed products teams compare with

When teams consider Flox, these hosted platforms usually appear on the same shortlist.

AWS Cloud9 logo

AWS Cloud9

Cloud IDE to write, run, and debug code in the browser

CodeSandbox logo

CodeSandbox

Instant cloud development environments & code sandboxes

Firebase Studio logo

Firebase Studio

Agentic, cloud‑based dev environment to build full‑stack AI apps

Looking for a hosted option? These are the services engineering teams benchmark against before choosing open source.

Fit guide

Great for

  • Developers needing reproducible per‑project environments
  • Teams that share container images of their dev setups
  • Projects relying on the extensive Nixpkgs package set
  • CI pipelines that require deterministic dependency resolution

Not ideal when

  • Users seeking a full graphical IDE experience
  • Environments where GPL licensing is prohibited
  • Systems that cannot install Nix (e.g., some Windows setups)
  • Simple scripts where a full package manager adds unnecessary complexity

How teams use it

Onboarding new contributors

New team members can spin up identical environments with a single command, eliminating “works on my machine” issues.

CI/CD reproducible builds

CI pipelines install exact dependencies, ensuring builds match local development and production.

Sharing dev environment via container

Generate a Docker image from the environment, enabling consistent runtime across cloud and local machines.

Managing multiple project toolchains

Isolate conflicting versions of compilers or libraries without global installs.

Tech snapshot

Rust74%
Shell16%
Nix4%
C++2%
Makefile1%
C1%

Tags

nixdeveloper-toolsdevelopment-environmentvirtual-environmentspackage-manager

Frequently asked questions

How does Flox differ from Docker?

Flox manages packages and per‑project environments at the user level, while Docker provides full OS containers. Flox can also build container images but focuses on reproducible development setups.

Do I need to install Nix separately?

Yes, Flox builds on top of Nix, so you need a working Nix installation or use Flox’s installer that sets it up.

Can I use Flox on Windows?

Flox primarily targets Unix‑like systems; Windows support is limited and typically requires WSL.

Is the CLI compatible with existing Nix expressions?

Flox leverages nixpkgs and can incorporate standard Nix expressions in environment definitions.

What license governs Flox and can I use it in commercial projects?

Flox is licensed under GPL‑2.0. You may use it commercially, but you must comply with GPL terms when distributing modified versions.

Project at a glance

Active
Stars
3,728
Watchers
3,728
Forks
106
LicenseGPL-2.0
Repo age3 years old
Last commityesterday
Primary languageRust

Last synced yesterday