Nirik

Self-hosted AI Code Reviewer

Ship cleaner PRs and MRs at team scale.

Nirik listens to GitHub and GitLab webhooks, reviews changed lines with Gemini or OpenAI, then posts actionable review comments right in your workflow.

Yes, it reviews code faster than "I'll check this after lunch."

One webhook endpoint

Use one URL for GitHub pull requests and GitLab merge requests.

Full context, comments on added lines

Sends full hunks (context, removed, and added lines) to the AI for accurate reviews, posts comments only on added lines. Skips noisy files like lockfiles and minified bundles. Default: summary and errors only—info/suggestions when your rules ask for them.

Runs async with queue workers

Webhook responds quickly while review runs in the background.

Simple self-hosting path

  1. Clone, configure .env, and add API tokens.
  2. Run with Docker Compose or Node + Redis.
  3. Point GitHub or GitLab webhook to /api/v1/webhooks/review-pr.

Need full setup details?

Open the docs page for full environment variables, webhook setup, metrics auth, and production hosting steps.

Includes enough detail to survive onboarding, incidents, and that one teammate who never reads comments.

Open Documentation