Add a fallback provider chain
Outcome: When the primary provider fails (rate limit, outage, expired key), Gormes automatically tries the next provider/model in the configured chain.
Prerequisites: At least two configured providers (see first chat).
-
List the current chain
Terminal window gormes fallback listOn a fresh install:
No fallback providers configured.Add one with: gormes fallback add -
Append a fallback
Terminal window gormes fallback addThe interactive picker asks for the provider and model to append. Repeat the command to chain more entries; order is the order you add them.
For a low-cost personal-agent chain, add API-key providers such as Google AI Studio, OpenRouter, and Groq first:
Terminal window gormes auth add google-ai-studio --type api-key --api-key AIza...gormes auth add openrouter-free --type api-key --api-key sk-or-...gormes auth add groq --type api-key --api-key gsk-...gormes fallback addPick
geminiwithgemini-2.5-flashfor generous free summarization/briefing fallback,openrouterwithdeepseek/deepseek-chat-v3-0324:freeor another:freemodel for research/conversation variety, thengroqwithllama-3.3-70b-versatilefor fast heartbeat or background-task fallback. -
Inspect the chain
Terminal window gormes fallback list -
Remove one entry, or clear all
Terminal window gormes fallback removegormes fallback clear
Verify
Section titled “Verify”gormes fallback listExpected: each fallback entry appears with provider and model. Then trigger a primary failure (revoke the primary key, point its endpoint at an unreachable host, or use an unavailable model id) and run:
gormes chat -q "test fallback"The turn should still return a reply — served by the next entry in the chain.
Troubleshooting
Section titled “Troubleshooting”- Fallback never activates → The primary call must fail, not partially succeed. Streaming or partial errors may not promote to the next entry; check
gormes logs. fallback addopens an empty picker → Add provider credentials first (gormes auth add <provider>).