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.
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-guideRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install openrouter-ai-models-guide in Claude Code
git clone --depth 1 https://github.com/nirholas/three.ws /tmp/three.ws && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/three.ws/data/skills/general/openrouter-ai-models-guide ~/.gemini/antigravity-cli/skills/openrouter-ai-models-guideAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install openrouter-ai-models-guide in Antigravity CLI
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
ANo 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 →Ask-user-question lets an AI assistant ask the user questions through a modal in the UI. It suits tasks that need clarification, preferences, or approval before the assistant proceeds.
Beads is a Dolt-backed issue tracker that gives AI assistants persistent task memory. It tracks dependencies and notes across sessions and conversation compaction. It is for developers and agents managing multi-session work.
Manages the user's Google Tasks from an AI assistant. It reads task lists and tasks, adds, edits, completes and organizes them, and clears finished items from view. Built for people who keep their to-dos in Google Tasks.
Rebuilds your recent working context before you start or resume work. It reads your chat history and the shared record, then returns a short current-state brief for developers.
Build Agent turns a task a business owner repeats by hand into a named, reusable skill. It can be triggered by name or put on a schedule, and it adds approval checkpoints at consequential steps.
Lark-approval is a Feishu (Lark) skill for querying, handling and starting native approval workflows. It is for users who need to work through approval todos, review submitted approvals, or search and submit approval requests.
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.
