flox
FreeNo executable scriptsNot checkedReproducible development environments powered by Nix.
by plurigrid★ 73 GitHub starsAbout this skill
flox
Reproducible development environments powered by Nix.
Repository: https://github.com/flox/flox Documentation: https://flox.dev/docs FloxHub: https://hub.flox.dev
Overview
Flox provides declarative, reproducible development environments using Nix as the package backend. Environments are defined in manifest.toml and can be shared via FloxHub.
.flox/
├── env/
│ └── manifest.toml # Environment definition
├── env.json # Environment metadata
└── env.lock # Lockfile
Installation
# macOS
brew install flox/flox/flox
# Linux
curl -fsSL https://downloads.flox.dev/by-env/stable/install | bash
CLI Commands
Environment Management
flox init # Create new environment
flox init -n myenv # Named environment
flox init --auto-setup # Auto-detect languages
flox activate # Enter environment
flox activate -d ./path # Activate in directory
flox activate -r user/env # Activate remote environment
flox edit # Edit manifest.toml
flox edit -n newname # Rename environment
flox delete # Delete environment
Package Management
flox search ripgrep # Search packages
flox show ripgrep # Package details
flox install ripgrep # Install package
flox uninstall ripgrep # Remove package
flox list # List installed packages
flox upgrade # Upgrade packages
flox update # Update catalog
Sharing (FloxHub)
flox auth login # OAuth2 login
flox auth logout # Remove token
flox auth status # Check login status
flox push # Push to FloxHub
flox push --force # Overwrite remote
flox pull user/env # Pull from FloxHub
flox pull --force # Overwrite local
flox envs # List environments
Services
flox services start # Start all services
flox services start db # Start specific service
flox services stop # Stop all services
flox services restart # Restart services
flox services status # Check service status
flox services logs db # View logs
Containerization
flox containerize # Create container image
flox containerize -f out.tar # Output to file
flox containerize | docker load # Pipe to Docker
manifest.toml
Complete manifest reference:
# ═══════════════════════════════════════════════════════════════════
# VERSION
# ═══════════════════════════════════════════════════════════════════
version = 1
# ═══════════════════════════════════════════════════════════════════
# INSTALL - Packages to install
# ═══════════════════════════════════════════════════════════════════
[install]
ripgrep.pkg-path = "ripgrep"
nodejs.pkg-path = "nodejs"
python.pkg-path = "python312"
pip.pkg-path = "python312Packages.pip"
# With version constraints
jq.pkg-path = "jq"
jq.version = "^1.7"
# ═══════════════════════════════════════════════════════════════════
# VARS - Environment variables
# ═══════════════════════════════════════════════════════════════════
[vars]
DATABASE_URL = "postgres://localhost:5432/mydb"
NODE_ENV = "development"
GAY_SEED = "1069"
# ═══════════════════════════════════════════════════════════════════
# HOOK - Scripts run on activation
# ═══════════════════════════════════════════════════════════════════
[hook]
on-activate = """
echo "Activating $FLOX_ENV_DESCRIPTION..."
# Create Python venv
if [ ! -d .venv ]; then
python -m venv .venv
fi
# Export dynamic variables
export VENV_DIR="$PWD/.venv"
# Start background processes
eval "$(ssh-agent)"
"""
# ═══════════════════════════════════════════════════════════════════
# PROFILE - Shell-specific scripts
# ═══════════════════════════════════════════════════════════════════
[profile]
common = """
echo "Welcome to the environment"
"""
bash = """
source .venv/bin/activate
alias ll="ls -la"
set -o vi
"""
zsh = """
source .venv/bin/activate
alias ll="ls -la"
bindkey -v
"""
fish = """
source .venv/bin/activate.fish
alias ll="ls -la"
"""
# ═══════════════════════════════════════════════════════════════════
# SERVICES - Background services
# ═══════════════════════════════════════════════════════════════════
[services.postgres]
command = "postgres -D $PGDATA"
vars.PGDATA = "$FLOX_ENV_CACHE/pgdata"
vars.PGPORT = "5432"
[services.redis]
command = "redis-server"
vars.REDIS_PORT = "6379"
[services.api]
command = "npm run dev"
is-daemon = false
[services.worker]
command = "./worker.sh"
is-daemon = true
shutdown.command = "pkill -f worker.sh"
# ═══════════════════════════════════════════════════════════════════
# OPTIONS - Environment behavior
# ══════════════════════════════════════════
Install flox in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
FAQ
What does the flox skill do?
Reproducible development environments powered by Nix.
How do I install the flox skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the flox skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic