Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/goulinkh/code-review-harness/llms.txt

Use this file to discover all available pages before exploring further.

You control which LLM backs the code review session with the --model flag. CRH uses a provider:model-id format so you can switch between Anthropic, OpenAI, Kimi, OpenRouter, or any OpenAI-compatible endpoint without changing anything else in your workflow.

Format

--model <provider>:<model-id>
The provider segment determines which API client and key environment variable CRH uses. The model-id segment is passed directly to that provider’s API. Default: anthropic:claude-sonnet-4-6

API key environment variables

CRH reads the API key from an environment variable whose name matches the provider prefix in upper-case, followed by _API_KEY. For example:
Provider prefixExpected env var
anthropicANTHROPIC_API_KEY
openaiOPENAI_API_KEY
kimi-codingKIMI_API_KEY
openrouterOPENROUTER_API_KEY
Set the appropriate environment variable before running crh review. CRH does not prompt for credentials interactively.

Examples

OpenAI-compatible server with a custom base URL

Use --model-base-url to point any OpenAI-compatible provider or local inference server at a custom endpoint. The --model value must be an OpenAI-compatible model when you supply --model-base-url.
OPENAI_API_KEY="$YOUR_KEY" crh review \
  --provider launchpad \
  --pr "$MP_URL" \
  --sink stdout \
  --model openai:gpt-5.4-mini \
  --model-base-url "http://localhost:8080/v1"

Kimi (Moonshot)

Set KIMI_API_KEY and use the kimi-coding provider prefix:
KIMI_API_KEY="$YOUR_KIMI_KEY" crh review \
  --provider launchpad \
  --pr "$MP_URL" \
  --sink stdout \
  --model kimi-coding:kimi-for-coding

OpenRouter

OpenRouter lets you access models from many providers through a single API key. Supply your OpenRouter key via OPENROUTER_API_KEY and pass the full model path as the model-id:
crh review \
  --provider launchpad \
  --pr "$MP_URL" \
  --sink stdout \
  --model "openrouter:amazon-bedrock/eu-west-1"

Using --model-base-url

--model-base-url overrides the API base URL for the chosen model. It only works with OpenAI-compatible models — that is, any openai:* model or a registered provider whose API type is openai-completions or openai-responses.
Passing --model-base-url with a non-OpenAI-compatible model (for example anthropic:claude-sonnet-4-6) causes crh review to exit with an error.

crh review command

Full syntax and usage examples for the review command.

Flags reference

Complete reference for every flag accepted by crh review.

Build docs developers (and LLMs) love