setup-openrouter
Installation
SKILL.md
Setup OpenRouter
Single API key, access to ~every hosted LLM.
Why OpenRouter here
- Unified billing and model catalog — easy to swap cheap↔premium per task.
- Live pricing visible per model; easy to pick cost-optimal for bulk runs.
- OpenAI-compatible API — drop-in with the OpenAI SDK.
Procedure
- Key: check env for
OPENROUTER_API_KEY. If absent, ask the user to set it (point at 1Password if they useop-vault). Never print the key. - Endpoint:
https://openrouter.ai/api/v1— set asOPENAI_BASE_URLwith the OpenAI SDK. - Recommended model aliases (update when prices shift — check openrouter.ai/models):