Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

openrouter-ai-models-guide

Skill by nirholas

Explains how to use OpenRouter, a unified API for 200+ AI models, to choose models by task, price and context size. Aimed at developers who want to set up model routing and fallbacks, including users of SperaxOS.

  • Score 70
  • 286 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install openrouter-ai-models-guide

Built from the published package, never by AI.

git clone --depth 1 https://github.com/nirholas/three.ws /tmp/three.ws && mkdir -p ~/.claude/skills && cp -r /tmp/three.ws/data/skills/general/openrouter-ai-models-guide ~/.claude/skills/openrouter-ai-models-guide

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install openrouter-ai-models-guide in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill is a guide to OpenRouter, a unified API that routes requests to more than 200 AI models from providers such as OpenAI, Anthropic, Google, Meta, Mistral and DeepSeek. It covers choosing a model by task, comparing price tiers and context window sizes, and setting up routing. The guide shows a single endpoint, https://openrouter.ai/api/v1, that accepts a model name such as anthropic/claude-sonnet-4-20250514.

The guide describes three routing options: automatic routing with openrouter/auto, a fallback chain that lists backup models, and a cheapest route with a maximum price. It also covers SperaxOS, which uses OpenRouter as a model provider, with environment settings, a curated model data file and per-agent model selection. It is aimed at developers who want to pick models for specific tasks and compare costs.

Written from the project's SKILL.md and checked against it.

What it can do

  • Model selection by taskLists recommended models for reasoning, coding, creative writing, speed, vision, JSON output and budget work.
  • Pricing tiersGives approximate input and output price ranges per 1M tokens for free, budget, standard and premium models.
  • Context window comparisonCompares context sizes for Gemini 2.5 Pro, Claude Sonnet 4, GPT-4o and DeepSeek V3.
  • Automatic routingShows how to let OpenRouter pick a model with the openrouter/auto model name.
  • Fallback chainShows how to define backup models if the primary model is unavailable.
  • Cheapest routeShows how to use openrouter/cheapest with a maximum prompt and completion price.
  • SperaxOS integrationDescribes configuring OpenRouter as a model provider in SperaxOS, with a curated model data file.
  • Per-agent model selectionGives example pairings of SperaxOS agents with different models, such as Gemini Flash for quick chat.
  • OpenAI-compatible client setupShows changing the OpenAI SDK base URL to point at OpenRouter.

What you need

  • OpenRouter API key
  • OpenAI SDK (for the TypeScript example)

Try asking

  • Which OpenRouter model should I use for complex reasoning tasks?
  • Show me how to set up a fallback chain with OpenRouter models.
  • Compare the context window sizes of Gemini 2.5 Pro and Claude Sonnet 4.

Good to know

  • Free models are listed as having limits, with no details given.
  • Pricing ranges are approximate and may change over time.
  • Model names and routing options reflect the source at the time it was written.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: data/skills/general/openrouter-ai-models-guide/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to openrouter-ai-models-guide

All alternatives →

Compare with ask-user-question, beads or google_tasks

openrouter-ai-models-guide: common questions

What is OpenRouter?

The source describes OpenRouter as a single API endpoint that routes requests to 200+ AI models from many providers.

How does OpenRouter fallback work in this guide?

The guide shows a request with a route set to fallback and a list of models to try if the primary model is unavailable.

Does this guide work with the OpenAI SDK?

Yes, the source says OpenRouter is compatible with the OpenAI SDK, LangChain, LlamaIndex and Vercel AI SDK, and shows changing the base URL.

How do I install openrouter-ai-models-guide?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is openrouter-ai-models-guide free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is openrouter-ai-models-guide safe to use?

It scores 70 of 100. Grades: maintenance A, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to openrouter-ai-models-guide?

Similar skills: ask-user-question, beads, google_tasks, recall.

openrouter-ai-models-guide Install

Add to stack

Loading.