openrouter-multi-provider
Skill by jeremylongshore
Compares and routes AI models from several providers through OpenRouter's single API. Built for developers who want to benchmark OpenAI, Anthropic, Google, Meta and Mistral models, pin or fail over providers, or use their own provider keys.
Install openrouter-multi-provider
Built from the published package, never by AI.
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/openrouter-multi-provider ~/.claude/skills/openrouter-multi-providerRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install openrouter-multi-provider in Claude Code
git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/openrouter-multi-provider ~/.gemini/antigravity-cli/skills/openrouter-multi-providerAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install openrouter-multi-provider in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
OpenRouter Multi-Provider is a skill for Claude Code that uses OpenRouter's unified API to reach models from OpenAI, Anthropic, Google, Meta and Mistral with one API key and endpoint. Model IDs use a provider/model-name format, so the same OpenAI SDK code works for any provider by changing the model ID. The skill covers listing providers, comparing models on the same prompt, and routing requests.
It includes a provider strength matrix for shortlisting models by task, provider routing options to pin a provider or fail over to another, and BYOK setup for using your own provider keys. It also has a helper that normalizes JSON mode across providers. It is aimed at developers who compare providers, build cross-provider workflows, or want higher availability.
Written from the project's SKILL.md and checked against it.
What it can do
- Provider censusGroups OpenRouter model IDs by provider prefix using a curl and jq query.
- Cross-provider comparisonRuns the same prompt across several models and records latency, tokens and the serving endpoint.
- Provider routingUses provider.order and allow_fallbacks to pin a provider or fail over to another.
- BYOK setupRoutes requests through your own provider key added in the OpenRouter dashboard.
- Feature normalizationHandles JSON mode with response_format on OpenAI models and a system prompt elsewhere.
What you need
- OpenRouter API key exported as OPENROUTER_API_KEY
- curl and jq
- Python 3.8+ with the OpenAI SDK
- Your own provider API key, only for BYOK
Try asking
- Compare Claude, GPT-4o and Gemini on a CAP theorem question
- List the providers on OpenRouter and how many models each has
- Pin my request to Anthropic only, with no fallback providers
Good to know
- Models differ in output quality, feature support and data policies.
- Feature normalization in the source covers JSON mode only.
- BYOK requires your own provider key added in the OpenRouter dashboard.
Security check
B- Allowed to use Write, Edit without limitsIn
SKILL.md
Checked automatically: skills/.curated/openrouter-multi-provider/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: ReadWriteEditGrepBash(python3:*)Bash(curl:*)Bash(jq:*)
Alternatives to openrouter-multi-provider
All alternatives →Aligns a Qwen Code feature with a Codex or Claude Code reference agent. It runs both under the same scenario, captures HTTP and terminal traces, and compares them until behavior matches.
Searches, views, creates, updates, and deletes the user's Google Contacts from an AI assistant. It is for people who want to manage their address book through conversation. A one-time Google connect is required before it returns data.
Guides an AI assistant on error handling choices. It covers when to use Result, Option, ? propagation, unwrap, expect and panic, plus anyhow and thiserror.
Caveman is an agent skill that makes an AI assistant reply in a terse style. It cuts filler and keeps technical facts, code, commands and errors exact. It is built for users who want shorter, cheaper replies.
docs-sync audits or updates English SDK documentation against the requested implementation scope. It is for maintainers who want docs to match main branch features, configuration options, and defaults.
Guides an AI assistant through setting up and running monorepos with pnpm workspaces, Turborepo and Nx. Aimed at developers who need faster builds, shared code and managed dependencies across multiple packages.
Compare with agent-reproduce-align, google_contacts or m06-error-handling
openrouter-multi-provider: common questions
Do I need a separate API key for each provider?
No. The source says one OpenRouter API key covers every provider listed. BYOK is optional and uses your own provider key.
How do I stop requests from going to other providers?
Set provider.order and allow_fallbacks to False. The source says this forces one provider, for example for regulated data.
What does BYOK cost?
The source says the first 1M requests per month are free through OpenRouter. After that, it costs 5% of the normal provider cost.
How do I install openrouter-multi-provider?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is openrouter-multi-provider free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is openrouter-multi-provider safe to use?
It scores 76 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.
What are alternatives to openrouter-multi-provider?
Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.
