openrouter
Skill by davidondrej
Guides an AI assistant through designing, building, debugging and optimizing OpenRouter API integrations. It is for developers calling OpenRouter models from their own code.
Install openrouter
Built from the published package, never by AI.
git clone --depth 1 https://github.com/davidondrej/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/ops-and-setup/openrouter ~/.claude/skills/openrouterRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/davidondrej/skills /tmp/skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/skills/skills/ops-and-setup/openrouter ~/.gemini/antigravity-cli/skills/openrouterAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The openrouter skill helps an AI assistant work on OpenRouter API integrations. It covers model selection, reasoning settings, output limits, routing, media, tools, structured output, cost and performance. The skill tells the assistant to check exact model IDs and live capabilities through the models API, including provider endpoints and prices for both primary and fallback models.
The skill sets rules meant to prevent costly mistakes. It asks the assistant to set an explicit reasoning effort for each reasoning model, set output ceilings and deadlines, and check every fallback against the same required capabilities. It also says HTTP 200 is not proof of success and that results must be validated. Testing guidance covers serialized requests and failure cases, and compares valid-result rate, cost per valid result and time to first visible answer. It is aimed at developers who build on the OpenRouter API.
Written from the project's SKILL.md and checked against it.
What it can do
- Model verificationChecks exact model IDs, modalities, context and output limits, parameters, prices and provider availability.
- Reasoning configurationSets an explicit reasoning effort for each reasoning model using the unified reasoning object.
- Routing and fallbacksPicks provider sort, provider filters and bounded application-level fallback attempts.
- Output and reliabilitySets output caps, total deadlines, bounded retries and validation of the returned result.
- Media and toolsCovers image generation, URL and base64 attachments, PDFs, audio, video and tool loops.
- Integration testingChecks serialized requests and failure boundaries in redacted local tests and small smoke tests.
- Cost and performance tuningCompares valid-result rate, cost per valid result, time to first answer and total duration.
What you need
- Access to the OpenRouter API for live smoke tests
Try asking
- Review my OpenRouter request and make the reasoning effort explicit.
- Add a fallback model to my OpenRouter call that keeps the same capabilities.
- Help me tune my OpenRouter routing for lower cost per valid result.
Good to know
- Real inference tests should run only when inference is authorized.
- Provider sort and suffixes do not guarantee semantic correctness.
- reasoning.exclude hides reasoning but does not turn it off or make it free.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/ops-and-setup/openrouter/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB -
references/api-field-map.md7 KB -
references/media-and-tools.md7 KB -
references/reasoning-and-output.md7 KB -
references/reliability.md7 KB
Show all 6 files
-
references/routing-cost-speed.md6 KB
Alternatives to openrouter
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
openrouter: common questions
Does the skill turn off reasoning with reasoning.exclude?
No. The source says reasoning.exclude hides reasoning output only. It does not disable reasoning or make it free, and mandatory reasoning models cannot be disabled.
How does the skill handle model fallbacks?
It warns that a single models request shares configuration across candidates. If models need different efforts or budgets, it recommends bounded application-level attempts with separate configs.
Does the skill check prices and limits?
It tells the assistant to verify prices, context and output limits, and supported parameters through the OpenRouter models API before changing configuration.
How do I install openrouter?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is openrouter free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is openrouter safe to use?
It scores 85 of 100. Grades: maintenance A, licence A, quality A. 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?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
