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.
npx agentmods add skills/codealive-ai/ai-driven-development/openrouter-provider-rankingnpx skills add CodeAlive-AI/ai-driven-development --skill openrouter-provider-rankinggit clone --depth 1 https://github.com/CodeAlive-AI/ai-driven-developmentWrote 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.
[](https://agentmods.dev/skills/codealive-ai/ai-driven-development/openrouter-provider-ranking)<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>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.
| Model | Per session | Once 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 |
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.
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.
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
- Apply hard constraints first, score second. Never let high TPS or a low price compensate for an incompatibility.
- For tool calling default to
native-exacto: the:exactomodel suffix, noprovider.sort, noprovider.order. Your own score in that mode is diagnostic, not a replacement for OpenRouter's private telemetry. - Use
manualonly when the user requires a deterministic order, when your own production telemetry outweighs Exacto, or when a failover chain has to be pinned explicitly. - Never combine
:exactowithprovider.sort— an explicit sort wins. Never addprovider.orderinnative-exactomode. - 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.
- Do not invent missing Exacto, benchmark, cache or tool-success metrics. Apply a conservative prior and an uncertainty penalty, and name the gaps explicitly.
- For multi-turn workloads pass a stable
session_id. Remember that a manualprovider.orderdisables OpenRouter's sticky provider routing, andsession_iddoes not restore it. - Never store the API key in the skill, a config, a log or the output JSON. Read it only from
OPENROUTER_API_KEYor the environment variable the user names. - 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.
- 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". - 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. - 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.
What ships with it
15 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- assets/config.example.json 1.6 KB
- assets/observations.example.json 856 B
- assets/telemetry.example.jsonl 778 B
- README.md 4.9 KB
- references/input-formats.md 5.3 KB
- references/openrouter-routing.md 5.5 KB
- references/scoring.md 5.4 KB
- references/storefront-traps.md 7.4 KB
- scripts/probe_endpoints.py 12 KB runs code
- scripts/rank_providers.py 73 KB runs code
- scripts/validate_skill.py 3.9 KB runs code
- tests/fixture-endpoints.json 4.4 KB
- tests/fixture-observations.json 1.2 KB
- tests/test_rank_providers.py 9.4 KB runs code
- tests/trigger-evals.json 2.6 KB
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.
- 6d ago First seen · 234 lines · 107 tokens per session scan A bb3d73bc44d9
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.
Other skills, from other repositories
agenttrace-session-audit
Audit local AI coding-agent sessions with agenttrace for cost, tool failures, latency, anomalies, health, diffs, and CI gates.
map-learn
Capture reusable lessons after a completed MAP workflow. Use when a MAP run has finished and you want rules written to .claude/rules/learned/ from a workflow summary or handoff. Do NOT use during active implementation.
map-task
Execute a single subtask from an existing MAP plan via Actor and Monitor. Use when map-plan has decomposed work and you want fine-grained control over one subtask. Do NOT use without an existing plan; run map-plan first.
map-wayfind
Decision-frontier wayfinding: build and work a durable map of open design decisions BEFORE planning, for large or foggy efforts where /map-plan would force premature decomposition. Use when a task is too big or too vague to decompose — many unknowns, tangled decisions, or "I'm not even sure what to build yet" — and…
map-fast
Minimal workflow for small, low-risk changes — no planning, no learning.
axum-idioms
Axum HTTP framework patterns — routing, extractors, middleware, state management. For Rust see rust-idioms.