MrTechKing

6 min read

Open Code Review: Alibaba's AI Code Reviewer (GitHub, Scanned)

Alibaba's free command-line tool that reviews your Git changes with AI and points to the exact line.

Open Code Review logo
✅
Scan: safe. Nothing malicious. Two things to know: the npm version updates itself in the background unless you turn that off, and your changed code goes to the AI provider you choose. Scanned Nov 24, 2026; the full report is below.

Open Code Review is a free command-line tool from Alibaba that reads your Git changes, sends the changed files to an AI model you choose, and gives you review comments on exact lines. Run ocr review in a project and it checks your uncommitted work; ocr review --from main checks a whole branch, and ocr scan reads full files when there is nothing to compare.

It earns its place because ordinary code, not the AI, decides which files to review, groups related ones together, matches rules to each file type and places each comment. The AI does the reasoning. It works with OpenAI, Anthropic and compatible providers, and it has skills for Claude Code, Codex, Cursor and Kimi Code. With delegation mode, your current agent does the review, so you need no separate API key. There is a GitHub Action too.

Open Code Review is Apache 2.0 licensed and written in Go. Alibaba says it began as its internal review assistant. The repo opened on 18 May 2026 and has about 55,800 stars and 230 contributors. The latest release is 1.14.2 from 23 November 2026.

Who it is for

Developers who want a second look before opening a pull request, teams adding review to GitHub Actions, and coding-agent users. It runs on Windows, macOS and Linux, and needs Git 2.41 or later plus a model provider or a coding agent.

Getting started

1. Install with npm

npm install -g @alibaba-group/open-code-review

2. Or with Homebrew, built from source and without self-updates

brew install open-code-review

3. Choose a model provider and model

ocr config provider
ocr config model

4. Review your changes inside a Git project

ocr review

5. Review a branch against main

ocr review --from main

6. Optional: stop the npm version updating itself

export OCR_NO_UPDATE=1

The npm package downloads a prebuilt program from GitHub releases and checks its SHA-256 checksum. It then updates itself in the background, checking at most every 18 minutes when you run it, unless OCR_NO_UPDATE is set; Homebrew and the plain download do not. Settings and review transcripts are kept in ~/.opencodereview. Your changed code goes to the model provider you pick. Our scan covers the source code, not the prebuilt programs.

Safety scan

We cloned alibaba/open-code-review at commit 734a104 on Nov 24, 2026 and ran the checks described on the GitHub Tools page: credential patterns, decode-and-execute code, install-time scripts, committed binaries, risky CI workflows, every host the code talks to, known vulnerabilities in pinned dependencies, and project hygiene. A person read every hit. This is what we found.

  • 7 secret hits, all in documentation: they show the words that mark the start of a private key, to explain which file to paste into a GitHub secret. No real keys. 1 binary, the 60 KB Gradle wrapper used to build the JetBrains plugin. 1,321 files, about 285,000 lines.
  • 3 pattern hits, all the project's own curl-to-shell install command: once as a comment in install.sh and twice on its website's page.
  • install.sh downloads the release from GitHub, stops if the SHA-256 checksum does not match, and uses sudo only when /usr/local/bin is not writable. The npm postinstall script downloads the same program over HTTPS and checks it too. Neither edits your shell profile.
  • 16 advisories (0 critical, 6 high, 8 moderate, 2 unrated). All the high and moderate ones we traced are in development packages for the VS Code extension, the plugin front end and the OpenCode plugin, not in the ocr program. The 2 unrated ones are in golang.org/x/net, a Go library the program uses. One published medium advisory, where a repo's rule file could make the tool read other files on your machine, was fixed in 1.11.1.
  • Telemetry is off by default and only goes to a server you set. The program talks to your model provider, the npm registry for updates and GitHub for downloads. Sign in with ChatGPT is an optional preview that uses OpenAI's documented sign-in and keeps tokens in ~/.opencodereview. 14 workflows; the 2 on pull_request_target check out the trusted base, not the contributor's code, and all 3 third-party actions are pinned. Security policy, Dependabot and CodeQL are in place.

What the scanner counted

CheckResult
Secrets7 candidates found and read; see the notes above.
Suspicious code3 pattern hits found and read; every one is listed under the raw findings.
Install-time code1 npm lifecycle script. 2 installer scripts (one can call sudo)
Committed binaries1 executable or compiled object committed; listed under the raw findings.
CI workflows14 workflows. 2 use pull_request_target, none check out the pull request head. 0 of 3 third-party actions pinned to a tag rather than a commit.
Network hosts40 distinct hosts referenced from source; most often api.example.com, api.openai.com, api.anthropic.com, example.invalid. 11 URLs to a bare IP address, listed under the raw findings.
Known vulnerabilities16 advisories across 1,127 pinned packages: 0 critical, 6 high, 8 moderate, 0 low, 2 unrated. acp/go.mod: 1 packages, 0 advisories; extensions/frontend/package-lock.json: 433 packages, 2 advisories; extensions/vscode/yarn.lock: 728 packages, 4 advisories; go.mod: 94 packages, 2 advisories; plugins/open-code-review/opencode/package-lock.json: 301 packages, 11 advisories.
Project hygieneHas security policy, automated dependency updates, CodeQL, licence file, contributing guide.
OpenSSF ScorecardNot scored: the project is not in Scorecard's weekly index.

The raw findings

Every hit the scanner wrote out, with a link to the exact line at the scanned commit. Secrets candidates are redacted.

Secret candidates (7, redacted)
WhereRuleMatch
examples/github_actions/README.md:525private-key-----B…--- (31 chars)
pages/src/content/docs/en/integrations/ci.md:269private-key-----B…--- (31 chars)
pages/src/content/docs/ja/integrations/ci.md:212private-key-----B…--- (31 chars)
pages/src/content/docs/ko/integrations/ci.md:255private-key-----B…--- (31 chars)
pages/src/content/docs/ru/integrations/ci.md:269private-key-----B…--- (31 chars)
pages/src/content/docs/tr/integrations/ci.md:198private-key-----B…--- (31 chars)
pages/src/content/docs/zh/integrations/ci.md:238private-key-----B…--- (31 chars)
Pattern hits (3)
WhereRuleMatch
install.sh:7download-piped-to-shell# curl -fsSL https://open-codereview.ai/install.sh | sh
pages/src/components/HeroSection.tsx:140download-piped-to-shell{ key: 'macos', labelKey: 'hero.installMacOS', cmd: 'curl -fsSL https://open-codereview.ai/install.sh | sh', icons: [appleIcon], primary: false },
pages/src/components/HeroSection.tsx:141download-piped-to-shell{ key: 'linux', labelKey: 'hero.installLinux', cmd: 'curl -fsSL https://open-codereview.ai/install.sh | sh', icons: [linuxIcon], primary: false },
URLs to bare IP addresses (11)
WhereRuleMatch
internal/telemetry/exporter_test.go:27ip-literal-url{"http scheme strips and is insecure", "http://192.0.2.1:4317", "192.0.2.1:4317", true},
internal/telemetry/exporter_test.go:30ip-literal-url{"uppercase HTTP scheme strips and is insecure", "HTTP://192.0.2.1:4317", "192.0.2.1:4317", true},
internal/telemetry/exporter_test.go:33ip-literal-url{"http scheme with trailing slash is trimmed", "http://192.0.2.1:4317/", "192.0.2.1:4317", true},
internal/telemetry/exporter_test.go:219ip-literal-url{"http scheme keeps its scheme", "http://192.0.2.1:4318", "/v1/traces", "http://192.0.2.1:4318/v1/traces"},
internal/telemetry/exporter_test.go:219ip-literal-url{"http scheme keeps its scheme", "http://192.0.2.1:4318", "/v1/traces", "http://192.0.2.1:4318/v1/traces"},
internal/telemetry/exporter_test.go:223ip-literal-url{"a trailing slash does not double up", "http://192.0.2.1:4318/", "/v1/traces", "http://192.0.2.1:4318/v1/traces"},
internal/telemetry/exporter_test.go:223ip-literal-url{"a trailing slash does not double up", "http://192.0.2.1:4318/", "/v1/traces", "http://192.0.2.1:4318/v1/traces"},
internal/telemetry/exporter_test.go:224ip-literal-url{"an endpoint already naming the signal is left alone", "http://192.0.2.1:4318/v1/traces", "/v1/traces", "http://192.0.2.1:4318/v1/traces"},
internal/telemetry/exporter_test.go:224ip-literal-url{"an endpoint already naming the signal is left alone", "http://192.0.2.1:4318/v1/traces", "/v1/traces", "http://192.0.2.1:4318/v1/traces"},
internal/telemetry/exporter_test.go:225ip-literal-url{"metrics get their own path", "http://192.0.2.1:4318", "/v1/metrics", "http://192.0.2.1:4318/v1/metrics"},
internal/telemetry/exporter_test.go:225ip-literal-url{"metrics get their own path", "http://192.0.2.1:4318", "/v1/metrics", "http://192.0.2.1:4318/v1/metrics"},
npm lifecycle scripts (1)
  • package.json postinstall: node scripts/install.js
Installer scripts (2)
  • install.ps1, 159 lines; talks to api.github.com, github.com, open-codereview.ai
  • install.sh, 119 lines, uses sudo; talks to api.github.com, github.com, open-codereview.ai
Committed binaries (1)
  • extensions/idea/gradle/wrapper/gradle-wrapper.jar: JAR, 61 KB
Worst known vulnerabilities (16 of 16)
AdvisorySeverityPackageSummary
GHSA-xcx6-jx8p-x3h5high@azure/msal-node@5.3.0MSAL Node authorization code flow may disclose parameters to an attacker-controlled endpoint
GHSA-4qx8-w7c3-pj3phightoml@4.3.0toml-node: Quadratic-complexity DoS via many array-of-tables headers in toml.parse()
GHSA-9j65-hcg3-gc64hightoml@4.3.0toml-node: Quadratic-complexity DoS via long dotted keys or table paths in toml.parse()
GHSA-9qmh-m7c6-f92phightoml@4.3.0toml-node: Uncontrolled resource consumption (CPU DoS) via unbounded-length integer literals in toml.parse()
GHSA-h895-cgqg-jf52hightoml@4.3.0toml-node: Prototype pollution: parsing a TOML document can write to Object.prototype
GHSA-mrhx-c7xc-m3w5highzod@4.1.8Zod can exhaust memory while validating oversized constrained collections
GHSA-3g3m-2fjr-6pw4moderateglob@10.5.0Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal
GHSA-g3hv-75wg-m249moderateminimatch@9.0.9minimatch has potential denial of service via globparts amplification
GHSA-3g3m-2fjr-6pw4moderateglob@13.0.6Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal
GHSA-g3hv-75wg-m249moderateminimatch@10.2.6minimatch has potential denial of service via globparts amplification
GHSA-8988-4f7v-96qfmoderate@opentelemetry/core@2.6.1OpenTelemetry Core: Unbounded memory allocation in W3C Baggage propagation
GHSA-chp3-j5qr-2vfrmoderateeffect@4.0.0-beta.83Effect: Cookie attribute injection via domain, path, and name fields in @effect/platform makeCookie()
GHSA-3g3m-2fjr-6pw4moderateglob@13.0.5Glob: AbortSignal cancellation bypass allows post-timeout filesystem traversal
GHSA-g3hv-75wg-m249moderateminimatch@10.2.5minimatch has potential denial of service via globparts amplification
CVE-2026-78661unknowngolang.org/x/net@0.60.0Avoid quadratic complexity when coalescing text nodes in html in golang.org/x/net
CVE-2026-97045unknowngolang.org/x/net@0.60.0Check all ancestor namespace transitions when rendering raw text in html in golang.org/x/net
Workflows worth a look

By the numbers

Stars55.8K
Forks4,618
Contributors230
Commits910
Open issues142
Open pull requests215
Releases154
Latest releasev1.14.2
LicenceApache-2.0
Main languageGo
Project age6 months
Last pushNov 24, 2026
Tracked files1,321
Lines of code285.4K
Checkout size18 MB

Lines by language: Go 154K, Markdown 48.2K, JSON 20.1K, JavaScript 19.6K, TypeScript 18K, Kotlin 8,514.

Questions

Is Open Code Review free?

Yes. It is free and open source under Apache 2.0. You pay your AI provider for the tokens a review uses, unless you use delegation mode with an agent you already have.

Open Code Review or CodeRabbit?

CodeRabbit is a hosted service with paid plans that comments on your pull requests. Open Code Review runs on your own machine or in your own CI with the model you choose.

Does Open Code Review send my code anywhere?

Yes, to the AI provider you set up, because the model has to read the changed files. Telemetry is off by default. Use a local model endpoint if code must not leave your network.

Does Open Code Review work on Windows?

Yes. It runs on Windows, macOS and Linux, on 64-bit Intel, AMD and ARM computers.

How do I uninstall Open Code Review?

Run npm uninstall -g @alibaba-group/open-code-review or brew uninstall open-code-review, then delete ~/.opencodereview.


This post is part of GitHub Tools, where every repository is cloned and scanned before it is written up. The scan is a snapshot of one commit on one day; the repository has moved on since, so check it before you install.