[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108623":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":13,"stars30d":17,"stars90d":16,"forks30d":16,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":24,"updatedAt":25,"readmeContent":26,"aiSummary":27,"trendingCount":16,"starSnapshotCount":16,"syncStatus":28,"lastSyncTime":29,"discoverSource":30},108623,"opencodereview","BridgLabs\u002Fopencodereview","BridgLabs","Source-available AI code review for GitHub pull requests. Runs Claude Code, OpenCode or Codex on your own machine with the plan you already pay for.","https:\u002F\u002Fopencodereview.run\u002F",null,"Rust",116,12,55,6,0,31,1,52.34,"Other",false,"main",[],"2026-11-22 21:10:33","2026-11-23 19:25:36","\u003Cp align=\"center\">\n  \u003Cimg src=\"assets\u002Fmascot.svg\" alt=\"OpenCodeReview mascot\" width=\"128\" height=\"128\">\n\u003C\u002Fp>\n\n# OpenCodeReview\n\n[![License](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Flicense-PolyForm_Small_Business_1.0.0-blue.svg)](LICENSE)\n\nAI code review for GitHub pull requests that runs on your own machine, using the Claude or ChatGPT account you already have.\n\nOpenCodeReview watches the repositories you pick, reviews each pull request with [Claude Code](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fdocs\u002Fclaude-code) or [Codex](https:\u002F\u002Fgithub.com\u002Fopenai\u002Fcodex) inside isolated containers, checks every finding against the code, and posts the result on the pull request.\n\n![The OpenCodeReview review queue](site\u002Fapp-reviews.png)\n\n## Features\n\n- **Your own AI.** Reviews run on the Claude Code CLI (Claude Opus 5.5 at medium effort by default) or the Codex CLI, signed in with your Claude or ChatGPT account. The top bar picks each provider's model and effort. There is no OpenCodeReview account.\n- **Several accounts with failover.** Connect more than one account, of any provider, and pick the one new reviews start on. When an account hits its usage limit, the review continues on the next account of the same provider, then the other provider, and the limited account comes back after its window resets. Settings shows how much of each Claude and ChatGPT plan is left.\n- **Codebase indexing.** Each selected repository is indexed locally: file metadata, a package and import graph, and lightweight symbols. Reviews get the callers, dependencies and tests of the changed code, plus your convention files (`AGENTS.md`, `CLAUDE.md`, `CONTRIBUTING.md`, `REVIEW.md` and others).\n- **Usage.** See the tokens reviews used by day, pull request, repository, model and account, with findings, time and cache reuse. A pull request opens into each of its runs.\n- **Review skills.** The review methodology is a Markdown skill you can edit, version and roll back in the app.\n- **Evidence-checked findings.** Every finding must quote the exact code it is about and anchor to a changed line. Reports that fail validation are never published as clean.\n- **Incremental and stacked PRs.** New pushes review only what changed since the last review; stacked PRs are reviewed against their immediate base.\n- **Isolated execution.** The AI CLI runs in locked-down runner containers with a read-only snapshot of the code, no repository checkout, and network access limited to your AI provider.\n- **Guided onboarding** at `http:\u002F\u002Flocalhost:1421`: sign in to GitHub, connect your plan, pick repositories and run a first review.\n\n## Quick start\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002FBridgLabs\u002Fopencodereview && cd opencodereview && docker compose up --build\n```\n\nOpen [http:\u002F\u002Flocalhost:1421](http:\u002F\u002Flocalhost:1421) and follow onboarding:\n\n1. **GitHub**: sign in with the GitHub device flow.\n2. **Your plan**: connect at least one account. Claude uses `claude setup-token` (you paste back the code it shows); ChatGPT uses the `codex login` browser flow or a device code.\n3. **Repositories**: choose the repositories to monitor. They are cloned and indexed in the background.\n4. **First review**: pick an open pull request. After that, new pull requests in monitored repositories are reviewed automatically.\n\nThe first build compiles the Rust backend and can take several minutes. To skip it, run the images published with each release instead:\n\n```bash\ndocker compose -f docker-compose.yml -f docker-compose.images.yml up -d\n```\n\nSet `OCR_VERSION` (for example `OCR_VERSION=0.1.0`) to stay on one release; the default is the newest.\n\n## Requirements\n\n- Docker Engine or Docker Desktop with Docker Compose v2 (the Compose file uses `additional_contexts`), or rootless Podman on Linux as described below.\n- A GitHub account with access to the repositories you want reviewed.\n- At least one of:\n  - a Claude subscription that works with Claude Code (Pro, Max, Team or Enterprise);\n  - a ChatGPT plan that includes Codex.\n\nLocal models through Ollama or similar are not supported: the review egress proxy refuses private networks by design.\n\nYou do not need Node, pnpm or Rust on the host to run OpenCodeReview. Every AI CLI ships in the image at a pinned, checksum-verified version.\n\n### Rootless Podman on Linux\n\nTested with Podman 5.8.9 and **podman-compose 1.6.0**, with cgroup v2, Netavark and\naardvark-dns. Use these versions or newer; older versions are not validated.\nThe native provider needs version 1.6.0 or newer for `service:` build contexts.\nPodman on macOS and Windows is not supported.\n\nInstall podman-compose 1.6.0 or newer with your distribution package manager, or\nrun `pipx install podman-compose==1.6.0`. Select it explicitly: `podman compose`\nmay otherwise prefer Docker Compose even when podman-compose is installed:\n\n```bash\npodman-compose --version\nexport PODMAN_COMPOSE_PROVIDER=\"$(command -v podman-compose)\"\npodman compose up --build\n```\n\nRun the complete build, not just `build review-runner`: the server image must exist\nbefore its runner context can be resolved. Keep the provider selected for later\n`podman compose stop`, `start`, `restart` and `down` commands. Named volumes preserve\ndata across restarts; `down -v` deletes that data.\n\nThis native provider does not require the Podman API socket. The Docker Compose\nprovider needs `systemctl --user start podman.socket`, but starting the socket\nalone does not fix its additional-context build failure on Podman. Keep Netavark\nDNS enabled for the internal database and runner networks. The shared Compose file\nlabels its initialization bind mount for SELinux; do not disable SELinux or relax\nrunner isolation to work around startup failures.\n\n## Configuration\n\nEverything else is configured in the app under **Settings** (providers, repository access, PR selection, integrations). Compose reads these variables from your shell or from a `.env` file next to `docker-compose.yml`:\n\n| Variable | Default | Purpose |\n| --- | --- | --- |\n| `OCR_GH_HOST` | empty (`github.com`) | GitHub Enterprise host, as a bare `host` or `host:port`. |\n| `OCR_WEB_APP_URL` | `http:\u002F\u002Flocalhost:1421` | The origin the UI is served from. Requests from other origins are rejected; change it when you open the UI from another address. |\n| `OCR_REVIEW_RUNNERS` | `20` | Review runner containers; idle ones use almost no memory. |\n| `OCR_VERSION` | `latest` | Image tag used with `docker-compose.images.yml`, for example `0.1.0`. |\n| `OCR_REVIEW_DEBUG_DIR` | empty | Path inside the server container (for example `\u002Fdata\u002Freview-debug`) where private review debug artifacts, which contain pull request code, are written. Leave empty in normal use. |\n\nFor example, with GitHub Enterprise:\n\n```bash\nOCR_GH_HOST=github.example.com docker compose up --build\n```\n\n## How it works\n\n```text\nbrowser ──> web (nginx, :1421) ──\u002Fapi──> server (Rust API, 127.0.0.1:8787)\n                                            │  Git cache, gh CLI ──> postgres\n                                            │  private IPC\n                                            v\n                              review-runner × 20 ──> review-egress ──> AI provider\n```\n\n| Service | Role |\n| --- | --- |\n| `web` | Serves the React UI and proxies `\u002Fapi` to `server`. |\n| `server` | Rust HTTP API: GitHub polling through the `gh` CLI, indexing, review orchestration, publication and background jobs. |\n| `review-runner` | Runs Claude Code or Codex on a frozen snapshot of the pull request, one review stage per container at a time. 20 replicas by default (`OCR_REVIEW_RUNNERS`); idle ones use almost no memory. Each receives only a private socket and a read-only copy of the sign-in. |\n| `review-egress` | Outbound proxy that allows only `api.anthropic.com`, `chatgpt.com`, `api.openai.com` and `auth.openai.com`, on port 443 and public addresses only. |\n\nA review fetches the live base and head of the pull request, selects the scope (full, incremental, base sync or stacked), builds context from the index, freezes the evidence into an archive, runs the AI in a runner (split into chunks for large PRs), validates the report and publishes it. On GitHub, OpenCodeReview posts a collapsed summary comment that it updates on each push, a result comment that replaces the previous one, and the validated findings as a single non-blocking review with inline comments. It never approves a pull request on its own.\n\n## Security and privacy\n\n- **Your code goes only to your AI provider.** The pull request evidence is sent to Anthropic or OpenAI with your own sign-in, the same way their CLIs work when you use them directly. OpenCodeReview has no servers and sends no telemetry.\n- **Sign-ins stay local.** GitHub credentials, AI sign-ins and keys are stored in the `ocr-data` Docker volume (AI sign-ins and keys with file mode `0600`). They are never logged or sent to the browser. **Sign out** (GitHub, in Integrations) and **Remove account** (AI accounts, in Providers) delete them.\n- **Runners are sandboxed.** Read-only root filesystem, no Linux capabilities beyond what supervision needs, an unprivileged user for the AI process, no access to the database or repository cache, and provider-only network access.\n- **The UI is meant for a trusted network.** The API is protected by an installation token that the web container injects into the UI, so anyone who can open the UI can use it. Compose publishes port 1421 on every network interface of the host, and Docker's port rules bypass host firewalls such as ufw. On a shared network or a VPS, change the mapping to `127.0.0.1:1421:1421` and reach it through an SSH tunnel, or put an authenticated reverse proxy in front.\n\nTo report a vulnerability, see [SECURITY.md](SECURITY.md).\n\n## Development\n\n```bash\npnpm install\npnpm debug:web        # Vite on :1421 against the Docker backend\npnpm typecheck\npnpm test\npnpm build\ncargo test --workspace --locked\n```\n\nSee [CONTRIBUTING.md](CONTRIBUTING.md) for the full setup and checks.\n\n## Contributing\n\nContributions are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) before opening a pull request, and follow the [Code of Conduct](CODE_OF_CONDUCT.md). Changes are tracked in [CHANGELOG.md](CHANGELOG.md).\n\n## License and attribution\n\nCopyright 2026 BRIDG LABS LTDA.\n\nLicensed under the [PolyForm Small Business License 1.0.0](LICENSE). Individuals and companies with fewer than 100 people (employees and contractors) and less than USD 1,000,000 in revenue in the prior tax year (2019 dollars, adjusted for inflation) may use, modify and distribute it for free. Larger companies, counted together with the organizations they control or are controlled by, need a separate commercial license from the copyright owner. Personal, non-commercial use and use by non-profit organizations are also free, whatever their size, as [NOTICE](NOTICE) states. For a commercial license, or help rolling it out across a company, contact [contato@bridglabs.com](mailto:contato@bridglabs.com).\n\nSee [NOTICE](NOTICE) for attribution and third-party notices.\n\nOpenCodeReview is an independent source-available project and is not affiliated with, endorsed by, or sponsored by Anthropic or OpenAI. Their product names are used only to describe compatibility.\n","OpenCodeReview 是一个开源的本地化 AI 代码审查工具，专为 GitHub Pull Request 设计。它在用户自有机器上运行，支持接入已订阅的 Claude Code 或 OpenAI Codex 账户，通过隔离容器执行审查，确保代码不上传至第三方服务；具备仓库本地索引、多账号故障转移、审查技能可配置、证据锚定（每条发现均引用具体变更行）、增量审查与堆叠 PR 支持等核心能力。适用于注重数据隐私、需复用现有 AI 订阅、且希望将 AI 审查深度集成到 GitHub 工作流中的中小型开发团队或个人开发者。",2,"2026-11-24 04:34:47","CREATED_QUERY"]