Quickstart
Get your first code review running in a few minutes.
Prerequisites¶
- Git ≥ 2.41
- LLM API key (not needed if using Delegation Mode)
Step 1 - Install the CLI¶
Verify the binary:
Other install methods
Prefer a release binary, go install, or a local build? See
Installation for every option.
Step 2 - Configure an LLM¶
Using delegation mode?
If the host agent supplies the model, skip to Step 4. kaid never calls an LLM on its own in Delegation Mode.
It lets you pick a built-in or custom provider, enter an API key, choose a
model, save everything to the config file, and then runs kaid llm test once
to verify the endpoint. To switch models later:
Alternative: non-interactive command¶
In CI or a no-TUI environment, write to the same config directly with
kaid config set:
kaid config set provider anthropic
kaid config set model claude-opus-4-6
kaid config set providers.anthropic.api_key sk-ant-xxxxxxxxxx
Step 3 - Test connectivity¶
If you get an error like no valid LLM endpoint configured, recheck the Step 2
config. A 401 / 403 means the token is wrong or expired.
Step 4 - Run your first review¶
Move into any Git repository and run:
cd path/to/your-repo
kaid review # (1)!
kaid review --from main --to feature-branch # (2)!
kaid review --commit abc123 # (3)!
- Workspace mode reviews staged, unstaged, and untracked changes. This is the default.
- Range mode reviews the feature branch's changes since it diverged from
main(merge-base mode). - Commit mode reviews only the diff introduced by that commit.
Preview first
Run kaid review --preview to see which files would be reviewed and which
ones were excluded before spending a model call.
JSON output for systems¶
--audience agent suppresses the human-friendly progress UI so the only thing
on stdout is the JSON / final summary - exactly what an upstream agent or CI
script wants.
Where do the session transcripts live?
Every run writes a JSONL transcript under
~/.kaid/sessions/. Run kaid viewer to browse it in a browser.
See Session Viewer for the full UI.
Next steps¶
CLI Reference Configuration Review Rules
- Installation - every install method and kaid's state directory.
- Configuration - every env var, config key, and built-in provider.
- CLI Reference - every sub-command, flag, and output mode.
- Review Rules - customize what gets reviewed.
- FAQ - known errors and remedies.