Agent skill · AI & Agents

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.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
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.

Facts
Files in the skill folder: 2
SKILL.md size: 6 KB
Bundled scripts: none
Path: skills/ai-llm/openrouter-housegarofalo-claude-code-base-2/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# 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

What's inside
Steps it walks through
  1. Triggers
  2. Installation
  3. Quick Start
  4. Available Models
  5. Request Headers
  6. Streaming
  7. Function Calling
  8. Provider Routing
  9. Cost Control
  10. Fallbacks
  11. Transforms
  12. Get Model Info
  13. Check Credits
  14. Async Usage
Ships with 1 file
  • metadata.json
Commands it runs
pip install openai  # Uses OpenAI-compatible API
More from claude-skill-registry
All skills →
About this skill
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.

Keep going