PR-Agent is an open-source AI code reviewer created at Qodo and maintained by the community. An alternative to CodeRabbit and Qodo (formerly Qodo Merge).
PR-Agent is an open-source tool that reviews pull requests with a language model. You trigger it with a comment such as /review, or from a terminal or a CI job: it reads the changes, sends them to the model you have configured and posts the result back to the pull request, or prints it to the console. Besides review, its command list includes describe, improve and ask.
The project contains no model of its own. You supply an API key for a provider such as OpenAI, Anthropic or Google, or point it at a model you host yourself, and you run PR-Agent on your own machine, server or CI runner.
PR-Agent was created at Qodo, and the company has handed it over to the community; it now lives in its own GitHub organization with community maintainers. It is not a Qodo product. According to the project's own README, Qodo's hosted offering, Qodo Merge, was built on PR-Agent and has since been renamed Qodo.
License changed July 2026. The license has changed several times: Apache-2.0 at first, AGPL-3.0 from May 22, 2025 to May 20, 2026, Apache-2.0 again, and MIT since July 9, 2026, according to the history of the LICENSE file in the main repository. This page describes only the license in force when we checked it (Nov 5, 2026).
People who look for open-source AI code review usually want one thing: automated first-pass comments on pull requests without sending their repositories to a hosted service. PR-Agent is built for that setup. You pick the model, you keep the configuration in your own repository, and nothing about it depends on a vendor account.
It is an alternative to CodeRabbit and Qodo (formerly Qodo Merge) in purpose, not a copy of either. We have not compared PR-Agent with CodeRabbit or Qodo feature by feature, and we have not judged the quality of its reviews, so this page makes no claim that it matches them. What we did check is whether it installs and whether the whole chain works on a self-hosted Git server. See Open-Source Alternatives to Qodo for other options in the catalog.
/review/review--diff-file) and get the review on standard output or in a file (--output, --json-output). This needs only a model key, not a hosting token.pip package and a ready-made Gitea webhook image all started in our tests. The documentation also describes a GitHub Action, a GitHub App and webhook setups for other hosts; we did not run those.ask command, not for production-level code analysis. We could not get an answer from small local models on an emulated CPU, which says nothing about proper hardware./help_docs has been disabled since v0.36.1 because of a credential-exposure issue; do not look for it.Is PR-Agent open source? Yes. On Nov 5, 2026 its LICENSE file in the main repository was the MIT license, and the source is public. The license has changed several times before (see the history above), so check the file for the version you use.
Is PR-Agent a Qodo product? No. It was created at Qodo, which has handed it to the community; it is now maintained by community maintainers. The README lists Qodo as a sponsor and describes Qodo's own review product as a separate offering. open-source.store is not affiliated with Qodo or CodeRabbit.
Do I need an API key? Yes, unless you run a model yourself. PR-Agent does not include a model: you set a key for a provider such as OpenAI, Anthropic or Google, or connect a local model through Ollama or vLLM. In version 0.49.0 the default model is an OpenAI one, according to the documentation.
Does my code leave my server? The diff and the pull request description go to the model provider you choose. The README says that with your own OpenAI key, how the data is handled is a matter between you and OpenAI. With a local model, nothing leaves your machine, but the documentation advises against small local models for serious review.
Which Git hosts does it support? According to the documentation: GitHub, GitLab, Bitbucket (Cloud and Server), Azure DevOps and Gitea, plus a mode that reads a plain diff. We tested only Gitea and the diff mode.
PR-Agent vs CodeRabbit or Qodo: which should you choose? We have not compared them, and we did not test PR-Agent with a real model. Choose PR-Agent if you want to run and configure the reviewer yourself and pick your own model. Stay with a hosted service if you need something we have not tested, such as managed hosting or proven review quality.
How does PR-Agent run a review?
According to the authors, each command, such as /review, uses a single model call. We did not verify that.
Choose PR-Agent if you want an open-source AI code reviewer that you run and configure yourself, and you are ready to bring your own model key. The pipeline works: in our test, a /review comment on a self-hosted Gitea server produced a review comment in the pull request. Do not rely on it for review quality or for hosts other than Gitea until you have tried it on your own repositories, because we ran it only with a stand-in model. If you want to compare other open-source AI reviewers in the catalog, see Kodus and Pullfrog; we have not compared them with PR-Agent.
We installed PR-Agent 0.49.0 in a fresh Debian 13 virtual machine on Nov 5, 2026 with Docker and with pip, and ran the full chain on a local Gitea: a
/reviewcomment on a pull request led to a review comment in the pull request. The model was a stand-in server that always returns the same answer, so this checks the installation and the plumbing, not the quality of the reviews. GitHub, GitLab and Bitbucket were not tested. The virtual machine was emulated (4 vCPU, 4 GB), so timings are a ballpark.
| Version | 0.49.0 |
| Ready in | CLI result in 40–60 s in an emulated VM; webhook server answers HTTP after 1–1.5 min (image pull took about 2 min) |
| Memory used | about 330 MiB (CLI, waiting for the model); 283–431 MiB (webhook container) |
| Tested on | Debian 13 · Docker 29.9.2 · Python 3.13.5 · Gitea 28.3.0 · emulated VM, 4 vCPU / 4 GB |
| Tested | Nov 5, 2026 |
Requirements: Docker 23 or later, or Python 3.12 or later; an API key for a model provider; for a Git host, a bot token with access to the repository (not needed in diff-only mode).
docker pull pragent/pr-agent:0.49.0
docker run --rm pragent/pr-agent:0.49.0 --version # pr-agent 0.49.0
git diff main...feature > t.diff
docker run --rm -v $PWD/t.diff:/t.diff \
-e CONFIG__MODEL=<model> -e 'CONFIG__FALLBACK_MODELS=[]' -e OPENAI__KEY=<your-key> \
pragent/pr-agent:0.49.0 --diff-file /t.diff review
The diff must be a real one: a hand-written diff with wrong line numbers in the @@ lines was rejected.docker run -d --name pr-agent --env-file app.env -p 127.0.0.1:3000:3000 pragent/pr-agent:0.49.0-gitea_app
app.env (use your own values; keep the file readable only by you):
CONFIG__GIT_PROVIDER=gitea
GITEA__URL=<address of your Gitea, reachable from the container>
GITEA__PERSONAL_ACCESS_TOKEN=<token of a bot user>
GITEA__WEBHOOK_SECRET=<a random string; without it every webhook gets 403>
OPENAI__KEY=<your model key>
In Gitea, add a webhook to http://<your host>:3000/api/v1/gitea_webhooks with the same secret, for comment, pull request and push events. Then comment /review on a pull request./ returns 404, which is expected: there is no web interface), and the pull request gets a "PR Reviewer Guide" comment.python3 -m venv venv && ./venv/bin/pip install "pr-agent[gitea]" (about 4.7 minutes, 398 MB), then ./venv/bin/pr-agent --version. Other hosts are extras: github, gitlab, bitbucket, azure, all (from the documentation, not tested).Notes: do not use old instructions with the codiumai/pr-agent image; releases from 0.34.2 are published as pragent/pr-agent. The webhook server is reachable from the network, so protect it with the secret and give the bot token minimal rights. PR-Agent stores no data of its own; everything lives in the pull request comments. To remove the test setup: docker rm -f pr-agent and docker rmi pragent/pr-agent:0.49.0 pragent/pr-agent:0.49.0-gitea_app. Updating was not tested.
CodeRabbit, Qodo and Qodo Merge are trademarks of their respective owners. open-source.store is not affiliated with them. PR-Agent is a community-maintained open-source project and is not a Qodo product.
Go, gRPC and Protobuf done right, LLM agents in production, and the hard parts of shipping a first product.
Show that PR-Agent is listed as an open-source alternative. Paste into your README: