What Is PR-Agent? GitHub Action Setup, the /review /describe /improve Commands and How It Differs from Qodo
When you open a pull request (PR), PR-Agent steps in automatically or when you comment: type `/describe` and it writes a title, summary and file-by-file walkthrough on the PR; type `/review` and it comments on possible bugs, security concerns and tests; `/improve` gives fix suggestions you can commit. It's open source (MIT) and free; it runs as a GitHub Action, on GitLab, Bitbucket, Azure DevOps and Gitea, or from the terminal, you choose the model, and the model cost goes to that provider. It isn't Qodo's paid product; Qodo handed the project over to the community.
- What it does
- Writes PR descriptions, reviews and fix suggestions
- Type
- Open-source PR agent (GitHub Action, webhook, CLI)
- Where
- GitHub, GitLab, Bitbucket, Azure DevOps, Gitea
- Model
- You choose (OpenAI by default; Claude, Gemini, local models)
- Maintenance
- Community (handed over from Qodo)
- Version
- 0.50.0 (November 7, 2026)
- Cost
- Free (MIT); model cost is separate
What is PR-Agent for?
Before merging a code change into the main code, a developer opens a pull request (PR, a merge request); someone on the team reads and approves it. In small teams these reviews stall and PR descriptions stay empty. PR-Agent reads the PR, writes its description, leaves possible issues as comments and suggests fixes; a human review still happens, but it starts faster.
Who it helps: software teams of two or three, agencies that manage client projects on GitHub or GitLab, and open-source maintainers reviewing incoming contributions. For example, on a PR that changes an e-commerce site's checkout code, /review lists security and test gaps as comments.
To learn about GitHub's own AI assistant and code review, see the GitHub Copilot guide.
What's the difference between PR-Agent and Qodo?
PR-Agent was first developed by Qodo (older Docker images are still under codiumai/pr-agent). According to the README, Qodo donated the project to the open-source community: the repository now lives in the The-PR-Agent organization, is fully community-owned, has its first external maintainer, and is in the process of being donated to an open-source foundation. The docs moved to docs.pr-agent.ai.
| PR-Agent | Qodo | |
|---|---|---|
| What | Open-source PR review agent | Commercial AI code review platform (successor to the hosted Qodo Merge) |
| Where it runs | In your GitHub Action, on your server or your computer | Qodo's service |
| Cost | Free (MIT); model cost with the provider | On its own pricing page; a free version for open-source projects |
| Maintenance | Community; Qodo is a Gold sponsor (README) | Qodo |
README: "This project is not the Qodo free tier." The free version Qodo offers to open-source projects isn't PR-Agent; it's a separate product. Source: the PR-Agent README and SECURITY.md (November 18, 2026).
How does PR-Agent work?
› /reviewTriggers automatically when a PR opens, or when you comment a command on the PR.Review categories and behavior are set with a configuration file (.pr_agent.toml). Every command also accepts free-text instructions through extra_instructions (e.g. "focus on security").
How do you install PR-Agent?
Requirement: a model provider's API key (OpenAI by default). No account is needed. The commands come from the official README and installation docs.
- Add a secret named
OPENAI_KEYto the repository (Settings › Secrets and variables › Actions). - Save the file below as
.github/workflows/pr-agent.yml.
› name: PR Agent
on:
pull_request:
types: [opened, synchronize]
jobs:
pr_agent_job:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: write
steps:
- name: PR Agent action step
uses: the-pr-agent/pr-agent@main
env:
OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}By default it doesn't rerun when new commits are pushed (synchronize); the docs explain enabling that with github_action_config.pr_actions or handle_push_trigger. If you use Claude or Gemini, OPENAI_KEY isn't needed, only that provider's key.
› pip install "pr-agent[github]"
export OPENAI__KEY=your_openai_key
export GITHUB__USER_TOKEN=your_github_token
pr-agent --pr_url https://github.com/owner/repo/pull/123 reviewRequires Python 3.12 or later. The Git provider extra is installed separately: github, gitlab, bitbucket, azure, gitea; pr-agent[all] for all of them.
› uses: docker://pragent/pr-agent:0.50.0-github_actionSECURITY.md says version tags are immutable, while rolling tags such as latest and github_action can change; the strictest option is pinning the image by its @sha256: digest. Releases 0.34.2 and later are under pragent/pr-agent; the old codiumai/pr-agent is a frozen archive.
The README's @main pulls the latest release on every run. To pin the version, use docker://pragent/pr-agent:0.50.0-github_action in the Action, or pip install "pr-agent[github]==0.50.0" with pip.
What do you type, what do you get? Example commands
You write commands as comments on the PR; PR-Agent posts its answer on the same PR. The examples come from the official commands docs; the output is described as far as the docs describe it.
extra_instructions.To change the response language, set the response_language locale code in the configuration (e.g. tr-TR); writing /review --config.response_language=tr-TR applies it to that command only. The default is U.S. English; the docs give no Turkish output example.
PR-Agent commands
| Command | What it does |
|---|---|
/describe | PR title, type, summary, code walkthrough and labels |
/review | Possible issues, security concerns, tests and review effort |
/improve | Runs /review; findings can carry committable fixes |
/ask "…" | Questions and answers about the PR or specific code lines |
/add_docs | Writes documentation for code components that lack it |
/generate_labels | Generates custom labels based on the changes |
/update_changelog | Updates CHANGELOG.md with the PR's changes |
/similar_issue | Finds similar issues from an issue (GitHub only) |
/help | Lists the available commands |
/help_docs has been temporarily disabled since v0.36.1 until a credential-exposure issue (#2445) is fixed. In the terminal the same commands run as pr-agent --pr_url <PR URL> review.
Which models does PR-Agent work with?
PR-Agent has no model of its own; you choose the model in the configuration file's model field, and if it gets no answer it switches to the backup model in the fallback_models list. Because it runs through LiteLLM, providers LiteLLM supports and OpenAI- or Anthropic-compatible endpoints can be connected.
| Provider | Note in the docs |
|---|---|
| OpenAI | Default. In the November 18, 2026 configuration the default model is gpt-6.1-sol, with gpt-6-luna as backup. |
| Anthropic (Claude) | With an Anthropic API key; docs example anthropic/claude-opus-5. |
| Google Gemini | With a Google AI Studio key; docs example gemini/gemini-3.8-flash. |
| Azure OpenAI, AWS Bedrock, Vertex AI | With the cloud account's credentials. |
| OpenRouter, DeepSeek, Mistral | With the provider's key and LiteLLM prefix. |
| Ollama | Local model. Ollama's default 2048-token context isn't enough for most PRs: raise it with OLLAMA_CONTEXT_LENGTH and set custom_model_max_tokens to match. Code stays in-house only if Ollama runs on your own machine or server; PR-Agent in a GitHub Action must be able to reach that address. |
Which should you pick? An OpenAI key is enough to start with the ready-made example. To use Claude, use an Anthropic API key or Bedrock. The docs describe a separate setting for routing small PRs to a cheaper model. Turn on config.output_run_details to see which model handled which PR.
Checked on November 18, 2026. Source: the "Changing a model" doc and configuration.toml. Model names change often; the current list is in pr_agent/algo/__init__.py.
Which platforms does PR-Agent run on?
| GitHubYes | Action, app/webhook, CLI; all commands. |
|---|---|
| GitLabYes | Webhook, pipeline, CLI; except /similar_issue. |
| Bitbucket Cloud / ServerYes | App and pipeline (Cloud); some commands post output as a comment. |
| Azure DevOpsYes | Webhook, pipeline, CLI. |
| GiteaYes | Webhook and CLI. |
| Local repository or plain diffPartly | Without a platform; results go to a file or the screen. |
Source: the "Supported platforms" matrix (November 18, 2026). Gerrit and CodeCommit are also registered providers, with more limited support.
What does PR-Agent access, and where does my code go?
The PR's diff and description, related files when needed, repository context files such as AGENTS.md and SKILL.md, and linked issues or tickets.
Sends the diff to the model provider you choose. According to SECURITY.md, PR-Agent doesn't send code to any server run by the project; the data relationship is between you and the provider.
Descriptions, comments and suggestions on the PR; labels; CHANGELOG changes on supported platforms. Action permissions: contents read, issues write, pull-requests write.
!For PRs from forks, the pull_request event doesn't provide secrets; working around this with pull_request_target or secret sharing exposes your secrets to a workflow triggered by fork code. Don't enable it without reading the warning in the docs.
Source: SECURITY.md, "Data Privacy" and the GitHub installation doc. This section isn't a security certification.
Is PR-Agent free?
Yes. PR-Agent is MIT-licensed open source; there's no account, subscription or usage limit. The only cost comes from the model provider you connect; the README says simple /review and /ask requests can use one model call, while retries, fallbacks and larger reviews may need more. GitHub Actions minutes count separately under your GitHub plan. Prices are in US dollars.
- MIT: free to use in commercial projects, modify and distribute
- When distributing you must keep the license and copyright notice; the software is provided "as is"
Source: LICENSE (MIT), the README. Qodo's paid plans don't belong to PR-Agent; they're on Qodo's own pricing page. This isn't legal advice.
Official pricing page last checked on .
Common problems and fixes
| What's happening | What to do |
|---|---|
| It doesn't run on PRs from forks | The pull_request event doesn't provide secrets on fork PRs; read the options and their risks in the docs. |
| It doesn't rerun when I push new commits | synchronize is skipped by default; add it to github_action_config.pr_actions or turn on handle_push_trigger. |
/help_docs doesn't respond | Temporarily disabled since v0.36.1 because of a credential-exposure issue (#2445). |
| The Docker image can't be found for a new release | Releases 0.34.2 and later are under pragent/pr-agent; update your codiumai/pr-agent references. |
| Output is garbled or incomplete with Ollama | The default 2048-token context isn't enough; raise it, e.g. OLLAMA_CONTEXT_LENGTH=8192 ollama serve, and set custom_model_max_tokens to the same value. |
| The model errors out or the answer is cut off | Check the key and provider prefix; define a backup with fallback_models, and set custom_model_max_tokens for models outside the token table. |
How do you remove PR-Agent?
- GitHub Action: Delete
.github/workflows/pr-agent.ymland remove theOPENAI_KEYsecret if it's no longer needed. - pip:
pip uninstall pr-agent(pip's standard command; not stated in the official documentation). - Webhook and app: Remove the webhook or the app you installed from the Git platform's settings.
Frequently asked questions
What's the difference between PR-Agent and Qodo?
PR-Agent is an open-source, free PR review agent; Qodo handed the project over to the community. Qodo is a separate commercial code review platform, and the README states that PR-Agent isn't Qodo's free tier.
How do you install PR-Agent on GitHub?
Add the OPENAI_KEY secret to the repository and save the README's workflow as .github/workflows/pr-agent.yml. To pin the version, use docker://pragent/pr-agent:0.50.0-github_action.
Does PR-Agent work on GitLab?
Yes. On GitLab it runs through a webhook, pipeline or CLI; all commands except finding similar issues are supported. Bitbucket, Azure DevOps and Gitea are supported too.
Does PR-Agent run with Docker?
Yes. The official image is published as pragent/pr-agent; for the GitHub Action, pinning with a version-tagged image or a sha256 digest is recommended.
Does PR-Agent work with a local model (Ollama)?
Yes, Ollama is among the providers supported through LiteLLM. Ollama's default 2048-token context isn't enough for most PRs, so you raise it with OLLAMA_CONTEXT_LENGTH. Speed and review quality depend on the model and hardware.
Is PR-Agent free?
Yes, it's MIT-licensed and needs no account. The only cost comes from the model provider you connect.
Can PR-Agent write comments in Turkish?
You change the response language by setting a locale code in the response_language setting, e.g. tr-TR. The default is U.S. English; the docs give no Turkish output example.
Related guides
Sources
- The-PR-Agent/pr-agent repository (README)
- Docs: commands
- Docs: supported platforms
- Docs: GitHub installation
- Docs: changing a model
- Docs: additional configurations (response language)
- SECURITY.md
- PyPI: pr-agent
- Qodo pricing page (separate commercial product)
Not clear in the official sources: The quality of replies in Turkish (the setting exists, but there's no Turkish example) · the typical model cost of a PR review. Each is covered in its section.





