Openrouter

OpenRouter API - Unified access to 400+ AI models through one API

70 stars 18 forksAI, LLMs & Agents

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add alexdcd/Mafia-Claude-Skills --skill openrouter
Manual install
git clone --depth 1 https://github.com/alexdcd/Mafia-Claude-Skills.git /tmp/Mafia-Claude-Skills
mkdir -p ~/.claude/skills
cp -r /tmp/Mafia-Claude-Skills/skills/openrouter ~/.claude/skills/openrouter

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# OpenRouter Skill

Comprehensive assistance with OpenRouter API development, providing unified access to hundreds of AI models through a single endpoint with intelligent routing, automatic fallbacks, and standardized interfaces.

## When to Use This Skill

This skill should be triggered when:
- Making API calls to multiple AI model providers through a unified interface
- Implementing model fallback strategies or auto-routing
- Working with OpenAI-compatible SDKs but targeting multiple providers
- Configuring advanced sampling parameters (temperature, top_p, penalties)
- Setting up streaming responses or structured JSON outputs
- Comparing costs across different AI models
- Building applications that need automatic provider failover
- Implementing function/tool calling across different models
- Questions about OpenRouter-specific features (routing, fallbacks, zero completion insurance)

## Quick Reference

### Basic Chat Completion (Python)
```python
from openai import OpenAI

client = OpenAI(
  base_url="https://openrouter.ai/api/v1",
  api_key="<OPENROUTER_API_KEY>",
)

completion = client.chat.completions.create(
  model="openai/gpt-4o",
  messages=[{"role": "user", "content": "What is the meaning of life?"}]
)
print(completion.choices[0].message.content)
```

### Basic Chat Completion (JavaScript/TypeScript)
Read the full skill on GitHub

Details

Skill name
openrouter
Path
skills/openrouter/SKILL.md
License
Apache-2.0
Repo updated
17 July 2026

FAQ

What does the Openrouter skill do?

OpenRouter API - Unified access to 400+ AI models through one API

How do I install the Openrouter skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add alexdcd/Mafia-Claude-Skills --skill openrouter. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Openrouter popular?

It lives in alexdcd/Mafia-Claude-Skills, which has 70 GitHub stars and 18 forks.

Related skills

Frontend Slides

70

alexdcd/Mafia-Claude-Skills

Create stunning, animation-rich HTML presentations from scratch or by converting PowerPoint files. Use when the user wants to build a presentation, convert a PPT/PPTX to web, or create slides for a talk/pitch. Helps non-designers discover their aesthetic through visual exploration rather than abstract choices.

Documents & Office FilesIn 2 lists18

File Organizer

70

alexdcd/Mafia-Claude-Skills

Intelligently organizes your files and folders across your computer by understanding context, finding duplicates, suggesting better structures, and automating cleanup tasks. Reduces cognitive load and keeps your digital workspace tidy without manual effort.

Productivity & Notes18

Audio Transcriber

70

alexdcd/Mafia-Claude-Skills

Transform audio recordings into professional Markdown documentation with intelligent summaries using LLM integration

Images, Video & Audio18

Prompt Master

70

alexdcd/Mafia-Claude-Skills

Generates optimized prompts for any AI tool. Use when writing, fixing, improving, or adapting a prompt for LLM, Cursor, Midjourney, image AI, video AI, coding agents, or any other AI tool.

AI, LLMs & Agents18

Nombre De Mi Skill

70

alexdcd/Mafia-Claude-Skills

Descripción clara y completa de qué hace esta skill y cuándo debe activarse. Incluye los casos de uso principales y el contexto en el que Claude debe usar esta skill. Sé específico y detallado.

AI, LLMs & Agents18

Repo First Defense

70

alexdcd/Mafia-Claude-Skills

Auditoría defensiva para repositorios AI-native. Usar SIEMPRE que el usuario quiera revisar un repo antes de lanzar, mergear, actualizar dependencias, migrar package manager, configurar un agente IA, MCP, Claude/Cursor/Codex/OpenClaw, o cuando mencione supply chain, prompt injection, secretos, GitHub Actions, npm/pnpm, paquetes maliciosos, scripts peligrosos, o riesgos de seguridad en repos con IA. Activar también si el usuario dice "revisa el repo", "está seguro esto", "antes de producción", "audita el PR" o cualquier variación.

AI, LLMs & Agents18

Browse the most popular Claude skills, all ai, llms & agents skills, or write your own with the skills generator.