Skip to content

AI Providers

Git PR AI delegates all AI-powered features (branch naming, commit messages, PR descriptions, reviews, weekly summaries, etc.) to the CLI agent you have installed locally. Configuring the tool is as simple as choosing which AI CLI to call.

Supported Agents

ProviderCLI CommandNotes
Claude CodeclaudeDefault agent
Gemini CLIgemini
Cursor Agent CLIcursor-agent
Codex CLIcodex

All commands work the same regardless of which provider you select.

Choosing & Switching Providers

  1. Install and authenticate at least one CLI from the list above (follow each vendor's installation guide).
  2. Run git pr-ai config and pick your preferred provider when prompted (you can re-run the command anytime to switch).
  3. The selection is saved in ~/.git-pr-ai/.git-pr-ai.json under the agent key.

If no configuration exists, Git PR AI defaults to Claude Code and will ask you to install it before running AI-assisted commands.

Installation Shortcuts

After installing a CLI, verify it works by running the corresponding --version command (for example, codex --version).

Feature Expectations

Every AI-dependent command (plan issue, take issue, ai-commit, update PR description, pr-review, weekly summary, etc.) automatically uses the configured agent.

If you install multiple providers, simply rerun git pr-ai config whenever you want to switch. No other changes are required.

Built with VitePress