Skip to content

DOCS

Quickstart

This is the short path from a new machine to a scan the team can see. The longer pages are linked at the end.

See it in action

This walkthrough uses the demo account. It is not a customer workspace.

1. Install the CLI

Use the prebuilt installer. You do not need Rust.

Linux or macOS:

curl -fsSL "https://raw.githubusercontent.com/wrjewski/balerx/main/install.sh" -o install.sh
sh install.sh
balerx --version

Windows. 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
balerx --version

https://balerxgate.com/install.ps1 is the same script, so irm https://balerxgate.com/install.ps1 | iex also works. The installer checks SHA256SUMS. If cosign is installed, it also checks the keyless signature of that file. balerx --version prints balerx 0.1.8. On Windows, irm ... | iex adds the binary to this window. powershell -ExecutionPolicy Bypass -File .\install.ps1 updates that child process only, so open a new terminal afterward, or use irm ... | iex. On macOS and Linux, if ~/.local/bin is not on PATH, the installer prints the export line to run. The installer does not run balerx setup.

2. Choose a Guard policy

balerx setup

The command starts with a Balerx Gate banner. A color terminal at least 70 columns wide shows the dragon mark and a BALERX GATE wordmark. A narrower terminal prints one line. NO_COLOR, --no-color, and a pipe print this plain text:

Balerx Gate
Security for AI agents
v0.1.8

balerx scan, balerx hook, --help, and --version leave the banner out. The installer shows the same banner on its Installed screen and still does not run setup.

Arrow keys move, space toggles, and enter confirms. balerx setup --yes writes the balanced preset without questions. balerx setup --preset strict writes fail-closed globals (fail_open: false, timeout_ms: 250) plus the deny rows. balanced writes fail_open: true and timeout_ms: 250. minimal keeps fail_open: true and timeout_ms: 50. A timeout asks. When the terminal is not interactive, including CI, the command writes the balanced preset and does not wait. The file is ~/.balerx/policy.yaml. This command stays offline. --yes and --preset leave an existing file in place. Pass --replace to copy it to policy.yaml.bak and write a new one. A checklist confirms before it replaces an existing file. balerx policy edit keeps fail_open and timeout_ms. balerx doctor parses the file and exits 1 when it is empty or invalid.

3. Scan

From a project directory, or from your home directory if you want user-level agent configs:

balerx scan

The report is local. Nothing is uploaded. The clock is your local time. A high finding exits 1. A critical finding exits 2. A usage or operator error (unknown flag, extra words, or a missing or invalid --baseline file) exits 64. That is not a finding.

Write a file you can keep:

balerx scan --json scan.json --sarif scan.sarif

A sample report, with the machine name replaced, is in the scanner README.

4. Optional: Guard

balerx guard install claude-code
balerx guard install cursor
balerx guard status

Guard writes decisions to the local activity log. It does not send them anywhere until you upload.

5. Optional: send the scan to the team

Create an account at Sign in if you do not have one. Onboarding shows an API URL and an ingest key. Use that URL. Then:

export BALERX_API_URL="https://YOUR_HOST"
export BALERX_API_KEY="<key>"
balerx upload --scan scan.json

YOUR_HOST is the origin from onboarding. Monitor is where hosted-agent traces show up. Team is the people and machines in the organization.

What to read next

Previous and next links sit at the bottom of each article. Scanner release notes are in the changelog and in the public changelog.