Featured

Deploy OpenClaw in 60 seconds β€” 20% off logoDeploy OpenClaw in 60 seconds β€” 20% off

Launch OpenClaw on Hostinger in about 60 seconds and keep your agent live 24/7. Our referral link gives you 20% off, no coupon code needed.

Launch on Hostinger β†’
Run your Hermes agent on Hostinger, fully managed logoRun your Hermes agent on Hostinger, fully managed

Launch Hermes on Hostinger in one click, fully managed, no VPS knowledge needed. Use code ZACAARON10 for 10% off.

Launch on Hostinger β†’
Crawl and scrape any site into clean data, 10% off logoCrawl and scrape any site into clean data, 10% off

Firecrawl crawls and scrapes any site into clean markdown for your agent. Get 1,000 free credits, and new users get 10% off their first purchase.

Try Firecrawl free β†’
Your own AI agent, running 24/7 with QwikClaw logoYour own AI agent, running 24/7 with QwikClaw

QwikClaw sets up and runs an always-on OpenClaw agent for you. One click, no config files, no server setup.

Deploy now β†’
One API to scrape, enrich, and extract the internet. logoOne API to scrape, enrich, and extract the internet.

Context.dev gives your agents a single API to scrape, enrich, and extract live web data β€” no proxies, no parsers, no maintenance.

Start building free β†’
SetupClaw: done-for-you OpenClaw for founders & exec teams logoSetupClaw: done-for-you OpenClaw for founders & exec teams

White-glove OpenClaw for founders and exec teams (4–50+ employees): we install, harden, integrate your tools, and maintain it β€” secured from day one.

Get it set up for you β†’
SEO data APIs for your agent, $1 free credit logoSEO data APIs for your agent, $1 free credit

DataForSEO gives your agent live access to SERP results, keyword data, backlinks, and on-page SEO data through one API. New accounts get a $1 credit, good for up to 20,000 keyword or backlink lookups.

Try DataForSEO free β†’
Reach 47,000+ AI builders

A flat monthly placement in front of developers actively installing AI tools. No lock-in, cancel anytime.

Advertise here β†’

Works with

Claude CodeClaude DesktopCursorVS CodeClineCodex CLIOpenClaw+ any MCP client

Install to Claude Code

This server doesn't publish a one-line install command. Follow the setup in the source repository.

Summary

Open Code Review MCP](https://glama.ai/mcp/servers/@raye-deng/open-code-review/badges/score.svg)](https://glama.ai/mcp/servers/raye-deng/open-code-review) 🏠 πŸ“‡ ☁️ - AI code quality gate detecting hallucinated packages, phantom dependencies, stale APIs,...

README.md

Open Code Review

The first open-source CI/CD quality gate built specifically for AI-generated code. Detects hallucinated imports, stale APIs, over-engineering, and security anti-patterns β€” powered by local LLMs and any OpenAI-compatible provider. Free. Self-hostable. 6 languages.

!Open Code Review

![npm version](https://www.npmjs.com/package/@opencodereview/cli) ![npm version](https://www.npmjs.com/package/@opencodereview/mcp-server) ![npm downloads](https://www.npmjs.com/package/@opencodereview/cli) ![License: BUSL-1.1](LICENSE) ![CI](https://github.com/raye-deng/open-code-review/actions/workflows/ci.yml) ![GitHub Stars](https://github.com/raye-deng/open-code-review) ![PRs Welcome](http://makeapullrequest.com)

Works With

!Cursor !GitHub Copilot !Claude Code !Windsurf !Codex !Augment Code !Supermaven !Aider

Any AI tool that generates code β€” if it writes it, OCR reviews it.

What AI Linters Miss

AI coding assistants (Copilot, Cursor, Claude) generate code with defects that traditional tools miss entirely:

| Defect | Example | ESLint / SonarQube | |--------|---------|-------------------| | Hallucinated imports | import { x } from 'non-existent-pkg' | ❌ Miss | | Stale APIs | Using deprecated APIs from training data | ❌ Miss | | Context window artifacts | Logic contradictions across files | ❌ Miss | | Over-engineered patterns | Unnecessary abstractions, dead code | ❌ Miss | | Security anti-patterns | Hardcoded example secrets, eval() | ❌ Partial |

Open Code Review detects all of them β€” across 6 languages, for free.

Demo

!L2 HTML Report Screenshot

πŸ“„ View full interactive HTML report

Quick Preview

$ ocr scan src/ --sla L3

╔══════════════════════════════════════════════════════════════╗
β•‘           Open Code Review β€” Deep Scan Report               β•‘
β•šβ•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•β•

  Project: packages/core/src
  SLA: L3 Deep β€” Structural + Embedding + LLM Analysis

  112 issues found in 110 files

  Overall Score: 67/100  D
  Threshold: 70  |  Status: FAILED
  Files Scanned: 110  |  Languages: typescript  |  Duration: 12.3s

Deep Scan (L3) β€” How It Works

L3 combines three analysis layers for maximum coverage:

Layer 1: Structural Detection         Layer 2: Semantic Analysis        Layer 3: LLM Deep Scan
β”œβ”€β”€ Hallucinated imports (npm/PyPI)   β”œβ”€β”€ Embedding similarity recall   β”œβ”€β”€ Cross-file coherence check
β”œβ”€β”€ Stale API detection               β”œβ”€β”€ Risk scoring                  β”œβ”€β”€ Logic bug detection
β”œβ”€β”€ Security patterns                 β”œβ”€β”€ Context window artifacts      β”œβ”€β”€ Confidence scoring
β”œβ”€β”€ Over-engineering metrics          └── Enhanced severity ranking     └── AI-powered fix suggestions
└── A+ β†’ F quality scoring

Powered by local LLMs or any OpenAI-compatible API. Run Ollama for 100% local analysis, or connect to any remote LLM provider β€” the interface is the same.

# Local analysis (Ollama)
ocr scan src/ --sla L3 --provider ollama --model qwen3-coder

# Any OpenAI-compatible provider
ocr scan src/ --sla L3 --provider openai-compatible \
  --api-base https://your-llm-endpoint/v1 --model your-model --api-key YOUR_KEY

AI Auto-Fix β€” ocr heal

Let AI automatically fix the issues it finds. Review changes before applying.

# Preview fixes without changing files
ocr heal src/ --dry-run

# Apply fixes + generate IDE rules
ocr heal src/ --provider ollama --model qwen3-coder --setup-ide

# Only generate IDE rules (Cursor, Copilot, Augment)
ocr setup src/

Multi-Language Detection

Language-specific detectors for 6 languages, plus hallucinated package databases (npm, PyPI, Maven, Go modules):

| Language | Specific Detectors | |----------|-------------------| | TypeScript / JavaScript | Hallucinated imports (npm), stale APIs, over-engineering | | Python | Bare except, eval(), mutable default args, hallucinated imports (PyPI) | | Java | System.out.println leaks, deprecated Date/Calendar, hallucinated imports (Maven) | | Go | Unhandled errors, deprecated ioutil, panic in library code | | Kotlin | !! abuse, println leaks, null-safety anti-patterns |

How It Compares

| | Open Code Review | Claude Code Review | CodeRabbit | GitHub Copilot | |---|---|---|---|---| | Price | Free | $15–25/PR | $24/mo/seat | $10–39/mo | | Open Source | βœ… | ❌ | ❌ | ❌ | | Self-hosted | βœ… | ❌ | Enterprise | ❌ | | AI Hallucination Detection | βœ… | ❌ | ❌ | ❌ | | Stale API Detection | βœ… | ❌ | ❌ | ❌ | | Deep LLM Analysis | βœ… | ❌ | ❌ | ❌ | | AI Auto-Fix | βœ… | ❌ | ❌ | ❌ | | Multi-Language | βœ… 6 langs | ❌ | JS/TS | JS/TS | | Registry Verification | βœ… npm/PyPI/Maven | ❌ | ❌ | ❌ | | Unicode Security Detection | βœ… | ❌ | ❌ | ❌ | | SARIF Output | βœ… | ❌ | ❌ | ❌ | | GitHub + GitLab | βœ… Both | GitHub only | Both | GitHub only | | Data Privacy | βœ… 100% local | ❌ Cloud | ❌ Cloud | ❌ Cloud |

Quick Start

# Install
npm install -g @opencodereview/cli

# Fast scan β€” no AI needed
ocr scan src/

# Deep scan β€” with local LLM (Ollama)
ocr scan src/ --sla L3 --provider ollama --model qwen3-coder

# Deep scan β€” with any OpenAI-compatible provider
ocr scan src/ --sla L3 --provider openai-compatible \
  --api-base https://your-provider/v1 --model your-model --api-key YOUR_KEY

CI/CD Integration

GitHub Actions (30 seconds)

name: Code Review
on: [pull_request]

jobs:
  review:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: raye-deng/open-code-review@v1
        with:
          sla: L1
          threshold: 60
          github-token: ${{ secrets.GITHUB_TOKEN }}

GitLab CI

code-review:
  script:
    - npx @opencodereview/cli scan src/ --sla L1 --threshold 60 --format json --output ocr-report.json
  artifacts:
    reports:
      codequality: ocr-report.json

Output Formats

ocr scan src/ --format terminal    # Pretty terminal output
ocr scan src/ --format json        # JSON for CI pipelines
ocr scan src/ --format sarif       # SARIF for GitHub Code Scanning
ocr scan src/ --format html        # Interactive HTML report

Configuration

# .ocrrc.yml
sla: L3
ai:
  embedding:
    provider: ollama
    model: nomic-embed-text
    baseUrl: http://localhost:11434
  llm:
    provider: ollama
    model: qwen3-coder
    endpoint: http://localhost:11434

  # Or use any OpenAI-compatible provider:
  # provider: openai-compatible
  # apiBase: https://your-llm-endpoint/v1
  # model: your-model

MCP Server β€” Use in Claude Desktop, Cursor, Windsurf

Integrate Open Code Review directly into your AI IDE via the Model Context Protocol:

npx @opencodereview/mcp-server

Claude Desktop (claude_desktop_config.json): ``json { "mcpServers": { "open-code-review": { "command": "npx", "args": ["-y", "@opencodereview/mcp-server"] } } } ``

Cursor / Windsurf / VS Code Copilot: Add the same configuration in your MCP settings.

Available MCP Tools: ocr_scan (quality gate scan), ocr_heal (AI auto-fix), ocr_explain (issue explanation).

πŸ’‘ Chrome DevTools MCP Compatible: The OCR MCP Server follows the standard Model Context Protocol. Pair it with Google's Chrome DevTools MCP Server for a complete AI-native dev workflow β€” one inspects your running app, the other inspects your source code.

Project Structure

packages/
  core/              # Detection engine + scoring (@opencodereview/core)
  cli/               # CLI tool β€” ocr command (@opencodereview/cli)
  mcp-server/        # MCP Server for AI IDEs (@opencodereview/mcp-server)
  github-action/     # GitHub Action wrapper

Who Is This For?

  • Teams using AI coding assistants β€” Copilot, Cursor, Claude Code, Codex, or any LLM-based tool that generates production code
  • Open-source maintainers β€” Review AI-generated PRs for hallucinated imports, stale APIs, and security anti-patterns before merging
  • DevOps / Platform engineers β€” Add a quality gate to CI/CD pipelines without sending code to cloud services
  • Security-conscious teams β€” Run everything locally (Ollama), keep your code on your machines
  • Solo developers β€” Free, fast, and works with zero configuration (npx @opencodereview/cli scan src/)

Featured On

<a href="https://www.producthunt.com/products/open-code-review"><img src="https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=XXXXX&theme=dark&period=daily" alt="Product Hunt" width="250" /></a>

License

BSL-1.1 β€” Free for personal and non-commercial use. Converts to Apache 2.0 on 2030-03-11. Commercial use requires a Team or Enterprise license.

---

Star this repo if you find it useful β€” it helps more than you think!

See related servers & alternatives β†’

Related MCP servers

Browse all β†’

Related guides

Hand-picked reading to help you choose and use Developer Tools servers.