Quick Start
Get your first AI-powered PR review in under 2 minutes.
Step 1 — Install pr-review
npm install -g pull-request-reviewStep 2 — Navigate to your repo
cd /path/to/your/git-repoStep 3 — Run the review
pr-reviewInteractive session
pr-review guides you through provider, model, and branch selection using arrow keys (↑/↓) and Enter:
terminal
$ pr-review
┌─────────────────────────────────────┐
🔍 pr-review — AI Code Review
└─────────────────────────────────────┘
Config: ~/.pr-review/config.json
Select AI provider:
❯ Claude (Anthropic) — Uses local claude CLI — no API key needed
GitHub Copilot — Uses copilot CLI — run `copilot /login` first
OpenAI Codex — Uses codex CLI — run `codex` once to sign in
Google Gemini — Uses gemini CLI — run `gemini` once to authenticate
Cursor — Uses agent CLI — install Cursor + add agent to PATH
→ Claude (Anthropic)
Select Claude model:
❯ claude-sonnet-4-6 · Recommended
claude-opus-4-6 · Most capable
claude-haiku-4-5 · Fastest
claude-sonnet-4-5
claude-sonnet-4
→ claude-sonnet-4-6
Source branch (default: feature/auth):
Destination branch (default: main):
✔ Diff fetched — 3,842 chars
✔ Claude review received
✔ Report saved → pr-42-review.md
✅ PR Review complete!
Open pr-42-review.md to read the review.View the report
cat pr-42-review.md💡 The output file is named after the PR number when detected: pr-42-review.md. When no PR is open, it falls back to the outputFile from your config.
Next steps
- Run
pr-review configto update your defaults - Try
pr-review review --stagedto review only staged changes - Try
pr-review review --focus=securityfor a security-focused review - See Flags & Commands for all options