Model or dataset
The-PR-Agent/pr-agent avatar
The-PR-Agent/pr-agent

PR-Agent: the open-source PR reviewer you run yourself

🚀 PR Agent: The Original Open-Source PR Reviewer. This project is not the Qodo free tier.

13,002 stars1,844 forksPythonMIT

At a glance

What is it?
PR-Agent is a Python code review agent that answers slash commands on pull requests or runs from the CLI, backed by any LiteLLM-reachable model. It is a community-maintained legacy project of Qodo, and the documentation is upfront that it is not the same thing as Qodo's own review product.
Who is it for?
Adopt PR-Agent if you want review comments generated by a model you choose, on infrastructure you control, and you accept that it is a community-maintained legacy project rather than a supported product. Skip it if you need an SLA, managed hosting, or a reviewer that understands your repository beyond the diff in front of it.
Can I use it commercially?
Yes. MIT is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
Is it still maintained?
Yes. The repository received new commits within the last day.
What is it written in?
Mainly Python, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on September 15, 2026, and from our analysis. They are not legal advice.

DEEP OPEN-SOURCE ANALYSIS

What PR-Agent actually does on a pull request

A pull request arrives, and instead of a human leaving the first comment, a bot does. PR-Agent reads the diff and posts structured feedback: a description of what changed, a review with suggestions, or an answer to a free-text question. The README frames the value as speed and cost, stating that each tool such as /review, /improve or /ask uses a single LLM call, roughly 30 seconds and low cost.

The audience is narrower than the tagline suggests. This is for teams that already have an API key for a model provider and are willing to wire it into CI or a webhook. If you want a review bot you sign up for and forget, this is the wrong shape of tool, and the README says so itself: PR-Agent is described as a community-maintained legacy project of Qodo, distinct from Qodo's primary AI code review offering. The repository exists for people who want to own the pipeline, not rent it.

The single-call design and the compression strategy behind it

The architectural choice that shapes everything else is one model call per tool invocation. That keeps latency and token spend predictable, and it also means the agent is not running an iterative loop over your codebase. What it sees is what fits in the prompt, which is why the project leans on a PR Compression strategy, documented under core abilities, to fit large diffs into a single request.

Read that as a boundary rather than a feature. A reviewer that makes one pass cannot ask a follow-up question about a function it only half-read, and it cannot chase a call chain across files the way a human reviewer opens three tabs. Compression buys you coverage of big PRs; it does not buy you depth. The tools are exposed as slash commands in a PR comment (/describe, /review, /improve, /ask) or through the CLI, and the README points to a diagram for the tool flow rather than describing the internals in prose. That diagram is the most detailed public explanation of the pipeline; the README does not walk through the prompt construction step by step.

Customization happens through JSON-based prompting and a configuration file at pr_agent/settings/configuration.toml, so review categories and behavior are editable without patching Python. That is the honest extension point: if the default review misses your conventions, you change the prompt, not the architecture.

Installing PR-Agent and running a first review

There are three documented entry points. The GitHub Action is the one the README recommends, and it is a workflow file you commit to the repository. It triggers on pull_request events of type opened and synchronize, and it needs two secrets: an OPENAI_KEY and the standard GITHUB_TOKEN.

yaml
# .github/workflows/pr-agent.yml
name: PR Agent
on:
  pull_request:
    types: [opened, synchronize]
jobs:
  pr_agent_job:
    runs-on: ubuntu-latest
    steps:
    - name: PR Agent action step
      uses: the-pr-agent/pr-agent@main
      env:
        OPENAI_KEY: ${{ secrets.OPENAI_KEY }}
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

After the workflow runs on a new pull request, you should see PR-Agent activity in the PR timeline. The README links a full setup guide for the Action, and that link is where the remaining options live.

The second path is local, and it is the fastest way to see output without touching CI. Install the package, export the key, and point the CLI at a PR URL with a tool name:

bash
pip install pr-agent
export OPENAI_KEY=your_key_here
pr-agent --pr_url https://github.com/owner/repo/pull/123 review

The command prints the review to your terminal rather than posting it, which makes it a reasonable way to judge output quality before you let the bot comment publicly. Note the Python requirement: pyproject.toml declares requires-python >=3.12, so an older interpreter will fail at install time.

The third path is a container. The README carries a migration warning worth reading twice: releases 0.34.2 and later are published under the pragent/pr-agent Docker Hub namespace, while older releases up to and including v0.31 remain at the legacy codiumai/pr-agent namespace as a frozen archive with no new images pushed there. Any pinned image:, docker pull, or uses: docker:// reference needs updating when you move to 0.34.2 or later.

Where PR-Agent stops being the right tool

The most concrete limitation is already in the README: /help_docs has been temporarily disabled since v0.36.1 pending a fix for a credential-exposure issue, tracked as issue #2445. A tool that is switched off for security reasons is a fact about the project's current surface area, not a footnote. If your workflow depends on documentation lookup inside a PR, that capability is not available today.

The second limitation is the maintenance model. The repository is not archived and the last push was on 2026-09-14, with v0.45.0 released on 2026-09-05. Releases are frequent. But the project describes itself as community-maintained and legacy, supported by sponsors including Qodo, and the README explicitly separates it from Qodo's primary offering. Frequent releases and a legacy label can coexist; what you should not assume is a product roadmap, a support contract, or that a reported bug gets a maintainer's week.

The third is scope. PR-Agent reviews the pull request in front of it. It is not a static analyzer, it does not run your test suite, and it does not build a persistent model of your repository. Teams that want a reviewer to catch a missing index because it remembers last quarter's migration will be disappointed. That kind of context is exactly what the README attributes to Qodo's paid product, not to this one.

PR-Agent versus CodeRabbit and versus Qodo

The comparison people search for most is PR-Agent against CodeRabbit, and the difference is deployment, not prompts. CodeRabbit is a hosted service: you install an app and reviews appear. PR-Agent is a program you run, with your key, in your CI or on your server, and the README's data privacy section makes the consequence explicit: if you self-host PR-Agent with your own OpenAI API key, the data flow is between you and that provider. You get control of the pipe and you take on the operational work of keeping it running.

The comparison against Qodo is stranger, because Qodo sponsors PR-Agent and the README spends its opening paragraphs separating the two. Qodo's own offering is described as feature-rich and context-aware, integrating with GitHub, GitLab, Bitbucket and Azure DevOps, with a free version for open-source projects. PR-Agent is the legacy open-source line. Choosing between them is choosing between a maintained commercial product and a community project with the same lineage and a much smaller promise.

On git providers, PR-Agent is genuinely broad: GitHub, GitLab, BitBucket, Azure DevOps and Gitea are all listed, with separate installation guides for GitLab webhooks, the BitBucket app, and Azure DevOps. On models it is broader still, since anything reachable through LiteLLM works, including OpenAI, Anthropic, Gemini, DeepSeek, Mistral, Bedrock, Vertex AI, OpenRouter and Ollama. Running against a local Ollama model is the configuration that no hosted competitor offers, and it is the strongest reason to pick this project.

Maintenance, licensing and the upgrade path you should verify

PR-Agent is MIT licensed, with the licence declared in pyproject.toml as a file reference to LICENSE. That permits commercial use and modification, and it also means there is no warranty and no support obligation attached to the code. Nothing here is legal advice; if your organization has rules about model providers receiving source code, the self-hosted data privacy note in the README is the passage to bring to that conversation.

The upgrade cost has two parts. The first is dependency churn: pyproject.toml pins several packages exactly (atlassian-python-api, azure-devops, azure-identity, boto3, google-cloud-aiplatform) while others use ranges with floors, and the file itself notes that security-sensitive packages declare ranges so pip consumers can pull patches on their own cadence. The pinned set is what you inherit when you install.

The second is the Docker namespace move described above. If your deployment references codiumai/pr-agent, you are on a frozen archive and will not receive new images; the current namespace is pragent/pr-agent for 0.34.2 and later. Check your workflow files and any image: lines for the old name before you plan an upgrade, because the failure mode is silent: the image simply stops changing.

Editorial conclusion

Adopt PR-Agent if you want review comments generated by a model you choose, on infrastructure you control, and you accept that it is a community-maintained legacy project rather than a supported product. Skip it if you need an SLA, managed hosting, or a reviewer that understands your repository beyond the diff in front of it. Before committing, check the Docker image namespace you are pinning, confirm your provider and model combination appears in the support matrix, and read the open /help_docs credential issue.

Frequently asked questions

What is PR-Agent?

PR-Agent is an open-source, AI-powered code review agent and a community-maintained legacy project of Qodo. It runs as slash commands on a pull request or from the CLI, using a model you configure.

How do I use PR-Agent on a pull request?

The README's recommended path is the GitHub Action, added as a workflow file that triggers on pull_request opened and synchronize and reads OPENAI_KEY and GITHUB_TOKEN from secrets. You can also run tools as PR comments such as /describe, /review, /improve and /ask.

Is PR-Agent the same as Qodo?

No. The README states that this repository is not the Qodo offering for open-source projects, and that PR-Agent is distinct from Qodo's primary AI code review product. Qodo is listed as a gold sponsor of PR-Agent.

How do I install PR-Agent with Docker?

Releases 0.34.2 and later are published under the pragent/pr-agent Docker Hub namespace, while releases up to and including v0.31 remain at the legacy codiumai/pr-agent namespace as a frozen archive. Any pinned image or docker pull reference must be updated when moving to 0.34.2 or later.

Which git providers and AI models does PR-Agent support?

The README lists GitHub, GitLab, BitBucket, Azure DevOps and Gitea as git providers, with separate installation guides for GitLab, BitBucket and Azure DevOps. For models it supports OpenAI GPT, Anthropic Claude, Google Gemini, DeepSeek, Mistral, and any model reachable through LiteLLM, including Azure OpenAI, AWS Bedrock, Vertex AI, Databricks, OpenRouter and Ollama.

What is the PR-Agent alternative if I want a hosted reviewer?

CodeRabbit is a hosted service where reviews appear after you install an app, rather than a program you run with your own API key. The README also points to Qodo's primary AI code review offering as the feature-rich, context-aware option from the same lineage.

Official sources

  1. License: MIT
  2. Project website
  3. README
  4. Releases
  5. The-PR-Agent/pr-agent on GitHub
Community notes

Community notes