Documentation
CLI-first AI code review. Catch bugs before you commit.
CLI Reference
Commands, flags, and options
Roadmap
See what's coming next
GitHub App
Install on your repository
Why Use Codecora CLI?
Catch issues before they leave your machine. AI-powered code review between git add and git commit.
Pre-commit Review
Get instant feedback before your code leaves your machine. No more waiting for PR reviews.
Privacy-First
We only read commit diffs. Zero code storage. Your code is processed and discarded immediately.
Generous Free Tier
1M tokens FREE monthly. BYOK included in all tiers. No credit card required.
Works Everywhere
Cross-platform CLI for macOS, Linux, and Windows. Integrates with any Git workflow.
Quick Start
Get started with Codecora CLI in under 2 minutes.
- Install the CLI:
npm install -g @codecora/cli - Authenticate:
cora auth loginThis opens browser authentication via GitHub OAuth.
- Review your changes:
git add . cora reviewGet instant AI feedback on your staged changes.
- Enable automatic review (optional):
cora enableEvery commit will be reviewed automatically via pre-commit hook.
AI Models
Codecora supports multiple AI models for code review:
Powered by Zhipu AI. 1M tokens FREE monthly. No API key needed.
Use OpenAI, Anthropic, Groq, or any OpenAI-compatible API.
Pricing
- ✓ 1,000,000 tokens/month
- ✓ GLM 5 AI included
- ✓ BYOK included
- ✓ CLI + Pre-commit hooks
- ✓ 20,000,000 tokens/month
- ✓ GLM 5 AI included
- ✓ BYOK included
- ✓ Priority processing
- ✓ 100,000,000 tokens shared
- ✓ Up to 5 users
- ✓ GLM 5 + BYOK included
- ✓ Team analytics
💡 BYOK = Unlimited. All tiers include BYOK option. Use your own AI key and bypass token limits.
Privacy & Security
Codecora is designed with privacy as the foundation:
- Diff-only analysis: We only read the commit diffs (changed lines)
- No repo cloning: We never clone your full repository
- Zero code storage: Your code is processed and discarded immediately after review
- Zero retention: We don't train on your code or keep any copies
Your code is sent to our service for processing, then forwarded to your configured AI provider for analysis. Results are returned immediately and your code is never stored.
Output Formats
The CLI supports multiple output formats for different use cases:
- pretty (default): Colored terminal output with file grouping
- json: Structured JSON for CI/CD pipelines and scripting
- compact: Single-line per issue for quick scanning
- sarif: SARIF v2.1.0 for GitHub Advanced Security integration
# Pretty output (default)
cora review
# JSON for CI/CD
cora review --format json --output-file review.json
# SARIF for GitHub Security
cora review --format sarif --output-file results.sarif Need Help?
If you run into any issues or have questions:
- Request features or report bugs at codecora.featurebase.app
- View CLI Documentation
- Install GitHub App