
open-code-review
Open-source CLI that runs AI code reviews on Git diffs and whole files
open-code-review is an open-source agent for ai models and llm tooling. It is available on CLI, macOS, Windows, Linux and Self-hosted.
- Pricing
- Open source
- Platforms
- CLI, macOS, Windows
- GitHub stars
- 57.5K
- Last commit
- Language
- Go
- License
- Apache-2.0
Similar agents
About open-code-review
Open Code Review is a command-line tool that sends changed code to a language model through an agent that can open full files, search the repository and look at related changed files before writing its comments. Comments are tied to specific lines, and a separate scan mode reviews complete files or directories when there is no diff to work from.
The project pairs deterministic steps with the model. Git logic decides which files are in scope, groups related files such as paired translation files into one review unit, and matches review rules by file path. Each unit is reviewed in isolation, which keeps large changesets manageable. Separate modules check where each comment points and whether its wording holds up.
It suits teams that want review output they can feed into CI pipelines or triage quickly, and developers who already work in Claude Code, Codex, Cursor or similar agents can install it as a skill so their agent runs the review while OCR handles file selection and rules.
What it does
- Line-level review comments
- Findings are attached to specific lines in the diff rather than given as general feedback.
- Full-file scan mode
- Reviews whole files or directories, useful for auditing code that has no recent diff.
- Configurable model provider
- Connects to a chosen LLM endpoint through built-in or custom provider settings.
- Delegation mode
- Lets a host coding agent run the analysis while OCR supplies file selection and rules.
- Path-based review rules
- Applies review rules to files according to their path and characteristics.
- Resumable sessions
- Interrupted range, commit or scan reviews can be resumed by session ID.
Good for
- Reviewing a feature branch against main before merging
- Adding automated review of pull requests in CI pipelines
- Auditing an unfamiliar codebase or directory without a diff
- Running a review from inside Claude Code, Codex or Cursor
Pricing
Open source
Free open source under Apache-2.0; model usage is billed by your provider.
Prices change. Check open-codereview.ai before you buy.
open-code-review FAQ
How do I install open-code-review?
Install globally with npm using the @alibaba-group/open-code-review package, after which the ocr command is available.
Which operating systems are supported?
Windows, macOS and Linux, with Git 2.41 or later required.
Do I need my own model API key?
For OCR's native mode yes, through ocr config provider. Delegation mode uses the host agent's model and needs no separate OCR configuration.
What license is open-code-review under?
Apache-2.0.
Is open-code-review free?
Yes. open-code-review is open source, so you can use and self-host it for free.
What are the best alternatives to open-code-review?
The closest alternatives to open-code-review are agentic-os, OpenHands, nanocoder, CoderBaba and cline.
Where this comes from
- Description: written from the project's README and the project's website.


