Providers and models
Tiers and the quality floor
Never a silently weaker model. Countdowns instead.
Tiers
Every model belongs to one of three tiers: premium, standard or economy, best first. Each provider declares its own models per tier, and routing.tiers only labels a model whose provider did not. Relief tells the model its real name and id, so "which model are you?" gets a true answer.
The floor
routing.qualityFloor is the lowest tier Relief will use without asking. At premium, only premium models answer. At standard, premium and standard may. At economy, anything may.
The built in default is premium. frontier setup and /budget set it to match your budget:
| Budget | Floor set |
|---|---|
free | economy |
paid | standard |
/budget show the budget, the floor and the models at that floor
/budget free free and local models; turns the free lane on
/budget paid keep a higher floorThe choice is saved to your user settings.
When models at the floor are busy
Relief keeps retrying the floor tier for routing.patienceSeconds (180 by default), waiting 5, 10, 20 and then 30 seconds between passes, and showing a countdown. A model that answered 503 or 429 is skipped for routing.overloadCooldownSeconds (90). Connection failures are retried by reconnecting without counting against the model.
When patience runs out, the cockpit asks:
premium models are still busy. What now?
[w] wait 3 more minute(s) for premium
[s] use the standard tier for this answer (lower quality)
[e] use the economy tier for this answer (lower quality)
[c] cancelIf you accept a lower tier, answers are labelled, and Relief remembers your choice and retries the floor every 5 minutes. You are never switched quietly.
Scripts and MCP clients cannot be asked. With routing.onExhausted at ask and no terminal, or at fail, the run stops with QUALITY_UNAVAILABLE and exit code 3, so the caller can decide. The error message lists what was tried and why each model was skipped.
The free lane
When the configured models cannot answer and the free lane is on, Relief tries the free models in each provider's live model list before it fails. It is on when budget is free, off otherwise, and routing.freeLane set to true or false overrides that. It is user only, because free models are unrated and some providers log free traffic.
- Candidates come from the provider's live
/modelslist, cached for six hours, so a normal run makes no extra request. - They are ranked by
routing.freeLaneOrderfirst (exact ids or parts of ids, best first), then by provider order, then newest first. - At most
routing.freeLaneMaxModels(8) are tried for one request, so one stuck request cannot use a whole day's free allowance. - A free lane answer is labelled
free lane, costs zero, and never counts as meeting a floor above economy. - A request pinned to one model with
--model, and any request with images, never uses the free lane.
If the free lane finds nothing left to try, the dead end message says so, and what to do next, such as the time the earliest daily quota resets.
Free budget: free lanes first, one question before a paid lane
Under budget: free the floor is economy, but a floor is a lowest tier and not a promise of free: better models sit above it, and some of them cost money. So Relief holds every paid model back and works in this order:
- The free lanes answer first, in the order described above.
- When every free lane is empty or busy, Relief asks once:
Every free lane is empty or busy. Use paid lane provider/model (its price)? The answer lasts for this session.Only a plainycounts as yes. Anything else is no. - The answer, yes or no, is remembered for the session, so you are not asked again and again.
The rules around it:
- Scripts and MCP tools cannot be asked, so they never use a paid lane under a free budget. The one way to allow it is
routing.allowPaidLaneset totruein your own settings. It is a user only setting, so a repository cannot turn it on. - A model you pin yourself with
--modelor/modelis used as you asked, and labelled. - Compare, fan out and the second vendor review skip paid lanes until you have said yes to one.
- Every answer is labelled
free laneorpaid lane, in the recap line after a turn and in thelane:line of an MCP task report. - How a lane is judged. A model with a written price of zero is free. Otherwise the service's own
costsetting decides, a service on your own machine counts as free, and a mixed service is judged by its own marker (OpenRouter and Token Harbor:freeids, the Gemini Flash family). Anything else counts as paid. A mistake therefore leans toward asking you, never toward spending quietly. - A budget of
paidchanges nothing: nothing is asked, and the answer is still labelled.
Daily quotas
When a free tier answers a daily 429, Relief records it. For Gemini and Groq the count is per model. For OpenRouter's free requests it is for the whole key. Used up models or providers are skipped, with the reset time in the message, until the clock says they have reset.
Free lanes differ in how much room they have, and each has its own allowance. Groq, Gemini and OpenRouter are separate lanes, so a key for each is more room, not a retry of the same wall. To see how much of each is left before a request fails, read What is left today.