Setup guide for an AI agent (Claude Code, Codex, Gemini CLI, etc.) asked to install flux on the current user's machine. Follow the platform that matches the machine; do not guess. Prefer the user's stated preference if they have one.
flux runs two AI agents in a tmux/psmux session - a "driver" (top-right) and a "helper"
(bottom-right) - with the user's shell on the left. They collaborate over a bridge
(tmux send-keys + capture-pane). flux --chat adds an IRC-style room; personas add
optional character voices. The launcher is a single Bash script at bin/flux.
claudeon PATH (or another agentic CLI; see Providers). Required.- A multiplexer: tmux 3.2+ on Linux/macOS/WSL, or psmux on Windows.
- Windows native mode also needs Git Bash (Git for Windows).
-
Linux / macOS / WSL (inside the distro):
./install.shCopiesbin/fluxandpersonas/to~/.flux, links~/.local/bin/flux, and prompts for the user's chat handle. If~/.local/binis not on PATH, tell the user the export line to add. -
Windows (native), in PowerShell from the repo:
powershell -ExecutionPolicy Bypass -File .\install.ps1Requires Git Bash and psmux (scoop install psmuxorwinget install psmux). Installs flux into the Git-Bash~/.fluxand adds afluxfunction to the user's$PROFILE. A new PowerShell window is needed afterward.
flux --persona listshould list: plain droids asgard rickandmorty adventuretime bakerstreet xfilesflux --versionprints the version.- Do not run bare
fluxorflux --chatnon-interactively; they take over the terminal. To smoke-test without attaching:flux --detach, thenflux list, thenflux kill.
- Handle:
flux me <name>(otherwise the user is asked on first chat). - Persona:
flux --persona <name>, or setFLUX_PERSONAin~/.flux/config. - Models:
FLUX_MODEL_DRIVER(default opus),FLUX_MODEL_HELPER(default sonnet). - Providers: set
driver_provider/helper_providerin~/.flux/config(claude, gemini, codex, ollama). Seedocs/PROVIDERS.md. Only claude is verified.
bin/fluxmust keep LF line endings..gitattributesenforces it andinstall.shstrips CRLF. Do not convert it to CRLF.- Security: by default flux launches agents with
--dangerously-skip-permissions- no approval prompts and a full shell in the launch directory. Set it up only in directories the user trusts. To require approvals, setFLUX_PERMS='--permission-mode acceptEdits'. Tell the user about this; do not enable auto-permissions silently if they object. - The installer does not modify the user's Claude config.
- Windows: psmux is third-party (tested v3.3.6). flux launches Git Bash via its 8.3 short path; do not rewrite that logic.
- WSL
/mnt/cis slow; prefer native Windows, or keep repos in the WSL filesystem.
- Linux/macOS/WSL:
rm -rf ~/.flux ~/.local/bin/flux - Windows: remove the
# === flux ===block from$PROFILE.