Skip to main content
Self-hosting MergeWatch means running the application on your own infrastructure using Docker. Your code, diffs, and review results never leave your servers. MergeWatch (the company) has zero access to your data.

What you get

  • Docker container + PostgreSQL — runs on any cloud, any VM, or bare metal
  • No AWS required — unless you choose Amazon Bedrock as your LLM provider
  • You control the LLM — pick the provider that fits your needs
  • Always free — no MergeWatch billing, you pay your LLM provider directly

LLM providers

You choose which LLM powers your reviews by setting the LLM_PROVIDER environment variable:

Architecture

The Docker image (ghcr.io/mergewatch/mergewatch:latest) runs an Express server that:
  1. Receives GitHub webhooks on /webhook (port 3000)
  2. Validates the HMAC-SHA256 signature
  3. Fetches the PR diff from GitHub
  4. Runs eight review agents in parallel against your chosen LLM
  5. Posts review comments and a Check Run back to the PR
  6. Stores the review record in PostgreSQL
PostgreSQL runs as a sidecar container managed by Docker Compose. Database migrations run automatically on container startup.

Self-hosted vs Managed SaaS

Next steps

Prerequisites

Docker and GitHub requirements before you start.

Install

Step-by-step install with Docker Compose.

LLM Providers

Configure Anthropic, LiteLLM, Bedrock, or Ollama.