Codecora Logo

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.

  1. Install the CLI:
    npm install -g @codecora/cli

    View on npm →

  2. Authenticate:
    cora auth login

    This opens browser authentication via GitHub OAuth.

  3. Review your changes:
    git add .
    cora review

    Get instant AI feedback on your staged changes.

  4. Enable automatic review (optional):
    cora enable

    Every commit will be reviewed automatically via pre-commit hook.

Read full CLI documentation →

AI Models

Codecora supports multiple AI models for code review:

GLM 5 (Included)
Default

Powered by Zhipu AI. 1M tokens FREE monthly. No API key needed.

BYOK (Bring Your Own Key)

Use OpenAI, Anthropic, Groq, or any OpenAI-compatible API.

Pricing

Early Adopter Pricing • Prices increase May 5, 2026 • Lock in forever
FREE
$0 forever
  • ✓ 1,000,000 tokens/month
  • ✓ GLM 5 AI included
  • ✓ BYOK included
  • ✓ CLI + Pre-commit hooks
Most Popular
PRO
$12 $5 /month
  • ✓ 20,000,000 tokens/month
  • ✓ GLM 5 AI included
  • ✓ BYOK included
  • ✓ Priority processing
TEAM
$50 $20 /month
  • ✓ 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

Learn more about output formats →

Need Help?

If you run into any issues or have questions: