2.5k
GitHub Stars
8
Bundled Files
2 months ago
Catalog Refreshed
3 months ago
First Indexed
Readme & install
Copy the install command, review bundled files from the catalogue, and read any extended description pulled from the listing source.
Installation
Preview and clipboard use veilstrat where the catalogue uses aiagentskills.
npx veilstrat add skill openclaw/skills --skill open-router- _meta.json279 B
- auth-and-provider.md1.1 KB
- cost-guardrails.md1.1 KB
- fallback-reliability.md1.3 KB
- memory-template.md1.3 KB
- routing-playbooks.md1.4 KB
- setup.md1.4 KB
- SKILL.md5.0 KB
Overview
This skill configures OpenRouter model routing with provider authentication, model selection, fallback chains, and cost-aware defaults to support stable multi-model workflows. It keeps routing policies, provider choices, incidents, and budgets in a local memory directory for repeatable operations. The skill is designed to make routing decisions explicit, verifiable, and resilient to provider-specific failures. It minimizes cost drift by enforcing task-class budgets and cost-aware defaults.
How this skill works
On first use you are directed to a setup document to define activation boundaries, reliability targets, and routing preferences before changing configuration. The skill stores routing profiles and constraints under ~/open-router/, including providers, routing rules, incidents, and budget guardrails. It validates provider auth with a minimal request, discovers model metadata from OpenRouter, and routes inference requests to selected models while applying fallbacks and cost rules. Changes are applied one layer at a time and recorded for repeatability.
When to use it
- Connecting an OpenAI-compatible workflow to OpenRouter while keeping provider auth explicit.
- Selecting models by task class (coding, summarization, extraction, long-context synthesis, analysis).
- Creating resilient fallback chains that span provider families to avoid cascading failures.
- Enforcing cost ceilings and routing low-stakes tasks to cheaper models.
- Verifying routing and budget changes with quick verification prompts before rollout.
Best practices
- Classify workloads first and map each class to a primary model plus at least one fallback from a different provider family.
- Store routing state and rationale under ~/open-router/ and save verification outcomes for repeatability.
- Validate OPENROUTER_API_KEY via a minimal test request; never paste keys into logs or chat memory.
- Design fallbacks for specific failure modes (rate limit, outage, latency, quality) rather than convenience.
- Change only one layer at a time (model selection, fallback policy, or budget) and rerun verification prompts after each change.
Example use cases
- Route high-impact analysis tasks to premium models while directing batch extraction jobs to cost-optimized models with strict token budgets.
- Configure multi-provider fallback chains so a coding completion falls back to a different provider if rate limits occur.
- Maintain an incident log and switch routing rules automatically when an outage is recorded, preserving low-cost fallback behavior.
- Run a verification prompt suite after each routing update and store outcomes in memory for audit and rollback.
- Tune cost guardrails by task class to prevent spend drift during a broad rollout of a new model.
FAQ
API keys must stay in local environment variables (OPENROUTER_API_KEY). The skill never requests keys in chat or stores plaintext secrets in memory files.
What happens if a provider is rate-limited?
Fallbacks are chosen by failure mode; the routing rules will attempt a different provider (preferably different family) and record the incident in incidents.md.