# CodeOtter

> Self-hosted, open-source AI pull request reviewer that scores every PR with calibrated rubrics and binary merge gates, with optional fully offline models.

CodeOtter is an open-source (AGPL-3.0), self-hosted AI code review platform maintained by dharmeshgurnani. It reviews pull requests with a dual-engine approach: a System 1 model produces typed scores and merge-gate verdicts, while a System 2 language model writes the narrative review. The latest release listed on GitHub is v0.10.0.

## What It Is

CodeOtter hosts the PR review workflow on your own infrastructure. For each pull request it produces six calibrated 0–100 scores (Quality, Blast Radius, Risk, Tests, Readability, PR Hygiene) and nine binary merge gates (Title, Description, Security, Complexity, Tests, Docs, Scope, Guidelines, Issue Requirements). It also provides LLM walkthroughs with file-by-file summaries and hunk-level findings, plus inline committable suggestions.

## How the Dual-Engine Review Works

System 1 is a small classifier that returns strict JSON over a fixed rubric, so scores and gates come from typed answers rather than numbers guessed by a chat model. System 2 is the narrative engine and is bring-your-own: Claude, OpenAI, MiniMax, OpenRouter, a local Ollama, or any OpenAI-compatible endpoint. The platform also auto-detects AGENTS.md and CLAUDE.md in a repository and enforces them as review guidelines. Further documented features include PR commands (/review, /describe, /improve, /ask, /docs, /changelog), incremental commit-by-commit reviews, and team learnings.

## Offline and Self-Hosted Deployment

Local models run as on-demand sidecars: Laya and Kev for System 1, and Qwen2.5-Coder GGUF via llama-server or Microsoft CodeReviewer for System 2. With these, no diff goes to an AI provider, and the project states it ships zero telemetry apart from an optional update check that can be disabled. The sidecars are downloaded on first use and must be pre-staged for air-gapped installs. Deployment options include one-click Azure, Render, and Railway, a Docker install script on Linux, or a local Node 22+ and pnpm setup.

## Git Providers and Tooling

Supported providers are GitHub, Bitbucket Cloud and Data Center, Azure DevOps, Forgejo, and Gitea. The project also lists a CLI, terminal UI, MCP server, fast triage in CI, and accounts with roles and invites.

## Features
- Six calibrated 0–100 PR scores
- Nine binary merge gates
- LLM walkthroughs and hunk-level findings
- Blast radius analysis
- AGENTS.md and CLAUDE.md auto-detection and enforcement
- Inline committable suggestions
- Incremental commit-by-commit reviews
- PR commands (/review, /describe, /improve, /ask, /docs, /changelog)
- Bring-your-own-key LLM providers
- Fully offline local GGUF and CodeReviewer sidecars
- Multi-repo org dashboards with roles
- CLI, TUI and MCP server
- Zero telemetry by design

## Integrations
GitHub, Bitbucket, Azure DevOps, Forgejo, Gitea, Claude, OpenAI, MiniMax, OpenRouter, Ollama, llama.cpp, Hugging Face, Docker, Azure, Render, Railway

## Platforms
WINDOWS, LINUX, WEB, API, VSC_EXTENSION, CLI

## Pricing
Open Source

## Version
v0.10.0

## Links
- Website: https://codeotter.io
- Documentation: https://docs.codeotter.io/docs
- Repository: https://github.com/dharmeshgurnani/CodeOtter
- EveryDev.ai: https://www.everydev.ai/tools/codeotter
