For AI agents: the complete documentation index is available at https://docs.phax.run/llms.txt, the full documentation bundle is available at https://docs.phax.run/llms-full.txt, and this page is available as Markdown at https://docs.phax.run/guide/install.md.

Installation

Install

With npm (recommended). The package is a small launcher (Node 22 or later) that downloads the binary for your platform on first run and caches it per version under ~/.phax/bin/<version>/:

npm install -g @lbdremy/phax
# or without installing:
npx @lbdremy/phax --help

As a binary. Download it with its checksum from GitHub Releases. Targets: phax-darwin-arm64, phax-darwin-x64, phax-linux-x64, phax-linux-arm64.

curl -LO https://github.com/lbdremy/phax/releases/latest/download/phax-darwin-arm64
curl -LO https://github.com/lbdremy/phax/releases/latest/download/phax-darwin-arm64.sha256
sha256sum --check phax-darwin-arm64.sha256
gh attestation verify phax-darwin-arm64 --repo lbdremy/phax   # built by phax's release workflow from the tag
chmod +x phax-darwin-arm64 && sudo mv phax-darwin-arm64 /usr/local/bin/phax
xattr -dr com.apple.quarantine /usr/local/bin/phax   # macOS: the binary is not notarized yet

Two repositories. To keep specs and plans private and the code public, link the code repository checked out inside the process repository with "code": { "root": "code" }: see Process and code in two repositories.

Upgrading. See Upgrading phax for what to run after an upgrade, release by release.

An agent. phax drives an agent CLI that must be on your $PATH: claude (Claude Code), and optionally codex (OpenAI Codex) or vibe (Mistral Vibe). Keep claude installed even if you prefer another provider: phax falls back to it when the preferred one is missing or cannot meet the run's security mode.

The skills. phax ships the skills your agent uses to write its documents: phax-spec, phax-planning and phax-cli; phax-review, which phax review-code follows; and the three doctrine skills phax-decide-spec, phax-decide-plan and phax-decide-review. phax artifact decide follows the first two when it decides a spec's or plan's open questions.

phax skills install --target claude                 # or codex, or agent
phax skills install --target claude --scope user    # for every project, not just this one

Shell completions (optional). They need the usage CLI, both to generate the script and at Tab time. Run names complete live from your registry.

brew install usage
source <(phax completions bash)                                   # bash
phax completions zsh > "${fpath[1]}/_phax"                        # zsh
phax completions fish > ~/.config/fish/completions/phax.fish      # fish
phax completions nu | save --force ~/.config/nushell/completions/phax.nu   # nushell
phax completions powershell >> $PROFILE                           # powershell

If zsh has no completions directory on its $fpath yet, create one once:

mkdir -p ~/.zsh/completions
phax completions zsh > ~/.zsh/completions/_phax
cat >> ~/.zshrc <<'RC'
fpath=(~/.zsh/completions $fpath)
autoload -Uz compinit && compinit
RC
exec zsh