Skip to main content
The ScanDrix CLI runs the same AST + LLM review engine locally, in pre-commit/pre-push git hooks, via an interactive TUI, or inside any CI runner.

Install

The installer places scandrix on your PATH (macOS, Linux, WSL). Or build from source via make build. Verify:

Team API keys

CLI and CI runs authenticate via browser login (scandrix auth login) or team API keys generated in the dashboard under Settings → API Keys (scandrix_* prefix):
Or pass a key directly for a single run:
Treat team keys like passwords. Keep them in CI secret stores and untracked environment files only — never commit them to source code or client-side bundles. Rotate immediately from the dashboard if a key is exposed.

Local reviews

Review your working tree or staging area before committing:
Other common invocations:
Use --json for machine-readable output or --prompt-only for coding-agent prompts.

CI usage

Run reviews headlessly in your pipeline using scandrix ci run or scandrix review --fail-on:
With --fail-on, the CLI exits with code 1 when findings meet or exceed the configured severity (info, warning, error, critical).

Pre-commit & pre-push hooks

This non-destructively installs delimited review guards in .git/hooks/pre-commit and .git/hooks/pre-push. Skip temporarily with SCANDRIX_SKIP_HOOK=1 or git commit --no-verify.

Command overview