Provider ladder & failover
Providers
Chain: codex → openrouter → anthropic → grok → openai-compatible → ollama → deterministic. Only Codex edits the repo; cloud/local providers return strict JSON plans PatchPilot applies. Lower-trust providers need consent in ask mode. No API keys are ever shown here.
Provider readiness
| Provider | Status | Edits repo | Required env |
|---|---|---|---|
| Codex CLI (workspace editor) ★ | unavailable | yes | CODEX_BIN, CODEX_ENABLED |
| OpenRouter (plan advisor) | not_configured | no | PATCHPILOT_LLM_API_KEY, PATCHPILOT_AGENT_MODEL |
| OpenAI-compatible (plan advisor) | not_configured | no | PATCHPILOT_LLM_BASE_URL, PATCHPILOT_LLM_API_KEY, PATCHPILOT_AGENT_MODEL |
| Anthropic Claude (plan advisor) | not_configured | no | PATCHPILOT_ANTHROPIC_API_KEY, PATCHPILOT_AGENT_MODEL |
| Grok / xAI (plan advisor) | not_configured | no | PATCHPILOT_GROK_API_KEY, PATCHPILOT_AGENT_MODEL |
| Ollama / local (plan advisor) | configured | no | PATCHPILOT_LLM_BASE_URL, PATCHPILOT_AGENT_MODEL |
| Deterministic npm fixer | configured | no | · |
Failover controls
Saved to local settings.
Failover consent requests
No failover consent requests yet.
Failover timeline
No provider failover activity recorded yet.