Credentials. Review sends your changed files to the LLM provider you configure, so use a provider you trust with your code and keep the API key private.
Who it is forA developer who wants a second pair of eyes on a diff before a human reviewer sees it.
The problemReviewing your own changes is slow, and general agents tend to skip files on larger changesets.
The outcomeStructured review comments pointing at exact lines in your changed files.
What you need first
- Git 2.41 or newer
- Node.js and npm to install the CLI
- An API key for an LLM provider, unless you use Delegation Mode
Steps
- Run
npm install -g @alibaba-group/open-code-review - Run
ocr config providerto select a provider and enter your API key - Run
ocr config modelto pick a model for the active provider - In your project, run
ocr reviewto review all staged, unstaged and untracked changes - Run
ocr review --from main --to feature-branchto review a whole branch since it diverged from main - Run
ocr review --format json --output result.jsonif you want the results saved to a file
Prompt for your agent
Install alibaba/open-code-review with `npm install -g @alibaba-group/open-code-review`, then run `ocr review` in this repository and summarize every comment it produces, grouped by file. Do not change any code until I choose which comments to fix.
Caveat. The README says you must configure an LLM before reviewing, unless you use Delegation Mode.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for alibaba/open-code-review and "Review your branch with ocr before opening a pull request"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer