openrouter-fallback-config
Configure model fallback chains for high availability. Use when building fault-tolerant LLM systems. Trigger with phrases like 'openrouter fallback', 'openrouter backup model', 'openrouter redundancy', 'model failover'.
Install
mkdir -p .claude/skills/openrouter-fallback-config && curl -L -o skill.zip "https://mcp.directory/api/skills/download/2756" && unzip -o skill.zip -d .claude/skills/openrouter-fallback-config && rm skill.zipInstalls to .claude/skills/openrouter-fallback-config
About this skill
Openrouter Fallback Config
Overview
This skill shows how to configure fallback model chains so requests automatically retry with alternative models when the primary model is unavailable or errors.
Prerequisites
- OpenRouter integration
- Multiple models identified as primary and fallback options
Instructions
- Use OpenRouter's native fallback: Pass an array of model IDs in the
modelsfield (instead ofmodel) — OpenRouter will try each in order until one succeeds - Set per-model parameters: Use the
routefield with"fallback"strategy to let OpenRouter handle failover automatically - Implement client-side fallback: For more control, catch 5xx or timeout errors and retry with the next model in your own fallback list
- Configure timeout thresholds: Set
request_timeoutper attempt so slow models fail fast and the fallback triggers quickly - Test the chain: Temporarily use an invalid model ID as primary to verify your fallback chain activates correctly
Output
- A fallback chain that transparently retries with alternative models
- Reduced downtime when individual models or providers have outages
- Logs showing which model ultimately served each request
Error Handling
| Error | Cause | Fix |
|---|---|---|
| All fallbacks exhausted | Every model in the chain failed | Add more diverse fallbacks across providers; alert on full chain failure |
| Slow cascading retries | Each model timing out sequentially | Reduce per-model timeout to 10-15 seconds; use parallel fallback instead |
| Inconsistent responses | Different models in the chain have different capabilities | Ensure all fallback models support the features your prompt uses (e.g., tool calling) |
See ${CLAUDE_SKILL_DIR}/references/errors.md for full error reference.
Examples
See ${CLAUDE_SKILL_DIR}/references/examples.md for runnable code samples.
Resources
More by jeremylongshore
View all skills by jeremylongshore →You might also like
flutter-development
aj-geddes
Build beautiful cross-platform mobile apps with Flutter and Dart. Covers widgets, state management with Provider/BLoC, navigation, API integration, and material design.
drawio-diagrams-enhanced
jgtolentino
Create professional draw.io (diagrams.net) diagrams in XML format (.drawio files) with integrated PMP/PMBOK methodologies, extensive visual asset libraries, and industry-standard professional templates. Use this skill when users ask to create flowcharts, swimlane diagrams, cross-functional flowcharts, org charts, network diagrams, UML diagrams, BPMN, project management diagrams (WBS, Gantt, PERT, RACI), risk matrices, stakeholder maps, or any other visual diagram in draw.io format. This skill includes access to custom shape libraries for icons, clipart, and professional symbols.
godot
bfollington
This skill should be used when working on Godot Engine projects. It provides specialized knowledge of Godot's file formats (.gd, .tscn, .tres), architecture patterns (component-based, signal-driven, resource-based), common pitfalls, validation tools, code templates, and CLI workflows. The `godot` command is available for running the game, validating scripts, importing resources, and exporting builds. Use this skill for tasks involving Godot game development, debugging scene/resource files, implementing game systems, or creating new Godot components.
ui-ux-pro-max
nextlevelbuilder
"UI/UX design intelligence. 50 styles, 21 palettes, 50 font pairings, 20 charts, 8 stacks (React, Next.js, Vue, Svelte, SwiftUI, React Native, Flutter, Tailwind). Actions: plan, build, create, design, implement, review, fix, improve, optimize, enhance, refactor, check UI/UX code. Projects: website, landing page, dashboard, admin panel, e-commerce, SaaS, portfolio, blog, mobile app, .html, .tsx, .vue, .svelte. Elements: button, modal, navbar, sidebar, card, table, form, chart. Styles: glassmorphism, claymorphism, minimalism, brutalism, neumorphism, bento grid, dark mode, responsive, skeuomorphism, flat design. Topics: color palette, accessibility, animation, layout, typography, font pairing, spacing, hover, shadow, gradient."
nano-banana-pro
garg-aayush
Generate and edit images using Google's Nano Banana Pro (Gemini 3 Pro Image) API. Use when the user asks to generate, create, edit, modify, change, alter, or update images. Also use when user references an existing image file and asks to modify it in any way (e.g., "modify this image", "change the background", "replace X with Y"). Supports both text-to-image generation and image-to-image editing with configurable resolution (1K default, 2K, or 4K for high resolution). DO NOT read the image file first - use this skill directly with the --input-image parameter.
fastapi-templates
wshobson
Create production-ready FastAPI projects with async patterns, dependency injection, and comprehensive error handling. Use when building new FastAPI applications or setting up backend API projects.
Related MCP Servers
Browse all serversBoost productivity with Task Master: an AI-powered tool for project management and agile development workflows, integrat
Access official Microsoft Docs instantly for up-to-date info. Integrates with ms word and ms word online for seamless wo
Guide your software projects with structured prompts from requirements to code using the waterfall development model and
SEO Research MCP brings powerful SEO research capabilities directly into your AI coding assistant. Using the Model Conte
Enhance prompt engineering for ChatGPT with ChuckNorris, fetching top prompts for LLMs. Boost prompts engineering for re
Effortlessly manage Netlify projects with AI using the Netlify MCP Server—automate deployment, sites, and more via natur
Stay ahead of the MCP ecosystem
Get weekly updates on new skills and servers.