Individual skill
openrouter-model-routing
Implement intelligent model routing to optimize cost, quality, and latency on OpenRouter. Use when building multi-model systems or optimizing spend across task types. Triggers: 'openrouter routing', 'model routing', 'route to model', 'model selection openrouter'.
plugins/saas-packs/openrouter-pack/skills/openrouter-model-routing/SKILL.md
Source commit 0500b275e963c027f6b410e8c49c0446945c574e
What was checked
- Matches the observed repository HEAD
- Yes
- Scanner rules are current
- No
- Repository scan complete
- No
- Skill scan complete
- No
- Observed behavior
- Not checked yet
- Last checked
- Nov 12, 2026
These are observations at the recorded commit, not a guarantee of safety. Review the source before running it.
Install this skill
Choose an agent in your Stack or copy a command below. Commands fetch the pinned commit and copy only this skill directory. Existing destinations are refused. Copying a command does not install anything.
An install command is unavailable: current rules, complete repository and skill scans, an eligible behavior level and a permitted license are required.
Repository context
- Repository stars (not skill ratings)
- 2,916
- Repository last updated
- Nov 12, 2026
- License
- MIT
Observed agent integration: No specific integration evidence. Standard SKILL.md installation does not imply verified compatibility.
- ai Repository topic
- automation Repository topic
- claude-code Repository topic
- devops Repository topic
- mcp Repository topic
- ai-agents Repository topic
- anthropic Repository topic
- claude-code-plugins Repository topic
- developer-tools Repository topic
- llm Repository topic
- saas Declared skill tag
- openrouter Declared skill tag
- routing Declared skill tag
- cost-optimization Declared skill tag
- model-selection Declared skill tag
- engineering Derived category
Files and excerpt
File metadata and permitted, redacted excerpts come from the recorded scan. Source links are pinned to that commit.
Browse files
SKILL.mdcore · 9,777 bytesSKILL.mdcore · 9,777 bytesSKILL.mdcore · 9,777 bytesSKILL.mdcore · 9,777 bytesSKILL.mdcore · 9,777 bytesSKILL.mdcore · 9,777 bytesreferences/cascading-router.mddoc · 1,810 bytesreferences/context-aware-routing.mddoc · 1,299 bytesreferences/cost-quality-optimization.mddoc · 2,726 bytesreferences/errors.mddoc · 478 bytesreferences/examples.mddoc · 3,486 bytesreferences/implementation.mddoc · 19,426 bytesreferences/intelligent-model-selection.mddoc · 5,964 bytes
Read excerpt
# OpenRouter Model Routing
## Overview
OpenRouter gives you access to 100+ models through one API. The key to cost efficiency is routing each request to the right model based on task complexity, required capabilities, cost budget, and latency requirements. This skill covers task-based routing, complexity classification, cost-aware selection, and OpenRouter's native routing features.
## Prerequisites
- An OpenRouter API key exported as `OPENROUTER_API_KEY` — see the `openrouter-install-auth` skill for setup
- Python 3.8+ with the OpenAI SDK and `requests` (`pip install openai requests`)
- A rough inventory of your task mix (classification, summarization, code generation, deep reasoning, ...) to seed the `TASK_ROUTING` table
- Credits sized for the tiers you route to — the premium tier (`openai/o1`) runs $15/$60 per 1M tokens, 250x the budget tier
## Instructions