Configuration
pr-review stores its configuration at ~/.pr-review/config.json. This file is created automatically on first run with sensible defaults.
Config file location
~/.pr-review/config.jsonDefault config
~/.pr-review/config.json
{
"defaultProvider": "claude",
"defaultModels": {
"claude": "claude-sonnet-4-6",
"copilot": "claude-sonnet-4.6",
"codex": "gpt-5.4",
"gemini": "flash",
"cursor": "default"
},
"defaultBaseBranch": "main",
"maxDiffLength": 100000,
"ignoreFiles": [
"package-lock.json",
"yarn.lock"
],
"outputFile": "pr-review-review.md"
}Config fields
| Field | Type | Default | Description |
|---|---|---|---|
defaultProvider | string | "claude" | Default AI provider |
defaultModels | object | see above | Default model per provider (e.g. claude-sonnet-4-6 for claude, claude-sonnet-4.6 for copilot, gpt-5.4 for codex, flash for gemini, default for cursor) |
defaultBaseBranch | string | "main" | Default destination branch |
maxDiffLength | number | 100000 | Max characters of diff to send (truncated if exceeded) |
ignoreFiles | string[] | see above | Files excluded from the diff |
outputFile | string | "pr-review-review.md" | Default output filename (overridden by PR number) |
Editing config interactively
Run the config command to view and update settings:
terminal
pr-review configAny CLI flag (e.g. --model, --base) overrides the corresponding config value for that single run without modifying the config file.