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)
ghCLI (optional, for automatic PR number detection)
Install pr-review
npm install -g pull-request-reviewVerify installation
pr-review --versionFirst 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.jsonInstall 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-codeGitHub Copilot
npm install -g @github/copilotOpenAI Codex
npm install -g @openai/codexGemini (Google)
npm install -g @google/gemini-cliCursor
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.