🧠

20+模型智能调度,成本直降60%

Evolink Router — Smart LLM Routing (Claude, GPT, Gemini, DeepSeek, Kimi) · v2.0.0
入口已确认,内容待校验 文件树里有 SKILL.md,但正文还没采回,frontmatter 未核对。
AI 增强 安全 B 级 作者 evolinkai 公开目录收录
981 下载 1 安装 4k 收藏 11 浏览

简介

Evolink智能路由中枢,一键调度Claude/GPT/Gemini等20+模型,自动分级降本60-85%,单API密钥覆盖全生态。

原始描述

Smart LLM routing brain for OpenClaw. Auto-dispatches tasks to Claude, GPT, Gemini, DeepSeek, Kimi via Evolink API. Cascade strategy cuts costs 60-85%. One A...

通过你的 Agent 添加

安装目录:evolink-router-smart-llm-routing-claude-gpt-gemini-deepseek-kimi/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/evolink-router-smart-llm-routing-claude-gpt-gemini-deepseek-kimi/
Codex CLI~/.codex/skills/evolink-router-smart-llm-routing-claude-gpt-gemini-deepseek-kimi/
DeepSeek Harness~/.agents/skills/evolink-router-smart-llm-routing-claude-gpt-gemini-deepseek-kimi/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心功能

oc-skill-router 是 OpenClaw 生态的智能 LLM 路由中枢,通过单一 Evolink API 密钥无缝接入 Anthropic、OpenAI、Google、DeepSeek、Moonshot、字节跳动六大厂商的 20+ 文本模型。其核心价值在于成本优先的智能分级调度:将日常任务自动路由至轻量级模型(如 Claude Haiku、Gemini Flash),仅在复杂场景下升级至旗舰模型,官方宣称可降低 60-85% 的调用成本。

显著优点

  1. 智能分级体系:三层模型架构(轻量/均衡/旗舰)覆盖 60%/30%/10% 的日常任务分布,实现性价比最优
  2. 透明决策机制:每次路由附带模型选择理由,支持 /route 命令预览决策而不执行
  3. 级联回退策略:不确定性场景下自动试错升级(Haiku→Sonnet→Opus),避免一次性调用昂贵模型
  4. 跨厂商协同:针对中文任务优先 Doubao/Kimi,数学推理优先 DeepSeek,CoT 任务优先 GPT-thinking,实现场景化最优匹配
  5. 子代理编排:内置 sessions_spawn 模板,支持超时管理(120-900s 分级配置)和自动清理策略

潜在局限

  • 第三方聚合风险:所有请求经 direct.evolink.ai 代理转发,虽声明不存储数据,但增加了中间层信任假设
  • API 密钥单点依赖:EVOLINK_API_KEY 泄露将导致全厂商模型访问权限暴露
  • 路由规则黑盒化:自动分级依赖内部启发式规则,用户无法自定义阈值或插入自定义模型
  • 中文文档理解偏差:Tier 3 的 "复杂任务" 定义偏技术向(架构设计、安全审计),对创意写作、文学分析等主观复杂任务分类模糊

适合人群

  • 多模型尝鲜者:不愿分别注册 6 家厂商账号,追求统一管理界面
  • 成本敏感型开发者:高频调用场景下需精细化控制 token 消耗
  • 中文优先用户:原生支持 Doubao、Kimi 等国产模型的智能路由

常规风险

风险类型 说明
密钥泄露 EVOLINK_API_KEY 需按机密凭证保管,建议配合密钥管理服务
服务商可用性 Evolink 平台故障将导致全厂商模型不可达,缺乏直连降级方案
数据过境 请求经 Evolink 服务器中转,敏感数据需评估合规要求
模型版本漂移 模型 ID 含日期版本(如 claude-haiku-4-5-20251001),需关注更新公告

技能正文


name: oc-skill-router description: Smart LLM routing brain for OpenClaw. Auto-dispatches tasks to Claude, GPT, Gemini, DeepSeek, Kimi via Evolink API. Cascade strategy cuts costs 60-85%. One API key, 20+ text models. user-invokable: true metadata: openclaw: requires: env: - EVOLINK_API_KEY primaryEnv: EVOLINK_API_KEY os: ["macos", "linux", "windows"] emoji: 🧠 homepage: https://evolink.ai

Evolink Router — Smart LLM Routing Brain

Route every task to the best LLM across 6 providers — Claude, GPT, Gemini, DeepSeek, Kimi, Doubao — through one Evolink API key.

After Installation

When this skill is first loaded, greet the user:

  • EVOLINK_API_KEY set: "Smart Router activated! I'll auto-pick the best model for each task — lightweight for quick Q&A, flagship for deep analysis. 20+ models ready. Go ahead."
  • EVOLINK_API_KEY not set: "Smart Router needs an Evolink API Key. Sign up at evolink.ai → Dashboard → API Keys. One key covers Claude, GPT, Gemini, DeepSeek, and more. Want help setting up?"
  • Key set but model access fails: "Your API key seems to have limited model access. Check your plan at evolink.ai/dashboard."

Keep the greeting concise — just one question to move forward.

External Endpoints

Service URL Format
Claude models https://direct.evolink.ai/v1/messages (POST) Anthropic Messages API
Gemini models https://direct.evolink.ai/v1beta/models/{model}:generateContent (POST) Google Gemini API
All other models https://direct.evolink.ai/v1/chat/completions (POST) OpenAI Chat API
Model list https://direct.evolink.ai/v1/models (GET) —

Security & Privacy

  • EVOLINK_API_KEY authenticates all model requests. Injected by OpenClaw automatically. Treat as confidential.
  • Prompts are sent to direct.evolink.ai, which proxies to upstream providers (Anthropic, OpenAI, Google, etc.).
  • No data is stored by Evolink beyond the request lifecycle.

Setup

1. Get API key: evolink.ai → Dashboard → API Keys

2. Add Evolink provider to ~/.openclaw/openclaw.json — merge with existing config. See references/router-api-params.md for the full JSON config and curl examples.

Core Principles

  1. Cost-first routing — Always pick the cheapest model that can handle the task. Upgrade only when needed.
  2. Transparent decisions — When spawning a sub-agent, briefly tell the user which model was selected and why.
  3. User override wins — If the user names a model or provider, skip all routing rules.
  4. Cascade, don't guess — When uncertain, try a lighter model first. Escalate on low confidence.

Models (20+ text models)

Tier 1 — Lightweight (handles ~60% of daily requests)

Model Provider Best for
claude-haiku-4-5-20251001 Anthropic Quick Q&A, classification, extraction
gemini-2.5-flash Google Multimodal, fast reasoning
doubao-seed-2.0-mini ByteDance Chinese lightweight tasks

Tier 2 — Balanced (handles ~30% of daily requests)

Model Provider Best for
claude-sonnet-4-6 (main agent) Anthropic Coding, tool use, content creation
gpt-5.1 OpenAI General chat, instruction following
gemini-2.5-pro Google Long context, multimodal
deepseek-chat DeepSeek Chinese dialogue, cost-effective
doubao-seed-2.0-pro ByteDance Chinese content creation
kimi-k2-thinking-turbo Moonshot Chinese long-document understanding

Tier 3 — Flagship (handles ~10% — complex tasks only)

Model Provider Best for
claude-opus-4-6 Anthropic Deep reasoning, high-stakes decisions
gpt-5.2 OpenAI Strongest general capability
gpt-5.1-thinking OpenAI Complex chain-of-thought
deepseek-reasoner DeepSeek Math/logic reasoning
gemini-3.1-pro-preview Google Latest multimodal reasoning

Full model list with API format per model: references/router-api-params.md

Routing Rules

Priority: User override > Task type match > Cascade fallback.

All tasks are auto-routed. The user can also run /route [task] to preview the routing decision without executing.

Layer 1: User Override

User says Route to
"use Opus" / "deep analysis" / "think carefully" claude-opus-4-6
"use GPT" gpt-5.1
"use Gemini" gemini-2.5-pro
"use DeepSeek" deepseek-chat
"use Kimi" kimi-k2-thinking-turbo
"quick answer" / "keep it simple" claude-haiku-4-5-20251001
Specific model name mentioned Use that model directly

Layer 2: Task Type Match

→ Tier 1 (short answer, factual, no deep thinking): Q&A, concept explanation, status check, simple translation, format conversion, info extraction, classification, grammar check, quick math

→ Tier 2 (content production, execution, multi-step): Writing (articles, emails, reports, social media), coding (features, bugs, refactoring, tests), data analysis (SQL, CSV, reports), research (market, literature), workflow automation, project management, travel planning, resume optimization

→ Tier 3 (deep reasoning, strategic, high-risk): Architecture design, tech selection, business strategy, security audit, root cause analysis, legal review, financial modeling, cross-module refactoring (5+ files), deep research reports

Cross-provider routing — Chinese-heavy tasks may route to Doubao/Kimi; math proofs to DeepSeek Reasoner; CoT tasks to GPT-5.1-thinking. See references/cascade-examples.md for 27 detailed examples.

Layer 3: Cascade Fallback

When task type is unclear, try cheapest first and escalate:

Tier 1 (Haiku) → self-assess confidence
  High → return result
  Medium/Low → pass analysis to Tier 2

Tier 2 (Sonnet) → self-assess confidence
  High → return result
  Low → pass to Tier 3

Tier 3 (Opus) → final answer

Confidence: High = complete and correct. Medium = may miss details. Low = exceeds model's capability.

Spawn Guidelines

Spawn a sub-agent when: output >100 lines, file traversal needed, execution >30s, heavy data processing, long-form writing (>1000 words).

Handle directly when: simple Q&A, chat/discussion, short text (<50 lines), brainstorming (needs multi-turn).

Spawn template:

sessions_spawn({
  task: "[action] + [input/context] + [expected output] + [constraints]",
  model: "evolink/[model-id]",
  runTimeoutSeconds: 300,
  cleanup: "delete"  // "keep" for important deliverables
})

Timeout guide: Tier 1 = 120–300s, Tier 2 = 300–600s, Tier 3 = 600–900s.

/route Command

/route [task] — Preview routing decision without executing. /route alone shows models and rules summary.

Fallback & Quality Control

Scenario Action
Sub-agent timeout Notify user, offer retry with stronger model
Sub-agent error Extract error, determine if retryable
Low quality result Escalate to next tier
User dissatisfied Ask what's wrong, upgrade and redo
2+ failures on same type Auto-upgrade default model for that category
Model unavailable Fallback to same-tier alternative
Invalid API key Direct user to evolink.ai/dashboard/keys

Skill Collaboration

Skill When Notes
evolink-media Image/video/music/digital-human generation Route to skill directly, skip text model routing
Other installed skills Intent matches skill capability Prefer skill over raw model routing

Smart Router is the dispatch layer — shares EVOLINK_API_KEY with all Evolink skills. When discussing creative ideas or analyzing skill output, apply normal routing rules.

References

  • references/router-api-params.md — Full API formats, curl examples, OC config, complete model list
  • references/cascade-examples.md — 27 routing examples across 7 scenarios + cross-provider routing

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

llmai-gatewaymodel-routingcost-optimizationmulti-provideranthropicopenaigoogledeepseekkimiclaudegpt

同类 Skill