Use OpenRouter with Empryo with Empryo
OpenRouter is a built-in Empryo provider: one API key unlocks 200+ models from every major lab behind a single OpenAI-compatible endpoint. Set `openrouter` once and switch between Claude, GPT, Gemini, Grok, and open-weight models from inside Empryo without juggling separate accounts or keys.
Popular models
Setup
OpenRouter ships as one of Empryo's 21 built-in providers, so there is no custom config block to write.
1. Get a key
Create an API key at openrouter.ai/keys. OpenRouter keys are prefixed sk-or-.
2. Save it
empryo --set-key openrouter sk-or-...The key is stored in your OS keychain (Login Keychain on macOS, libsecret on Linux, DPAPI on Windows), with an encrypted file fallback. See configuration for backends and lookup order.
3. Pick a model
Launch Empryo, press Ctrl+L, and choose any OpenRouter model. Or set it as your default in ~/.empryo/config.json:
{
"defaultModel": "openrouter/anthropic/claude-sonnet-4.5"
}Empryo's OpenRouter model strings are openrouter/<vendor>/<model> — e.g. openrouter/openai/gpt-5.1, openrouter/google/gemini-2.5-pro, openrouter/x-ai/grok-4.
4. (Optional) Route different jobs to different models
The single OpenRouter key powers every slot in Empryo's task router, so you can run a cheap model for research and a strong one for code edits — no extra keys:
{
"taskRouter": {
"ember": "openrouter/anthropic/claude-sonnet-4.5",
"spark": "openrouter/deepseek/deepseek-v3.2",
"compact": "openrouter/google/gemini-2.5-flash"
}
}Per-launch key
For one-off sessions or CI you can pass the key via env var instead of storing it:
OPENROUTER_API_KEY=sk-or-... empryoInspect what's configured with empryo --list-providers and empryo --list-models openrouter.