Skip to main content
Ollama is experimental. Review quality is significantly lower than Claude or GPT-4o. Use only if your environment cannot make external API calls.
Ollama lets you run open-source models locally. This provider is designed for air-gapped environments where no external API access is possible.

When to use Ollama

  • Your network has no outbound internet access
  • Security policy prohibits sending code to external LLM APIs
  • You want to evaluate MergeWatch without any API keys

Configuration

Set these environment variables in your .env file or container environment:

Picking a model

You must set LLM_MODEL to a model tag that you’ve pulled into your Ollama server. There is no built-in default. Suggested starting points:

Setup

Pull the model before starting MergeWatch — MergeWatch will not pull it for you:
Verify the model is available:

Docker Compose setup

Run Ollama as a sidecar alongside MergeWatch:
docker-compose.yml
After starting the stack for the first time, exec into the Ollama container to pull the model:

Hardware requirements

Larger models like qwen2.5-coder:14b produce better reviews but require 16 GB VRAM. If you have the hardware, set LLM_MODEL=qwen2.5-coder:14b for improved quality.

Next steps

Air-gapped deployment

Full guide for deploying MergeWatch without internet access.

Anthropic (direct)

The recommended provider for the best review quality.

Configure review behavior

Tune sensitivity, ignored paths, and review focus areas.

Environment variables

Full list of supported environment variables.