How to run Alibaba's Open Code Review inside Claude Code without an API key
Open Code Review (OCR) is Alibaba's open-source code review tool. A deterministic pipeline picks the files and attaches review rules, and an LLM writes line-level comments. In delegation mode OCR only hands over the file list and rules, and Claude Code does the review with its own model, so OCR needs no API key or model setup.
- Install the
ocrCLI.
npm install -g @alibaba-group/open-code-review
- Install the plugin inside Claude Code.
/plugin marketplace add alibaba/open-code-review
/plugin install open-code-review@open-code-review
- Run a delegated review. With no arguments it covers all uncommitted changes (staged, unstaged and untracked files); add
--commit <hash>or--from main --to featureto limit the range.
/open-code-review:delegate-review
/open-code-review:review instead uses the provider you configure in OCR (ocr config provider). It sorts comments into High, Medium and Low, drops Low, and applies fixes for the High and Medium items worth adopting without asking. In delegation mode OCR still chooses the files and rules, but review quality depends on Claude Code's model. Licensed under Apache-2.0.
Sources
Get notified when a new tip lands
Tip alerts only go out in the app. Install it and turn notifications on.