# openrouter-models

Queries OpenRouter for 300+ AI models: pricing, context limits, provider latency and throughput.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 862 installs · ★ 306
- Author: OpenRouterTeam
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/OpenRouterTeam/skills/tree/HEAD/skills/openrouter-models/SKILL.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/openrouter-models

## What it does

The skill gives the agent access to the OpenRouter catalog through several TypeScript scripts. `list-models.ts` outputs all available models with sorting by recency, price, context size or throughput. `search-models.ts` finds models by name or modality (text, image, audio, file). `resolve-model.ts` turns a vague query like "claude sonnet" into an exact model identifier and returns a confidence score — at `high` (≥0.85) you can use it immediately, at `medium` you should confirm with the user. `compare-models.ts` lays out pricing and capabilities side by side, `get-endpoints.ts` shows latency (p50–p99), uptime and throughput for each provider — this script requires an API key in the `OPENROUTER_API_KEY` variable.

Before first use, install dependencies: `cd ~/.claude/skills/openrouter-models/scripts && npm install`. All scripts run via `npx tsx` from the `scripts` folder. The agent picks the right script from the decision tree: for "what's cheaper" use `list-models.ts --sort price`, for "who has lower latency" use `get-endpoints.ts` sorted by `latency`. The API returns prices in dollars per token — scripts multiply by one million for readability.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add OpenRouterTeam/skills --skill openrouter-models -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/openrouter-models/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/openrouter-models/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add OpenRouterTeam/skills --skill openrouter-models -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/openrouter-models/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add OpenRouterTeam/skills --skill openrouter-models -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/openrouter-models/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install OpenRouterTeam/skills openrouter-models
```

2. **Manually: put the files in place**
- File: `.github/skills/openrouter-models/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add OpenRouterTeam/skills --skill openrouter-models -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/OpenRouterTeam/skills --path skills/openrouter-models
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/openrouter-models/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add OpenRouterTeam/skills --skill openrouter-models -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/OpenRouterTeam/skills/tree/HEAD/skills/openrouter-models/SKILL.md

## When to use it
- pick the cheapest model in the programming category
- find which provider offers Claude Sonnet with lowest latency
- compare throughput and pricing for GPT-4o, Claude Sonnet 4 and Gemini 2.5 Pro
- list all models that accept images as input
- resolve a vague model name into an exact OpenRouter identifier

## Example prompts
- Show me the five cheapest OpenRouter models
- Which provider has the best uptime for `anthropic/claude-sonnet-4`?
- Compare pricing and throughput for `openai/gpt-4o` and `google/gemini-2.5-pro`

## Similar
- [setup-matt-pocock-skills](https://affpapa.org/en/nevibecode/skills/setup-matt-pocock-skills.md) — skill · 1052851 installs
- [ask-matt](https://affpapa.org/en/nevibecode/skills/ask-matt.md) — skill · 766587 installs
- [to-tickets](https://affpapa.org/en/nevibecode/skills/to-tickets.md) — skill · 711230 installs
- [writing-plans](https://affpapa.org/en/nevibecode/skills/writing-plans.md) — skill · 282859 installs
- [caveman-review](https://affpapa.org/en/nevibecode/skills/caveman-review.md) — skill · 411800 installs
- [caveman-compress](https://affpapa.org/en/nevibecode/skills/caveman-compress.md) — skill · 411500 installs

From the same set: [openrouterteam/skills](https://affpapa.org/en/nevibecode/by/openrouterteam/skills.md) — 5 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
