Skip to main content
Anthropic is the default and recommended LLM provider for MergeWatch. It offers the simplest setup — just add your API key and you are ready to go. Works on every platform (Docker, AWS, GCP, bare metal).

Configuration

Set these environment variables in your .env file or container environment:
VariableRequiredValue
LLM_PROVIDERYesanthropic
ANTHROPIC_API_KEYYesYour Anthropic API key
LLM_MODELNoOverride the default model

Default model

MergeWatch uses claude-3-5-haiku-20241022 by default. This model provides an excellent balance of speed, quality, and cost for code review tasks.

Model override

To use a higher-capability model, set LLM_MODEL in your environment:
LLM_MODEL=claude-3-5-sonnet-20241022
Sonnet produces more detailed reviews and catches subtler issues, at a higher per-token cost.

Example .env file

# LLM Provider
LLM_PROVIDER=anthropic
ANTHROPIC_API_KEY=sk-ant-api03-...

# Optional: override the default model
# LLM_MODEL=claude-3-5-sonnet-20241022

Pricing

You pay Anthropic directly for API usage. MergeWatch does not add any markup or proxy fees. See the Anthropic pricing page for current per-token rates.
Claude 3.5 Haiku is one of the most cost-effective models for code review. Most repositories see costs under $5/month with typical PR volumes.

Next steps