openrouter
Installation
SKILL.md
OpenRouter — Unified LLM API Gateway
Overview
OpenRouter exposes one endpoint, https://openrouter.ai/api/v1, whose request and response format follows the OpenAI Chat Completions API. The model is picked with a vendor/model slug, and OpenRouter handles provider selection, fallbacks and billing. The catalog changes constantly: models are added and retired every month, so never hard-code a slug from memory. List the current ones with GET https://openrouter.ai/api/v1/models (public, no key needed).
Ways to call it:
- plain HTTP or the OpenAI SDK with a changed
baseURL(existing code keeps working); - the official client SDKs:
@openrouter/sdk(TypeScript) andopenrouter(Python); - the Agent SDK
@openrouter/agent(tool loops throughcallModel); - the Vercel AI SDK provider
@openrouter/ai-sdk-provider.
Instructions
1. Get a key and install
Create a key at openrouter.ai/settings/keys and export it. Set a credit limit on the key at creation time.