Open Router
by @ivangdavila
Configure OpenRouter model routing with provider auth, model selection, fallback chains, and cost-aware defaults for stable multi-model workflows.
clawhub install open-routerπ About This Skill
name: Open Router slug: open-router version: 1.0.0 homepage: https://clawic.com/skills/open-router description: Configure OpenRouter model routing with provider auth, model selection, fallback chains, and cost-aware defaults for stable multi-model workflows. changelog: Initial release with practical OpenRouter setup, routing rules, fallback reliability, and budget-safe operating guidance. metadata: {"clawdbot":{"emoji":"π£οΈ","requires":{"bins":["curl","jq"],"env":["OPENROUTER_API_KEY"]},"os":["linux","darwin","win32"]}}
Setup
On first use, read setup.md to align activation boundaries, reliability goals, and routing preferences before making configuration changes.
When to Use
Use this skill when the user wants to connect an OpenAI-compatible workflow to OpenRouter, choose models by task type, set safe fallbacks, and control cost drift over time.
Architecture
Memory lives in ~/open-router/. See memory-template.md for structure.
~/open-router/
βββ memory.md # Active routing profile and constraints
βββ providers.md # Confirmed provider and auth choices
βββ routing-rules.md # Task -> model and fallback policy
βββ incidents.md # Outages, rate limits, and recovery notes
βββ budgets.md # Spend guardrails and optimization actions
Quick Reference
Use the smallest relevant file for the current task.
| Topic | File |
|-------|------|
| Setup and activation preferences | setup.md |
| Memory template | memory-template.md |
| Authentication and provider wiring | auth-and-provider.md |
| Routing patterns by workload | routing-playbooks.md |
| Reliability and fallback handling | fallback-reliability.md |
| Cost controls and spend reviews | cost-guardrails.md |
Core Rules
1. Start from Workload Classes, Not Model Hype
2. Keep Authentication Explicit and Verifiable
OPENROUTER_API_KEY from the local environment, never pasted into logs or chat memory.3. Design Fallbacks for Failure Modes, Not Convenience
4. Enforce Cost Boundaries Before Throughput Tuning
5. Change One Layer at a Time
6. Record Decisions for Repeatability
Common Traps
External Endpoints
These endpoints are used only to discover model metadata and execute routed inference requests under explicit user task intent.
| Endpoint | Data Sent | Purpose | |----------|-----------|---------| | https://openrouter.ai/api/v1/models | none or auth header only | Discover current model catalog and metadata | | https://openrouter.ai/api/v1/chat/completions | user prompt content and selected model id | Execute routed inference requests |
No other data is sent externally.
Security & Privacy
Data that leaves your machine:
Data that stays local:
~/open-router/.This skill does NOT:
~/open-router/ for its own state.Trust
By using this skill, prompt content is sent to OpenRouter for model execution. Only install if you trust this service with your data.
Related Skills
Install withclawhub install if user confirms:
api β API request design, payload shaping, and response validation patternsauth β credential handling and auth troubleshooting workflowsmodels β model comparison and selection guidancemonitoring β runtime health checks and incident tracking practicesFeedback
clawhub star open-routerclawhub syncβ‘ When to Use
Use this skill when the user wants to connect an OpenAI-compatible workflow to OpenRouter, choose models by task type, set safe fallbacks, and control cost drift over time.
βοΈ Configuration
On first use, read setup.md to align activation boundaries, reliability goals, and routing preferences before making configuration changes.