openrouter
Access 100+ AI models via OpenRouter. Route between providers, manage costs, and use fallbacks. Use for multi-model AI applications, cost optimization, and LLM provider abstraction.
npx skills add majiayu000/claude-skill-registry --skill openrouter-housegarofalo-claude-code-base-2 --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# OpenRouter Expert guidance for multi-provider AI model access. ## Triggers Use this skill when: - Accessing multiple AI model providers through one API - Building multi-model AI applications - Implementing cost optimization or model fallbacks - Working with OpenRouter for LLM provider abstraction - Routing requests between different AI providers - Keywords: openrouter, multi-model, model routing, fallback, provider abstraction ## Installation ```bash pip install openai # Uses OpenAI-compatible API ``` ## Quick Start ```python from openai import OpenAI client = OpenAI( base_url="https://openrouter.ai/api/v1", api_key="your-openrouter-key" ) response = client.chat.completions.create( model="anthropic/claude-3.5-sonnet", messages=[{"role": "user", "content": "Hello!"}] ) print(response.choices[0].message.content) ``` ## Available Models ```python # Anthropic model = "anthropic/claude-3.5-sonnet" model = "anthropic/claude-3-opus" model = "anthropic/claude-3-haiku" # OpenAI model = "openai/gpt-4o" model = "openai/gpt-4-turbo" model = "openai/gpt-3.5-turbo" # Google model = "google/gemini-pro-1.5" model = "google/gemini-flash-1.5" # Meta model = "meta-llama/llama-3.1-405b-instruct" mod
- Triggers
- Installation
- Quick Start
- Available Models
- Request Headers
- Streaming
- Function Calling
- Provider Routing
- Cost Control
- Fallbacks
- Transforms
- Get Model Info
- Check Credits
- Async Usage
pip install openai # Uses OpenAI-compatible API
What does the openrouter skill do?
Access 100+ AI models via OpenRouter. Route between providers, manage costs, and use fallbacks. Use for multi-model AI applications, cost optimization, and LLM provider abstraction.
How do I install it?
Run `npx skills add majiayu000/claude-skill-registry --skill openrouter-housegarofalo-claude-code-base-2 --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
