openrouter
Skill0 starsChanged 35 days agoMITView on GitHub
Call other models through OpenRouter with one small script. Use for web research with citations, current facts, a second opinion from another model, embeddings, a closed-choice decision, "which model should answer this", model prices or context sizes, or credit left on the key. When no model is named, Jev picks one per request, and every call reports the model that answered and what it cost.
- Reads credentials
8 other projects use a version of this.
Adopted by
Most recently taken up by
- nateslabach/skillstheir own version, first seen Nov 8, 2026
- JustinPerea/nebula-nodestheir own version, first seen Nov 5, 2026
- davidondrej/skillstheir own version, first seen Oct 29, 2026
- aibtcdev/skillstheir own version, first seen Oct 26, 2026
- juliasadler/muse-skills-cntheir own version, first seen Oct 17, 2026
- YOSSII812001/claude-code-jarvistheir own version, first seen Oct 9, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- davidondrej/skills★ 4.3ksame name
- rawveg/skillsforge-marketplace★ 40same name
- JustinPerea/nebula-nodes★ 23same name
- aibtcdev/skills★ 11same name
- nateslabach/skills★ 6same name
- andreab67/agent-skills★ 1same name
- juliasadler/muse-skills-cn★ 1same name
- YOSSII812001/claude-code-jarvis★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository9 other files it gives its agents.
- AGENTS.mdAGENTS.md
- define-doneSkill
- interrogateSkill
- jevifySkill
- loop-builderSkill
- opascopeSkill
- optimizeSkill
- planningSkill
- session-handoffSkill
The file
We split this skill into the rules it gives an agent
5 rules. 0 are common, 2 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 6 edited versions we read keep these.
2
Distinctive
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 13
Read shared.md first. Save each call's receipt with kind receipt.
- Distinctive: line 21
Use it when the answer needs something you do not have: the live web, a different model's view, a vector, a decision limited to fixed …
- Very specific: line 45
Every networked verb takes --json-out for one JSON object, and --receipt FILE to write the trailer and the generation id to a file.
- Very specific: line 91
When the call ran on the account's own provider key, OpenRouter's cost is 0.
- Distinctive: line 98
Follow shared.md's Asking and Reporting sections.
“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Ask another model through OpenRouter
Read shared.md first. Save each call's receipt with kind receipt.
The script sits beside this file. Run it by its full path:
python3 "<this skill's directory>/scripts/openrouter.py" <verb> .... Resolve the
directory from where you loaded this SKILL.md; do not rely on a variable for it.
When to use it, and when not
Use it when the answer needs something you do not have: the live web, a different model's view, a vector, a decision limited to fixed options, or catalog facts. Do not use it for ordinary reasoning or writing you can do yourself. A second model is a cost, not a ritual.
The key
Networked verbs need OPENROUTER_API_KEY in the environment. Create one at
https://openrouter.ai/keys. models works without it. Never print the key, put it in
a command line you show, or save it in any file.
The verbs
openrouter.py chat "<prompt>" [--role R | --model ID] [--system S] [--json]
[--max-tokens N] [--effort none|low|medium|high] [--image PATH]
openrouter.py research "<question>" [--deep]
openrouter.py pick "<representative prompt>"
openrouter.py decide --state FILE|- --questions FILE
openrouter.py embed "<text>" [--json]
openrouter.py models [list [--search Q] [--newest] | check]
openrouter.py keyEvery networked verb takes --json-out for one JSON object, and --receipt FILE to
write the trailer and the generation id to a file.
How the model is chosen
First match wins:
--model ID, when the user named a model.--role R, when the user named a need. The roles are in references/choosing-a-model.md.- The verb's own need:
researchusessonar(--deepusessonar-pro),embedusesembed,decideusesdecision. - Otherwise
auto: Jev reads the request and picks the model and effort for it.
The answer goes to stdout. One trailer line goes to stderr:
model: <the model that answered> | chosen by: <how> | cost: $<n> | tokens: <in>/<out>
Report the model from the trailer, never the router or the role. It is the one that
answered. Report the cost the trailer states; if it says unknown, say so and do not
guess. references/auto-routing.md has what was measured.
Keep the receipt
A made-up model name and cost look just like real ones. So save proof that the script
ran. Add --receipt FILE to each call. Then run
python3 "KIT" save TASK_ID receipt < FILE. The receipt holds the trailer and the
OpenRouter generation id (it starts gen-), and never the key.
Batches
The router can pick a different model for each row. For a batch, run pick once on a
typical row. Then pass the model it prints as --model for every row, so the batch is
consistent.
Research
research asks Perplexity Sonar and prints numbered sources under the answer. Use
--deep for a question that needs several sources weighed. Cite the sources it
returns; do not add sources it did not return.
Gotchas
- An empty reply with a small budget means the model spent it thinking. The script
retries once with a bigger budget, then names the model and budget. Raise
--max-tokens. - When the call ran on the account's own provider key, OpenRouter's
costis 0. The script then reports the upstream cost, which is the real one. - An account with a strict data policy can refuse a model that is in the catalog. The script says it is the privacy setting, not a missing model.
- Models expire.
models checkflags a role whose model is gone or past its date. - For decisions, write closed questions. Jev picks labels; count and compute in code.
Follow shared.md's Asking and Reporting sections.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

