代码审查工具 是 AI Skill Hub 本期精选AI工具之一。综合评分 8.0 分,整体质量较高。我们强烈推荐将其纳入你的 AI 工具库,帮助提升工作效率。
代码审查工具 是一款基于 Rust 开发的开源工具,专注于 ai、code-analysis、code-quality 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
代码审查工具 是一款基于 Rust 开发的开源工具,专注于 ai、code-analysis、code-quality 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。
# 方式一:cargo install(推荐) cargo install cora-cli # 方式二:从源码编译 git clone https://github.com/codecoradev/cora-cli cd cora-cli cargo build --release # 二进制在 ./target/release/cora-cli
# 查看帮助 cora-cli --help # 基本运行 cora-cli [options] <input> # 详细使用说明请查阅文档 # https://github.com/codecoradev/cora-cli
# cora-cli 配置说明 # 查看配置选项 cora-cli --config-example > config.yml # 常见配置项 # output_dir: ./output # log_level: info # workers: 4 # 环境变量(覆盖配置文件) export CORA_CLI_CONFIG="/path/to/config.yml"
<img src="assets/logo.png" alt="CodeCora" width="120" />
AI-Powered Code Review CLI — BYOK
</div>
---
Cora is a fast, native CLI for AI-powered code review and code intelligence — in your terminal, CI/CD, git hooks, or directly inside AI coding agents. Bring your own key, pick any model, index your codebase, and search semantically. All local, zero cloud.
Pick one install method — mixing channels can leave stale binaries on your PATH.
| Method | When to use |
|---|---|
**curl … install.sh** (recommended) | Quick standalone install; fetches the latest GitHub release binary |
**cargo install --git …** | You already have a Rust toolchain; builds from source |
| **Pre-built binaries** | Manual download from [Releases](https://github.com/codecoradev/cora-code/releases) |
```bash
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install-bundle.sh | sh
cargo install --git https://github.com/codecoradev/cora-code
> Pin a version: `CORA_VERSION=v0.6.1 curl -fsSL ... | sh`
**Upgrading:** run `cora upgrade` (downloads the latest release, verifies its SHA-256 checksum, replaces the binary) or `cora upgrade --check` to just see if one is available. If you installed via `cargo install --path .`, re-run that instead.
**Verify which `cora` you're running** — `which -a cora` will reveal stale copies from other channels:
bash which -a cora # list every cora on your PATH (one entry = healthy) cora --version # should match the latest release
If `which -a cora` shows more than one path (e.g. `~/.local/bin/cora` and `~/.cargo/bin/cora`), remove the one you don't want or reorder your `PATH`. See [Issue #314](https://github.com/codecoradev/cora-code/issues/314) for background.
<details>
<summary><b>macOS note — binary killed on launch (<code>Killed: 9</code>)?</b></summary>
The prebuilt `aarch64-apple-darwin` binary is not Apple-notarized. On macOS, downloaded
binaries may be tagged with `com.apple.quarantine` / `com.apple.provenance` and killed by
Gatekeeper with **no error message**.
The `install.sh` installer strips these attributes automatically. If you downloaded the
binary manually (e.g. `gh release download`), strip them yourself:
bash xattr -dr com.apple.quarantine /path/to/cora xattr -dr com.apple.provenance /path/to/cora ```
Or install via cargo / Homebrew to sidestep Gatekeeper entirely.
</details>
| Command | Description |
|---|---|
cora init | Create project config + hook |
cora auth login | Save API key |
cora config show | Show resolved config |
cora config validate | Validate configuration |
cora providers | List available LLM providers |
cora profile list | List quality profiles (strict, balanced, lax) |
cora mcp | Start MCP server (18 tools) for AI coding agents |
cora serve | Start MCP server + auto-reindex on startup |
cora install | Auto-detect and configure AI coding agents |
cora hook install | Install pre-commit hook |
cora upgrade | Self-upgrade from GitHub Releases (checksum-verified) |
See CLI Reference → for all flags and examples.
cora init # creates .cora.yaml + installs pre-commit hook
Priority: CLI flags → env vars → .cora.yaml (project) → ~/.cora/config.yaml (global) → defaults
```yaml
| Variable | Description |
|---|---|
CORA_API_KEY | API key (CI use) |
CORA_PROVIDER | Override provider |
CORA_MODEL | Override model |
CORA_BASE_URL | Override API base URL |
Provider-specific keys are auto-detected: OPENAI_API_KEY, ANTHROPIC_API_KEY, GROQ_API_KEY, ZAI_API_KEY
on: pull_request jobs: review: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: { fetch-depth: 0 } - uses: codecoradev/cora-review-action@v1 with: github-token: ${{ secrets.GITHUB_TOKEN }} cora-api-key: ${{ secrets.CORA_API_KEY }} ```
Required secrets: CORA_API_KEY, CORA_BASE_URL (optional), CORA_MODEL (optional)
See GitHub Marketplace for full documentation.
Works on all CI platforms — Gitea, GitLab, Bitbucket →
高质量的代码审查工具,支持多种功能
AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。
建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。
✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。
经综合评估,代码审查工具 在AI工具赛道中表现稳健,质量优秀。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。
| 原始名称 | cora-cli |
| 原始描述 | 开源AI工具:CLI-first AI code review — BYOK, diff/scan/branch, pre-commit hooks. 100% open s。⭐9 · Rust |
| Topics | aicode-analysiscode-qualitycli |
| GitHub | https://github.com/codecoradev/cora-cli |
| License | MIT |
| 语言 | Rust |
收录时间:2026-06-14 · 更新时间:2026-06-16 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。