openrouter-provider-ranking

openrouter-provider-ranking is a skill for Claude Code from CodeAlive-AI/ai-driven-development. It costs 107 tokens per session (3,148 once invoked), scanned A, original, MIT.

A guide for choosing the best provider endpoint for one OpenRouter model and a specific workload. It compares constraints such as speed, latency, price, uptime, caching, tool-call quality, context, and privacy.

In plain words
What is it for?
Use it when ranking or routing OpenRouter providers for a defined workload. It supports deterministic provider orders, failover chains, and the model's native Exacto tool-calling mode.
Why use it?
It prevents a provider from being chosen on one attractive number alone when it may not meet the workload's compatibility or reliability needs. It applies hard requirements before ranking the remaining options.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the ai-driven-development plugin — 24 skills, 1 agent shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/codealive-ai/ai-driven-development/openrouter-provider-ranking
Any agent
npx skills add CodeAlive-AI/ai-driven-development --skill openrouter-provider-ranking
Clone the repo
git clone --depth 1 https://github.com/CodeAlive-AI/ai-driven-development

Made for: Claude Code.

Or install ai-driven-development, the plugin that ships this one along with the rest of its 24 skills, 1 agent.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openrouter-provider-ranking

README.md
[![agentmods](https://agentmods.dev/badge/skills/codealive-ai/ai-driven-development/openrouter-provider-ranking.svg)](https://agentmods.dev/skills/codealive-ai/ai-driven-development/openrouter-provider-ranking)
Your own site
<a href="https://agentmods.dev/skills/codealive-ai/ai-driven-development/openrouter-provider-ranking"><img src="https://agentmods.dev/badge/skills/codealive-ai/ai-driven-development/openrouter-provider-ranking.svg" alt="Measured on agentmods" height="20"></a>
Per session 107 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,148 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00107 $0.03148
Opus 5 $0.00053 $0.01574
Sonnet 5 $0.00021 $0.00630
Haiku 4.5 $0.00011 $0.00315

Measured 6d ago against content hash bb3d73bc44d9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade A, and why

openrouter-provider-ranking scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

The scan reads SKILL.md. This mod also ships 4 executable files (scripts/probe_endpoints.py, scripts/rank_providers.py, scripts/validate_skill.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/openrouter-provider-ranking/SKILL.md · 234 lines

How it starts

The opening of the file, as written. The whole thing — 234 lines — stays where its author put it; the contents beside it link to each section on GitHub.

OpenRouter Provider Ranking

Rank the endpoint providers of a single OpenRouter model slug for a specific workload. Never call the order "globally optimal": it is optimal only against the stated constraints, weights, token profile and available telemetry.

Mandatory rules

  1. Apply hard constraints first, score second. Never let high TPS or a low price compensate for an incompatibility.
  2. For tool calling default to native-exacto: the :exacto model suffix, no provider.sort, no provider.order. Your own score in that mode is diagnostic, not a replacement for OpenRouter's private telemetry.
  3. Use manual only when the user requires a deterministic order, when your own production telemetry outweighs Exacto, or when a failover chain has to be pinned explicitly.
  4. Never combine :exacto with provider.sort — an explicit sort wins. Never add provider.order in native-exacto mode.
  5. Price on the real token profile, not on headline input/output rates. Include cache read/write, per-request fees, conditional pricing overrides and the observed cache hit rate.
  6. Do not invent missing Exacto, benchmark, cache or tool-success metrics. Apply a conservative prior and an uncertainty penalty, and name the gaps explicitly.
  7. For multi-turn workloads pass a stable session_id. Remember that a manual provider.order disables OpenRouter's sticky provider routing, and session_id does not restore it.
  8. Never store the API key in the skill, a config, a log or the output JSON. Read it only from OPENROUTER_API_KEY or the environment variable the user names.
  9. A catalogue field is a hypothesis; a measurement is a fact. Do not hand back a ranking as the answer: always propose the minimal verification of the top candidates against the constraints that were asked for (step 5), and say plainly whether it was run.
  10. The comparison row is endpoint × reasoning effort, not the endpoint. Changing effort moves price, latency and quality more than changing provider does — and "none" means "omit the field", not "no reasoning".
  11. Compute price from components on the token profile (in, out, cache_read, cache_write, per-request fee). Headline and effective price swap places: the most expensive rate card produced the lowest cost per step at a 99.996 % cache hit.
  12. Measure cache, latency and reliability on the profile that will ship. Cache hit on a repeated identical prompt (99 %) and in an agent run (68 %) are different numbers; TTFT on a short prompt is 4-6x optimistic; and fitness for a single request does not predict behaviour under sequential load.

Read the full file on GitHub · 234 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 234 lines · 107 tokens per session scan A bb3d73bc44d9

Subscribe to this mod's changes

openrouter-provider-ranking is a skill published in the GitHub repository CodeAlive-AI/ai-driven-development (132 stars, last pushed 2d ago), licensed MIT. It adds 107 tokens to every session and 3,148 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.