HivePaaS
Docker Swarm 기반 오픈소스 자체 호스팅 PaaS, SSL·백업·자동 확장 지원
Cora Code는 터미널에서 코드를 검토하고 12가지 스캐너·BYOK·클라우드·구독 없이 무료 오픈소스
Cora Code reviews your code in the terminal: 12 deterministic scanners, BYOK, zero cloud, no subscription. Free & open-source from CodeCora.
개발 도구Rust · ShellGitHub @codecoradev온라인운영자 미확인
써 보셨어요? 한 번만 눌러 주세요. 로그인은 필요 없어요.
CLI-first AI code review — BYOK, diff/scan/branch, pre-commit hooks. 100% open source (MIT).
저장소 README에서 가져옴
README 전체를 불러오는 중입니다.
README 전문 보기 ↗AI-Powered Code Review CLI — BYOK
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.
.cora.yaml.cora.yaml, global ~/.cora/config.yaml, or env varsPick 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 |
# Install with the quick installer
curl -fsSL https://raw.githubusercontent.com/codecoradev/cora-code/main/install-bundle.sh | sh
# Or build from source with cargo
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 and, when cosign is installed, its Sigstore signature, 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:
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 for background.
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:
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.
cora auth login
Pick a provider, enter your API key. Done. Provider env vars (ZAI_API_KEY, OPENAI_API_KEY, etc.) are auto-detected.
No key? Still useful.
cora reviewandcora scanrun the deterministic checks (rules, secrets, security) with no LLM configured, and your AI coding agent can do the AI review itself: see Review with your agent.
cora review # staged changes
cora review --base main # vs a branch
cora review --unpushed # unpushed commits
cora commit # review + generate commit msg + commit
cora commit --yolo # auto-commit, no prompts
cora init # creates .cora.yaml + installs pre-commit hook
Priority: CLI flags → env vars → .cora.yaml (project) → ~/.cora/config.yaml (global) → defaults
# .cora.yaml
provider: zai
model: glm-5.1
focus: [security, bugs]
# Quality gate — enforce code quality in CI
quality_gate:
enabled: true
thresholds:
max_critical: 0 # 0 critical = gate FAIL
max_security: 0 # 0 security findings = gate FAIL
categories:
performance:
action: warn # warn only, don't fail CI
max_findings: 5
cora config show # effective merged config
cora config show --global # ~/.cora/config.yaml
cora config show --project # .cora.yaml
| File | Purpose |
|---|---|
~/.cora/auth.toml | API key (secret, chmod 600) |
~/.cora/config.yaml | Global defaults (provider, model, etc.) |
.cora.yaml | Per-project overrides |
See Configuration → for full reference.
# .github/workflows/cora-review.yml
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 →
| Command | Description |
|---|---|
cora review | Review code changes (diff, branch, commit, file) |
cora scan | Scan files for issues |
cora commit | Review + generate commit message + commit |
cora debt | Show tech debt report from review history |
cora findings | Track, dismiss, and reopen review/scan findings |
| Command | Description |
|---|---|
cora index | Index project symbols, vectors, and call graph |
cora explore | Search symbols by keyword (FTS5) |
cora brain | Hybrid semantic search (FTS5 + vectors + graph → RRF) |
cora trace | Trace call chains through the codebase |
cora arch | Architecture overview (modules, edges, hotspots) |
cora callers | Find all callers of a symbol |
cora impact | Analyze blast radius of changing a symbol |
cora affected | Find tests impacted by changed files |
cora dead-code | Detect dead code — functions with zero callers |
cora query | Query the code graph (e.g. "main -> *") |
cora routes | List detected HTTP routes (Axum, Actix, Express, FastAPI, Flask, Go) |
| 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 (22 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.
Benchmarked on the cora-code repository (1,864 symbols, 115 Rust files, x86_64, single-thread baseline → Rayon parallel).
| Operation | Time | Notes |
|---|---|---|
| Cold index (full rebuild) | ~936ms | Walk + parse + embed + HNSW insert (Rayon parallel) |
| Incremental (no changes) | ~6ms | mtime:size fingerprint — skips unchanged files |
| Brain search (hybrid) | ~5ms | FTS5 + vector KNN + graph BFS → RRF fusion |
| Binary size | 10.4 MB | Single static binary, zero runtime dependencies |
Measurements are indicative, not contractual. Your numbers will vary with codebase size, CPU cores, and disk I/O.
| 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
| Page | Description |
|---|---|
| Getting Started | Install, auth, first review |
| Configuration | Config files, env vars, priority |
| CLI Reference | All commands and flags |
| Providers | Supported LLM providers |
| Examples | Common workflows & CI setup |
| Changelog | Release history |
| Roadmap | Planned features |
See CONTRIBUTING.md for guidelines. PRs welcome!