Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

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.

  • Score 76
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

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-provider

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install openrouter-multi-provider in Claude Code

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 →

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.

openrouter-multi-provider Install

Add to stack

Loading.