← 返回
安全合规 Key 中文

Open Router

Configure OpenRouter model routing with provider auth, model selection, fallback chains, and cost-aware defaults for stable multi-model workflows.
配置 OpenRouter 模型路由,支持提供商认证、模型选择、回退链以及成本感知默认设置,确保多模型工作流稳定。
ivangdavila
安全合规 clawhub v1.0.0 1 版本 99863 Key: 需要
★ 0
Stars
📥 729
下载
💾 10
安装
1
版本
#latest

概述

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.

TopicFile
-------------
Setup and activation preferencessetup.md
Memory templatememory-template.md
Authentication and provider wiringauth-and-provider.md
Routing patterns by workloadrouting-playbooks.md
Reliability and fallback handlingfallback-reliability.md
Cost controls and spend reviewscost-guardrails.md

Core Rules

1. Start from Workload Classes, Not Model Hype

  • Classify requests first: coding, analysis, extraction, summarization, or long-context synthesis.
  • Map each class to a primary model and a fallback before changing any defaults.

2. Keep Authentication Explicit and Verifiable

  • Use OPENROUTER_API_KEY from the local environment, never pasted into logs or chat memory.
  • Validate auth with a minimal request before applying routing changes.

3. Design Fallbacks for Failure Modes, Not Convenience

  • Separate fallback reasons: rate limit, provider outage, latency spike, or output quality failure.
  • Keep at least one fallback from a different provider family for resilience.

4. Enforce Cost Boundaries Before Throughput Tuning

  • Set cost ceilings by task class and check expected token burn before broad rollout.
  • Route low-stakes tasks to cheaper models and reserve premium models for high-impact tasks.

5. Change One Layer at a Time

  • Modify either model selection, fallback policy, or budget limits in a single iteration.
  • After each change, run a quick verification prompt set and record outcome.

6. Record Decisions for Repeatability

  • Save the final routing policy, rationale, and known tradeoffs in memory.
  • Reuse proven policies instead of repeatedly rebuilding from scratch.

Common Traps

  • Choosing one model for every task -> higher cost and unstable quality under varied workloads.
  • Using same-family fallback chain only -> cascading failures during provider-specific incidents.
  • Ignoring token limits for long inputs -> truncated responses and hidden quality loss.
  • Changing routing and budgets simultaneously -> unclear root cause when quality drops.
  • Running without verification prompts -> broken routing detected only after user-facing failures.

External Endpoints

These endpoints are used only to discover model metadata and execute routed inference requests under explicit user task intent.

EndpointData SentPurpose
------------------------------
https://openrouter.ai/api/v1/modelsnone or auth header onlyDiscover current model catalog and metadata
https://openrouter.ai/api/v1/chat/completionsuser prompt content and selected model idExecute routed inference requests

No other data is sent externally.

Security & Privacy

Data that leaves your machine:

  • Prompt text and selected model metadata sent to OpenRouter when inference is requested.

Data that stays local:

  • Routing notes and preferences under ~/open-router/.
  • Local environment variable references and verification logs.

This skill does NOT:

  • Request raw API keys in chat.
  • Store plaintext secrets in skill memory files.
  • Modify files outside ~/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 with clawhub install if user confirms:

  • api — API request design, payload shaping, and response validation patterns
  • auth — credential handling and auth troubleshooting workflows
  • models — model comparison and selection guidance
  • monitoring — runtime health checks and incident tracking practices

Feedback

  • If useful: clawhub star open-router
  • Stay updated: clawhub sync

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 00:21 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,356 📥 318,119
security-compliance

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,713
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 438 📥 147,522