# Troubleshooting

> From README.md at modelpin 0.5.7: https://github.com/samarthputhraya/modelpin/blob/v0.5.7/README.md

**`error: OPENAI_API_KEY is not set` (exit 4).** Export the key for the provider in
`modelpin.yaml` (see [Providers and credentials](https://modelpin.app/docs/providers/#providers-and-credentials)), or change
`providers:` to one you have a key for.

**PowerShell answers `mp` with `Cannot find path ...`, `missing mandatory parameters`, or a
`Supply values for the following parameters` prompt.** That is PowerShell's built-in `mp` alias.
Press Ctrl+C and type `modelpin`.

**`modelpin: command not found`, or Windows blocks `modelpin.exe`.** The console script lives in
your environment's `Scripts/` (or `bin/`) directory, which may not be on `PATH` — and on Windows,
Application Control can refuse a freshly written `.exe`. Run `python -m modelpin ...` instead; it
is the same CLI and needs no `PATH` entry.

**`The Google GenAI SDK is not installed` (or the OpenAI/Anthropic one), exit 4.** You most
likely installed plain `modelpin`. Run `pip install "modelpin[providers]"`. `modelpin init` also
warns about a missing SDK before it suggests `modelpin baseline`, whether it is writing
`modelpin.yaml` or adopting one that already exists.

**`rate limit or quota exceeded`.** Modelpin already retried with backoff. Wait for the quota
window, lower `--runs`, or check billing. On Gemini's AI Studio, *"prepayment credits are
depleted"* means that key bills a separate prepaid wallet; Vertex AI bills Google Cloud credit
instead. Claude on Vertex AI may need a per-model quota granted in the Google Cloud console first.

**`CERTIFICATE_VERIFY_FAILED`.** You are behind a TLS-inspecting proxy on Linux: set
`SSL_CERT_FILE` to your organisation's CA bundle.

**`scenario ... changed since its baseline`.** You edited the scenario after recording it, so
comparing would measure your edit, not the model. Run `modelpin baseline` again. Upgrading from a
version before 0.3.0 needs one fresh `modelpin baseline` for the same reason.

**A scenario flags `regression` against the same model.** The prompt leaves the model real
freedom (for example a tool it may call "when useful"). Tighten the instruction, or add
`"match": "subset"` to that scenario. See
[Writing scenarios](https://github.com/samarthputhraya/modelpin/blob/main/docs/writing-scenarios.md).

**`insufficient_evidence`.** A model returned empty answers — often a `max_tokens` too small for a
reasoning model, or a content filter. The console note says which side was empty. (A wrong model
id shows up differently: the scenario is listed as *could not be replayed*.)

**Exit 3 in CI.** The run could not answer for at least one scenario; the report lists which
and why. It is deliberately not a pass.

**A `warning: ... cannot report a regression` before the run.** `--runs` is too low for the
statistics to ever reach significance. Use 5.
