~ pr-review

Installation

pr-review is distributed as an npm package and should be installed globally so thepr-review command is available in any directory.

Requirements

  • Node.js 18 or later
  • npm 8 or later
  • Git (must be accessible in your PATH)
  • At least one AI provider CLI installed (see below)
  • gh CLI (optional, for automatic PR number detection)

Install pr-review

npm install -g pull-request-review

Verify installation

pr-review --version

First run

On the first run, pr-review automatically creates ~/.pr-review/config.json with sensible defaults. No manual configuration is required.

terminal
# Navigate to any git repo
cd my-project

# Run pr-review
pr-review
# ~/.pr-review/config.json is auto-created on first run
cat ~/.pr-review/config.json

Install an AI provider

You need at least one of these CLIs installed for pr-review to work:

Claude (Anthropic)

npm install -g @anthropic-ai/claude-code

GitHub Copilot

npm install -g @github/copilot

OpenAI Codex

npm install -g @openai/codex

Gemini (Google)

npm install -g @google/gemini-cli

Cursor

Install the Cursor app. The agent CLI binary is bundled with the desktop app.

You only need to install the provider(s) you plan to use. pr-review will show only available providers in the interactive menu.