# 使用 Homebrew, MacPorts, winget 安装 open-code-review

查看 open-code-review 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:open-code-review
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install open-code-review
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install open-code-review
```

  证据: MacPorts ports tree: llm/open-code-review/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Windows

- winget (92%):

```sh
winget install --id Alibaba.OpenCodeReview -e
```

  证据: Windows Package Manager source index: Alibaba.OpenCodeReview from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:open-code-review
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/open-code-review>
- **版本:** 1.13.4
- **来源摘要:** AI-powered code review tool with deterministic pipelines and an LLM agent
- **主页:** <https://open-codereview.ai>
- **仓库:** <https://github.com/alibaba/open-code-review>
- **上游文档:** <https://open-codereview.ai>
- **许可证:** Apache-2.0
- **源码归档:** <https://github.com/alibaba/open-code-review/archive/refs/tags/v1.13.5.tar.gz>
- **最后更新:** 2026-11-03T19:00:00Z
- **已生成:** 2026-11-04T12:20:42+00:00

## 可执行文件

- ocr (cli)
- ocr (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_golden_gate, arm64_linux, arm64_sequoia, arm64_tahoe, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-11-04
- 管理器版本: 1.13.4
- 管理器更新时间: 2026-11-03
- 本地数据: OK
- 上游仓库: https://github.com/alibaba/open-code-review
- 检测到的最新版本: v1.13.5 (当前)
## 项目历史与用法

Open Code Review is Alibaba’s open-source AI-assisted code-review CLI. It reviews Git diffs or complete files and emits structured, line-level findings using deterministic pipelines and an LLM agent.

### 项目历史

Open Code Review originated as Alibaba Group’s internal AI code-review assistant. Following two years of internal deployment, Alibaba incubated it as an open-source project.

The public project centers on a hybrid architecture: deterministic pipelines control coverage, bundling, rule selection, and comment positioning, while an LLM agent retrieves context and writes review findings.

### 采用历史

Alibaba states that the tool served tens of thousands of internal developers and identified millions of defects over two years before being released as an open-source project. The public CLI is distributed through npm, downloadable binaries, source builds, and Homebrew.

The project also provides integrations for coding-agent skills, Claude Code plugins, GitHub Actions, and GitLab CI, extending it beyond interactive local reviews.

### 使用方式

Users configure an LLM endpoint, authentication token, and model, test connectivity with ocr llm test, then run ocr review against workspace changes, commit ranges, or individual commits. The ocr scan command audits complete files or directories.

Configuration is stored in ~/.opencodereview/config.json. LLM credentials may instead be supplied through OCR-prefixed or compatible Anthropic environment variables; because no distinct credential file is documented, the credentials-file field is null.

### 为什么软件包爱好者会关心

Open Code Review packages an internally developed, large-scale review system as a portable Go CLI. It combines deterministic file selection and rule matching with LLM-driven contextual analysis rather than relying on an unconstrained general-purpose agent.

Its multiple distribution and integration surfaces—native binaries, npm, Homebrew, CI, skills, and plugins—make it representative of the emerging AI developer-tool supply chain.

### 时间线

- Internal era: Deployed within Alibaba for two years before open-source incubation.
- Open-source era: Released publicly with CLI, agent, plugin, skill, and CI integration surfaces.

### Related projects

- Related systems include Git, GitHub Actions, GitLab CI, Claude Code skills and plugins, OpenAI-compatible APIs, and Anthropic-compatible APIs.

### 来源

- <https://github.com/alibaba/open-code-review>
- <https://open-codereview.ai/>


## 安全说明

没有找到 open-code-review 的匹配本地密钥处理 manifest。软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ~/.opencodereview/config.json

## Credential files

- Unix: ~/.opencodereview/config.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** open-code-review
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- MacPorts - open-code-review: normalized package name match | MacPorts ports tree: llm/open-code-review/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - Alibaba.OpenCodeReview: normalized package name match | Windows Package Manager source index: Alibaba.OpenCodeReview from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [coderabbit](https://pkg.so/zh-hans/cask/coderabbit/) - Choose CodeRabbit CLI when you prefer a hosted AI-review product with GitHub and GitLab pull-request integration and repository-local YAML policy, rather than Open Code Review's self-selected LLM providers and deterministic local pipeline.

  来源: <https://open-codereview.ai/> · <https://docs.coderabbit.ai/cli> · <https://docs.coderabbit.ai/getting-started/yaml-configuration>

## Combined YAML source

View the package source record on GitHub. [combined/open-code-review.yml](https://github.com/mxcl/pkgdb/blob/main/combined/open-code-review.yml)


## 来源

- pkg.so package database
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
