Skip to content

Choosing a model

The default is Claude Opus 5.5 at high effort, chosen by the review eval: it found the most known issues, with almost no false alarms. For less cost, model: claude-sonnet-5-5 with effort: low was as good on simple changes and missed a little more on complex ones. Claude Haiku 4.5 isn’t recommended: half its comments were wrong.

Provider Key (CLI environment variable) Notes
anthropic ANTHROPIC_API_KEY The default
mistral MISTRAL_API_KEY Defaults to codestral-latest
openai OPENAI_API_KEY Name a model
openrouter OPENROUTER_API_KEY Name a model
openai-compatible --api-key-env Any OpenAI-compatible endpoint: set base-url and a model
ollama none A model on your own machine (CLI only; see below)

In the Action, set provider, and model where the table says to name one, with that provider’s key as a secret. For Mistral:

- uses: sgtwickool/codemop@v1
with:
provider: mistral
api-key: ${{ secrets.MISTRAL_API_KEY }}