Skip to content
Back to skills

Openrouter Model Availability

ASecurity

Monitor model availability and implement health checks. Use when building reliable systems that depend on specific models. Trigger with phrases like 'openrouter model status', 'model availability', 'openrouter health check', 'is model available'.

  • 4 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 10, 2026
documentationgoapidocumentation

Works with

  • api

Security analysis

A100/100

Pro scans all 7 files and shows the line behind each finding

Scanned September 10, 2026

npx -y skills add micsapp/micstec-skills --skill openrouter-model-availability --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openrouter Model Availability?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openrouter Model Availability
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/micsapp-openrouter-model-availability/badge)](https://www.skillsdirectory.com/skills/micsapp-openrouter-model-availability)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openrouter-model-availability
description: |
  Monitor model availability and implement health checks. Use when building reliable systems that depend on specific models. Trigger with phrases like 'openrouter model status', 'model availability', 'openrouter health check', 'is model available'.
allowed-tools: Read, Write, Edit, Grep
version: 1.0.0
license: MIT
author: Jeremy Longshore <jeremy@intentsolutions.io>
compatible-with: claude-code, codex, openclaw
---
# Openrouter Model Availability

## Overview

This skill covers monitoring model availability on OpenRouter, implementing health checks, and handling model downtime gracefully.

## Prerequisites

- OpenRouter integration
- List of models your application depends on

## Instructions

1. **Query model status**: Periodically call `GET /api/v1/models` and check if your required models are present; absent models are unavailable
2. **Implement health probes**: Send lightweight test requests (short prompt, `max_tokens: 1`) to each critical model on a schedule to verify end-to-end availability
3. **Track availability metrics**: Log probe results and calculate uptime percentages per model; detect patterns (e.g., models that go down at certain times)
4. **Set up alerts**: Trigger notifications when a critical model fails health checks or disappears from the models list
5. **Automate failover**: When a health check fails, automatically switch to a pre-configured fallback model and log the failover event

## Output

- Health check service that probes critical models on a regular schedule
- Availability dashboard showing uptime percentage per model
- Automated failover that activates when models become unavailable

## Error Handling

| Error | Cause | Fix |
|-------|-------|-----|
| Health check timeout | Model is slow or overloaded | Increase probe timeout to 30s; distinguish between "slow" and "down" |
| False positive alerts | Transient network issues triggering alerts | Require 2-3 consecutive failures before alerting; add probe from multiple locations |
| Model removed from catalog | Provider discontinued the model | Subscribe to OpenRouter changelogs; implement model ID aliasing for easy migration |

See `${CLAUDE_SKILL_DIR}/references/errors.md` for full error reference.

## Examples

See `${CLAUDE_SKILL_DIR}/references/examples.md` for runnable code samples.

## Resources

- [OpenRouter Documentation](https://openrouter.ai/docs)
- [OpenRouter Models](https://openrouter.ai/models)
- [OpenRouter API Reference](https://openrouter.ai/docs/api-reference)
- [OpenRouter Status](https://status.openrouter.ai)

Files in this skill

  • SKILL.md2.5 KB
  • references/checking-model-status.md1.4 KB
  • references/errors.md323 B
  • references/examples.md3.9 KB
  • references/handling-model-unavailability.md2.3 KB
  • references/model-health-monitoring.md2.9 KB
  • references/status-dashboard.md1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.