Providers and models
OpenRouter
One key, hundreds of models, credits and key limits.
OpenRouter is the fastest start: one key reaches many models, and some are free. It is the first question frontier setup asks.
Get a key
Create one at openrouter.ai/keys, then either run frontier setup or put it in ~/.frontier/.env:
OPENROUTER_API_KEY=your-key-hereRelief builds an OpenRouter provider from that variable alone. With no other settings it uses openrouter/auto as a standard tier model and openrouter/free as an economy tier model. With budget set to free it uses only openrouter/free. OPENROUTER_MODELS takes a comma separated list of your own model ids and replaces those defaults.
Free models
OpenRouter marks a model as free when both its prompt and completion price are zero. With the free lane on, Relief reads OpenRouter's live model list, keeps those, drops models whose listing says they cannot call tools (an agent step without tools can only chat), and tries up to routing.freeLaneMaxModels of them (8 by default) when your configured models cannot answer. Router ids such as openrouter/free go last.
Free requests share one daily count for your whole key. When the key hits its daily limit, Relief marks the provider as used up for the day and says when it resets (UTC is assumed), instead of trying the same wall again.
Credits and HTTP 402
HTTP 402 means the account has no credits. Relief remembers a billing failure for a few minutes, skips that provider, and says how many minutes are left. Even free models can be blocked by a negative balance, so if you see 402 with only free models selected, check your balance at openrouter.ai/settings/credits.
OpenRouter lets you put a credit limit on each key. Set one you can live with, and look at the key's page on OpenRouter first when requests start failing.
A worked settings entry
This is the same provider written out in ~/.frontier/settings.json, with a premium, a standard and an economy model:
{
"providers": [
{
"name": "openrouter",
"baseUrl": "https://openrouter.ai/api/v1",
"apiKeyEnv": "OPENROUTER_API_KEY",
"models": {
"premium": ["anthropic/claude-fable-5.2"],
"standard": ["deepseek/deepseek-v4.1-flash"],
"economy": ["openrouter/free"]
}
}
]
}These ids were read from OpenRouter's public model list on 2026-11-19. Ids change, so check openrouter.ai/models for the current ones. Relief sends OpenRouter the headers it asks apps to send, with the referer https://github.com/AnonSols/frontier-releases unless you set OPENROUTER_REFERER.
Check it
frontier doctor