openrouter
Skill13 starsChanged 28 days agoMITView on GitHub
Verification Tier: code_example_tested | Last Verified: 2026-11-18 Official Docs: https://openrouter.ai/docs/quickstart
- Reads credentials
- Installs packages
12 other projects use a version of this.
Adopted by
Most recently taken up by
- karanmrn/karanagentskillstheir own version, first seen Nov 29, 2026
- karanmrn/kstacktheir own version, first seen Nov 29, 2026
- alexdcd/Mafia-Claude-Skillstheir own version, first seen Nov 29, 2026
- JustinPerea/nebula-nodestheir own version, first seen Nov 23, 2026
- davidondrej/skillstheir own version, first seen Nov 15, 2026
- andreab67/agent-skillstheir own version, first seen Nov 11, 2026
Used with
Projects with it also use interrogate.
Other files people use alongside this one.
Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
jaydubya818Skillinterrogate
Use when a change's assumptions, evidence, or design need adversarial review.
Also in 3 projects that use this
Other versions12 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 12
- davidondrej/skills★ 4.4ksame name
- alexdcd/Mafia-Claude-Skills★ 71same name
- rawveg/skillsforge-marketplace★ 40same name
- JustinPerea/nebula-nodes★ 23same name
- aibtcdev/skills★ 11same name
- karanmrn/karanagentskills★ 11same name
- karanmrn/kstack★ 11same name
- nateslabach/skills★ 6same name
- andreab67/agent-skills★ 1same name
- juliasadler/muse-skills-cn★ 1same name
2 more not listed
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 repository140 other files it gives its agents.
- algoliaSkill
- anthropic-mcpSkill
- anthropicSkill
- argo-cdSkill
- auth0Skill
- aws-bedrockSkill
- aws-dynamodbSkill
- aws-lambdaSkill
- aws-s3Skill
- azure-blob-storageSkill
- azure-openaiSkill
- better-authSkill
- better-sqlite3Skill
- biomeSkill
- braintreeSkill
- bullmqSkill
- caddySkill
- chromadbSkill
- clerkSkill
- cloudflare-d1Skill
- cloudflare-r2Skill
- cloudflareSkill
- cloudflare-workersSkill
- cloudinarySkill
- cohereSkill
- convexSkill
- datadogSkill
- deepgramSkill
- deepseekSkill
- deno-deploySkill
- digitaloceanSkill
- discordSkill
- dockerSkill
- drizzleSkill
- elevenlabsSkill
- eslintSkill
- expressSkill
- fastapiSkill
- firebaseSkill
- flySkill
- geminiSkill
- github-actionsSkill
- githubSkill
- gitSkill
- google-cloud-runSkill
- google-cloud-storageSkill
- google-maps-platformSkill
- grafanaSkill
- groqSkill
- helmSkill
- honoSkill
- inngestSkill
- jaegerSkill
- jwtSkill
- kafkaSkill
- kubernetesSkill
- langchainSkill
- langfuseSkill
- langgraphSkill
- lemon-squeezySkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. 0 are common, 0 are distinctive, and 3 are very specific to this project.
0
Common
Most of the 10 edited versions we read keep these.
0
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 24
Key & credit inspection: Call GET https://openrouter.ai/api/v1/key to monitor remaining credit limits and rate-limit quota programmatically.
- Very specific: line 25
Data policy controls: Use provider: { data_collection: "deny" } when zero-data-retention providers are required.
- Very specific: line 33
Never expose OPENROUTER_API_KEY in frontend apps.
“Common” is measured: kept by at least 6 in 10 of the 10 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
OpenRouter API Skill
Verification Tier:
code_example_tested| Last Verified: 2026-11-18
Official Docs: https://openrouter.ai/docs/quickstart
Overview
OpenRouter provides a single OpenAI-compatible API (https://openrouter.ai/api/v1) and official @openrouter/sdk to route requests across multiple LLM providers with automatic failover, provider preferences, and unified billing.
Installation
npm install @openrouter/sdk
# Or OpenAI-compatible client:
npm install openaiAuthentication
Send Authorization: Bearer <OPENROUTER_API_KEY> (keys start with sk-or-v1-). Optionally include HTTP-Referer (your app URL) and X-OpenRouter-Title (your app name) for attribution on OpenRouter rankings.
export OPENROUTER_API_KEY="sk-or-v1-..."Core Concepts
- Provider routing & fallbacks: Pass
models: ["primary/model", "backup/model"]to fall back automatically when an upstream provider returns errors or rate limits. - Key & credit inspection: Call
GET https://openrouter.ai/api/v1/keyto monitor remaining credit limits and rate-limit quota programmatically. - Data policy controls: Use
provider: { data_collection: "deny" }when zero-data-retention providers are required.
Error Handling & Rate Limits
- Free-tier (
:free) models are strictly rate-limited (e.g., 20 RPM and daily caps). Paid credits scale by account balance. - Handle HTTP
402(insufficient credits — do not retry blindly),403(moderation/policy),429(rate limit — respect backoff), and502/503(upstream provider outage — trigger fallback model).
Security Best Practices
- Enforce per-key spending limits in the OpenRouter dashboard or via Provisioning Keys.
- Never expose
OPENROUTER_API_KEYin frontend apps; proxy via backend endpoints.
AI Pitfalls
- Omitting
https://openrouter.ai/api/v1baseURL when using the OpenAI SDK. - Retrying HTTP
402 Payment Requiredin an infinite loop. - Assuming all routed models share identical context limits or JSON-mode behavior without checking
providerconstraints.
Production Checklist
- API key has an explicit spend cap configured
HTTP-RefererandX-OpenRouter-Titleheaders set for observability- Fallback model list configured for critical paths
- Distinct handling for
402,429, and5xxresponses
References
Related skills
openai— alternative tolangfuse— works well withvercel-ai-sdk— integrates with
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.

