A new model drops. You ship it same day.
New models become same-day features, not backlog tickets.
OpenRouter Skill
A reusable skill that gives your AI coding agent ready-made patterns for model discovery, image generation, cost lookup, routing, and production playbooks — so the agent writes better OpenRouter code instead of starting from scratch.
A skill is a knowledge pack your AI coding agent loads to write better integration code — templates, playbooks, and structured references it applies instead of starting from scratch.
→ npx skills add bnishit/openrouter-skill
What You Can Do With This
New models become same-day features, not backlog tickets.
Post-hoc cost lookup per generation, not ongoing monitoring.
Catalog filtering and fallback patterns, not an auto-routing engine.
Operational simplicity across every modality.
Image generation as a product workflow, not a one-off demo.
Ship production-grade on the first deploy.
How It Works
npx skills add bnishit/openrouter-skillOne command installs the skill, templates, helpers, tests, and playbooks. Open your terminal and run it.
Talk to your AI agent. Mention the skill and say what you need:
Use the OpenRouter skill to add image generation to this app.
Use the OpenRouter skill to build an agentic tool-calling loop.
Use the OpenRouter skill to add a model picker with free-model filtering.
Use the OpenRouter skill to look up exact cost per generation.
Use the OpenRouter skill to set up provider routing with fallbacks.
Use the OpenRouter skill to add PDF and image chat support.
Your agent scaffolds production-ready code using the skill's knowledge:
Everything Included
Search 300+ models by capability, price, or provider. Build a picker in minutes.
See how →Generate images via chat completions. Icons, OG images, social assets — with presets.
See how →Send text, images, and PDFs in the same conversation. Parse any response type.
See how →Look up exact cost per generation. No estimates. Real billing data.
See how →Route to cheapest provider. Fall back when one goes down. No manual switching.
See how →Agentic loops with safety limits. Structured output with validation.
See how →Filter by provider. Find zero-cost models automatically.
See how →Next.js and Express routes. Copy, not configure.
See how →Icons, OG images, banners. Generate, preview, persist.
See how →Fallback rules, logging, audit trails. Encoded, not remembered.
See how →Proxies block untrusted URLs. Allowlist what you trust.
See how →Smoke tests and doc-check scripts. Know when OpenRouter changes.
See how →Get Started
npx skills add bnishit/openrouter-skill
git clone https://github.com/bnishit/openrouter-skill.git
After install, your AI agent gains access to the full OpenRouter skill — model catalogs, multimodal patterns, cost tracking, routing playbooks, and starter templates. Invoke with $openrouter-integration in any prompt.
Who This Is For
Building a product with AI models for chat, search, content, images, documents. Want access to every model through one API without rewiring when you switch providers.
AI features in production, bill growing. Need exact per-generation cost data, route to cheaper providers for low-stakes tasks, and know where the money goes.
On a deadline. Need starter templates that work, fallback handling that doesn't require incident-driven learning, and the ability to add models without touching integration code.
Still Have Questions?
The SDK is the transport layer — HTTP calls and auth. This skill is the decision layer — which model to pick, how to route, what to do on failure, how to audit costs. They complement each other.
No. Works with any agent supporting skills install. Templates produce standard Next.js/Express code. Stop using the skill, keep all generated code.
The skill fetches catalogs live from the OpenRouter API — it never ships hardcoded model lists. Run check_openrouter_docs.py --quick to detect API drift.
The skill enforces server-side key management. Proxy route templates handle auth headers plus OpenRouter attribution headers. Keys never touch the browser.
Yes. Every capability is modular. Use just image generation, or just cost tracking, or just routing playbooks. Pick what you need.
They encode specific patterns: tool-call loop limits, Zod schema validation, generation-ID persistence, provider fallback ordering, remote-asset URL allowlisting. Extracted from real production incidents, not theoretical best practices.
You can, and you should for reference. The skill exists because reading docs doesn't prevent you from rebuilding the same integration scaffolding every project. It encodes the patterns that worked — model filtering, provider fallbacks, cost lookup, streaming setup, multimodal request shapes — so your agent applies them directly instead of translating docs into code from scratch each time.