Skip to content

DOCS

Install the CLI

The installers download the latest GitHub Release, check SHA256, and put balerx in your user directory. They do not ask for an administrator password.

If the release checksum file cannot be downloaded (for example offline or a blocked GitHub), the installer stops and prints a cargo install command.

macOS and Linux

curl -fsSL https://balerxgate.com/install.sh | sh

The binary is $HOME/.local/bin/balerx. When that directory is already on PATH, the installer prints balerx is ready to use in this window. New terminals will pick it up automatically. When it is not, the installer prints:

export PATH="$HOME/.local/bin:$PATH"

curl | sh cannot change the parent shell, so you run that line yourself. New terminals pick the directory up after it is in your shell profile.

The script picks a GNU build for Linux and an Apple build on macOS. Those names match the public release assets.

Windows

In PowerShell. This is the same command balerx self-update prints:

Invoke-WebRequest "https://raw.githubusercontent.com/wrjewski/balerx/main/install.ps1" -OutFile install.ps1
powershell -ExecutionPolicy Bypass -File .\install.ps1

-ExecutionPolicy Bypass applies only to that one installer process. https://balerxgate.com/install.ps1 is the same script, so irm https://balerxgate.com/install.ps1 | iex also works.

The binary is %LOCALAPPDATA%\balerx\balerx.exe. The script adds that folder to your user PATH and to the PowerShell process that ran it, then prints balerx is ready to use in this window. New terminals will pick it up automatically.

irm https://balerxgate.com/install.ps1 | iex runs in this window, so balerx works in the same window. powershell -ExecutionPolicy Bypass -File .\install.ps1 updates that child process only. When it exits, this window does not have the new PATH. Open a new terminal, or run the installer with irm ... | iex.

Windows builds are x64 and arm64.

From source

The Cargo command uses the repository path of the CLI crate. Run it from any directory:

cargo install --git https://github.com/wrjewski/balerx.git --path balerx-sensor/crates/balerx-cli

That line does not use a package name after the URL. The crate path is required.

Check the install

balerx --version
balerx setup
balerx scan --help

balerx setup writes a local Guard policy. The installer prints a Balerx Gate banner on the Installed screen, then lists balerx setup as the first next step. It does not run the checklist. Then run a scan. The other next steps are balerx scan and an upload to https://balerxgate.com with YOUR_INGEST_KEY. See Scan.

Uninstall

balerx uninstall
balerx uninstall --purge --yes

balerx uninstall removes Balerx hook commands from Claude Code and Cursor and asks first. A command matches when it runs the balerx binary, or balerx.exe, with a hook argument. --yes skips the question. Without --purge, policy and logs stay. --purge also deletes known files only: policy.yaml, policy.yaml.bak copies, planted canary files in ~/.balerx/canaries, canaries.json, and logs/activity.jsonl. Unknown files stay. A directory is removed only when it is empty afterward and its name is .balerx or balerx. A custom BALERX_DATA_DIR is never removed wholesale. Purge exits nonzero when the home directory or the data directory is not an absolute path. On macOS and Linux, $HOME/.local/bin/balerx is removed only when that file is the running binary. On Windows the command does not delete %LOCALAPPDATA%\balerx\balerx.exe. It prints Remove-Item -Recurse -Force "$env:LOCALAPPDATA\balerx" and the PowerShell that drops that folder from the user Path. See How do I uninstall?.