# Codra Documentation

> Learn how to self-host, configure, operate, and extend Codra, an open-source pull request review engine supporting Cloudflare Workers, Node.js 24, and Docker.

Canonical: https://codra.run/docs
Last updated: 2026-11-01

<Link to="/docs/installation" className="group flex flex-col gap-3 p-5 rounded-lg border border-border/50 hover:bg-secondary/20 transition-colors">
    <Workflow size={20} strokeWidth={2} />
    
      <p className="text-base font-medium text-foreground group-hover:text-primary transition-colors">Installation Guide</p>
      <p className="text-sm text-foreground/70 mt-1">Get up and running in minutes</p>
    
  </Link>
  <Link to="/docs/configuration" className="group flex flex-col gap-3 p-5 rounded-lg border border-border/50 hover:bg-secondary/20 transition-colors">
    <Layers size={20} strokeWidth={2} />
    
      <p className="text-base font-medium text-foreground group-hover:text-primary transition-colors">Configuration</p>
      <p className="text-sm text-foreground/70 mt-1">Repo review config</p>
    
  </Link>
  <Link to="/docs/providers" className="group flex flex-col gap-3 p-5 rounded-lg border border-border/50 hover:bg-secondary/20 transition-colors">
    <Bot size={20} strokeWidth={2} />
    
      <p className="text-base font-medium text-foreground group-hover:text-primary transition-colors">Providers Guide</p>
      <p className="text-sm text-foreground/70 mt-1">Dashboard-managed LLMs</p>
    
  </Link>
  <Link to="/docs/operations" className="group flex flex-col gap-3 p-5 rounded-lg border border-border/50 hover:bg-secondary/20 transition-colors">
    <Workflow size={20} strokeWidth={2} />
    
      <p className="text-base font-medium text-foreground group-hover:text-primary transition-colors">Operations</p>
      <p className="text-sm text-foreground/70 mt-1">Lifecycle, troubleshooting</p>
    
  </Link>

![Codra dashboard showing review jobs and repository activity](https://codra.run/assets/codra-dashboard.png)
_Codra dashboard for monitoring review activity, job status, and repository automation._

<h2 id="why">Why Codra</h2>

Codra is for teams that want code-review automation they can own. Hosted code review products are convenient, but they usually make the review engine, model choices, job history, and operational behavior opaque.

Codra is designed to be completely self-hosted: your GitHub App, your runtime environment (**Cloudflare Workers**, **Node.js 24**, or **Docker**), your PostgreSQL database, your dashboard-managed provider keys, your dashboard access list, and your review settings. Provider keys are encrypted before database storage, custom endpoints are supported, and model routing stays under your control. No vendor lock-in. No usage caps. No black box.

Codra is intentionally focused on pull request review infrastructure: fast webhook intake, queue-based background processing (via Cloudflare Queues or BullMQ + Redis), reproducible job records, per-repository review policy, model fallback and size-based routing, inline review comments, check-run status updates, and dashboard visibility.

<h2 id="features">Features</h2>

  
    <GitPullRequest size={20} strokeWidth={2} />
    
      <h3 className="text-base font-medium text-foreground mb-1">Automatic PR Reviews</h3>
      <p className="text-sm text-foreground/80 leading-relaxed">Triggers on opened, synchronize, ready_for_review, and reopened. Also supports mention-triggered reviews from issue comments.</p>
    
  
  
    <ShieldCheck size={20} strokeWidth={2} />
    
      <h3 className="text-base font-medium text-foreground mb-1">Security-First Analysis</h3>
      <p className="text-sm text-foreground/80 leading-relaxed">Flags credential leaks, injection vectors, insecure deserialization, and logic flaws that pattern matchers miss.</p>
    
  
  
    <Bot size={20} strokeWidth={2} />
    
      <h3 className="text-base font-medium text-foreground mb-1">Model Routing</h3>
      <p className="text-sm text-foreground/80 leading-relaxed">Routes through DB-backed Codra model IDs mapped to provider model names, with fallbacks and size-based overrides.</p>
    
  
  
    <Layers size={20} strokeWidth={2} />
    
      <h3 className="text-base font-medium text-foreground mb-1">Queue-Backed Processing</h3>
      <p className="text-sm text-foreground/80 leading-relaxed">Webhook intake is decoupled from review execution via Cloudflare Queues or BullMQ + Redis, keeping response times fast.</p>
    
  
  
    <Database size={20} strokeWidth={2} />
    
      <h3 className="text-base font-medium text-foreground mb-1">Full Job History</h3>
      <p className="text-sm text-foreground/80 leading-relaxed">PostgreSQL stores every job, file review, inline comment, and webhook delivery for audit and replay.</p>
    
  
  
    <Code2 size={20} strokeWidth={2} />
    
      <h3 className="text-base font-medium text-foreground mb-1">100% Open Source</h3>
      <p className="text-sm text-foreground/80 leading-relaxed">AGPL-3.0 licensed. Full source on GitHub. Fork it, audit it, extend it. No black boxes.</p>
    
  

  
    <p className="text-base font-medium text-foreground">Ready to deploy?</p>
    <p className="text-sm text-foreground/80 mt-1">Follow the installation guide to get Codra running in under 10 minutes.</p>
  
  [Installation Guide](https://codra.run/docs/installation)
