Open Code Review
Alibaba's Open Code Review (opens in new tab) CLI, ocr, on
the devbox development image. ocr sends your uncommitted changes,
a commit, or a branch range to the LLM provider you configure and prints review
findings. The entrypoint is ocr, and the container starts in /workspace as
sysadmin (UID 1000). No credentials are stored in the image.
- Images
- GHCR
ghcr.io/hambn/open-code-review - Docker Hub
docker.io/hambn/open-code-review
- GHCR
On this page
Images
ubuntu: Ubuntu 24.04 without a browser.latestpoints here, and the CI recipes use it.- Base:
devbox:ubuntu-full - Tags:
ubuntu,latest,open-code-review-<version> - Included software: Open Code Review and the devbox full tier
- Base:
ubuntu-browser: Ubuntu 24.04 with headless Chromium, the default in the local recipes.- Base:
devbox:ubuntu-browser - Tags:
ubuntu-browser - Included software: Open Code Review and the devbox browser tier
- Base:
alpine: Alpine 3.24 without a browser.- Base:
devbox:alpine-full - Tags:
alpine - Included software: Open Code Review and the devbox full tier
- Base:
alpine-browser: Alpine 3.24 with Chromium.- Base:
devbox:alpine-browser - Tags:
alpine-browser - Included software: Open Code Review and the devbox browser tier
- Base:
Pull ghcr.io/hambn/open-code-review:<tag> or docker.io/hambn/open-code-review:<tag>.
open-code-review-<version> names the npm release in the current ubuntu build. All
tags move when the image is rebuilt; pin a digest to keep one build.
Included software
- Open Code Review
- Command:
ocr - Source: npm package
@alibaba-group/open-code-review, version pinned in theDockerfile(opens in new tab)
- Command:
Git, Node.js, Python, Go, the Docker CLI, and the other devbox tools come from the
devbox full tier. The *-browser variants add the
browser tier.
Use cases
- Review the current checkout with Docker, including hosts that load the image from a saved tar.
- Repeatable local reviews with Docker Compose, with an air-gapped Compose file.
- Rootless reviews on a workstation with Podman.
- Code review in CI on GitHub pull requests with GitHub Actions or on GitLab merge requests with GitLab CI.