Token导航 LogoToken导航

Agent Skill · 研究检索

task-based-model-router(基于任务的模型路由器)

task-based-model-router 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

task-based-model-router 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描有提醒项,按安装量在研究检索类的 73,675 个 Skill 里排第 20,779。

总安装 5,092周安装 208GitHub Stars 公开资料未说明下载 1,647核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.6

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:task-based-model-router(基于任务的模型路由器)
来源仓库:https://github.com/yb98k999/task-based-model-router
安装命令:
openclaw skills install task-based-model-router
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install task-based-model-router

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

基于 TokenRouter 的任务路由优化工具,降低 API 成本。根据实时定价将任务智能分配至高性价比模型。支持六类任务分类与动态模型层构建。task-based-model-router 属于研究检索类 Skill,可作为该场景下的辅助能力补充。安装前需确认权限范围、维护状态及是否调用外部定价接口。

建议结合原始 README 核验路由策略与成本控制阈值。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install task-based-model-router;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

task-based-model-router 怎么安装?

在终端执行 openclaw skills install task-based-model-router。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

task-based-model-router 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

task-based-model-router 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

task-based-model-router 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

task-based-model-router 用的人多吗?

公开数据是累计安装 5,092 次,近一周安装 208 次,下载 1,647 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

task-based-model-router 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
task-based-model-router

基于任务的模型路由器 · 本页

5,092—接触敏感数据MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
Smart Model Router
description
Optimize Your API Costs - Route tasks to cost-effective models via TokenRouter. Dynamically builds model tiers from live pricing, classifies tasks into 6 categories (supporting English & Chinese), and orchestrates multi-agent workflows with adaptive fallback.

Pre-flight Check: PaleBlueDot AI TokenRouter Provider Configuration

This skill requires a PaleBlueDot AI TokenRouter provider to be configured. Before using ANY feature, the agent MUST perform the following check-and-setup flow.

Phase 1: Check Existing Provider

  1. Read the configuration file at ~/.openclaw/openclaw.json.
  2. Look under models.providers for any provider whose baseUrl contains https://open.palebluedot.ai (partial match is sufficient).
  3. If found → Skip to Phase 3 (the provider is already configured).
  4. If NOT found → Proceed to Phase 2.

Phase 2: Guide User & Write Configuration

When no TokenRouter provider is detected, the agent should:

  1. Inform the user that TokenRouter is not configured and prompt them to register:

> TokenRouter provider not configured. To use this skill, you need a PaleBlueDot AI TokenRouter account. > Please visit https://www.palebluedot.ai to register and log in, then go to the TokenRouter section to get your configuration (base URL and API key). > Once you have the information, please provide it to me and I will complete the configuration for you.

  1. Wait for the user to provide the following information:

- Base URL (e.g., https://open.palebluedot.ai/v1) - API Key (the user's real API key from PaleBlueDot AI) - *(Optional)* Provider name (defaults to tokenrouter if not specified)

  1. Agent writes the configuration by running the setup command:
   setup --name <provider_name> --base-url <baseUrl> --api-key <apiKey>

This writes the provider into ~/.openclaw/openclaw.json under models.providers with a backup of the original config.

  1. Do NOT use placeholder API keys. The agent must only write the actual credentials provided by the user.

Phase 3: Re-verify & Auto-Sync Models

After the provider is confirmed (either pre-existing or just written in Phase 2), the agent MUST:

  1. Re-verify the provider configuration by running:
   check

This confirms the provider with baseUrl containing https://open.palebluedot.ai is properly saved in the config.

  1. If verification fails, inform the user and go back to Phase 2.
  1. If verification succeeds, automatically sync models by running:
   sync

This will: - Fetch all available models from the TokenRouter API. - Add all model names to the TokenRouter provider's models array. - Add all models to the models.allowed list. - All models will be routed through the configured TokenRouter provider. - Display the synced model list to the user.

  1. Confirm completion to the user:

> TokenRouter configuration complete. {N} models have been synced and added to your allow list. All models are routed through the TokenRouter provider. You can now use list to view pricing or start planning tasks.


Automatic Pre-Planning Sync

Before executing any plan command, the system will automatically:

  1. Verify TokenRouter Provider: Checks if a provider whose baseUrl contains https://open.palebluedot.ai exists in models.providers. If not found, the agent enters the Phase 2 setup flow described above.
  2. Auto-Sync Models: Fetches the latest model list and updates the provider's models array and the models.allowed list.
  3. Set Default Model: If no default model is set, picks the first available model from the synced list.

This ensures that the plan command always has access to the most up-to-date model information, and all models are routed through the user's TokenRouter provider.


Dynamic Model Tier System

Model tiers are not hardcoded. On every plan invocation, the system:

  1. Fetches the live price list from TokenRouter API.
  2. Filters to well-known models (GPT, Claude, Gemini, DeepSeek, Llama, Qwen, Grok).
  3. Computes each model's output price.
  4. Sorts by price descending and splits into 3 equal buckets (high / mid / low).
  5. Picks the median-priced model from each bucket to avoid outliers.
TierRoleSelection Rule
tier1 (high)Architect / ReasoningMedian of top-third by price
tier2 (mid)Coder / DrafterMedian of middle-third by price
tier3 (low)Reviewer / Quick tasksMedian of bottom-third by price

If the API is unreachable or fewer than 3 known models are available, the system falls back to hardcoded defaults (claude-opus-4.6 / gpt-4o-mini / deepseek-v3.2).


6-Category Task Classification Engine

The plan command uses an enhanced classifier that supports both Chinese and English keywords. Tasks are scored against 6 categories; the highest-scoring category wins.

Categories & Routing Pipelines

1. Coding

Keywords: code, program, script, debug, function, api, database, app, test, bug, deploy, refactor, 代码, 编程, 脚本, 程序, 调试, 测试, 开发, 接口, 部署, 重构, 修复, 函数, 算法, 数据库, 前端, 后端, 全栈, 爬虫, 框架, 模块 ...

PhaseTierPurposeArtifact
1. Designtier1ArchitectureSPEC.md
2. Codetier2Implementationcode files
3. Reviewtier3Security checkAUDIT.md
2. Analysis

Keywords: analyze, compare, evaluate, research, report, data, statistics, 分析, 对比, 评估, 研究, 调研, 报告, 数据, 统计, 洞察, 指标, 复盘 ...

PhaseTierPurposeArtifact
1. Researchtier1Deep reasoningRESEARCH.md
2. Synthesizetier2SummarizationREPORT.md
3. Fact-checktier3VerificationREVIEW.md
3. Writing

Keywords: write, article, blog, content, story, email, essay, documentation, 写作, 文章, 博客, 内容, 故事, 邮件, 文案, 文档, 稿件, 撰写, 起草 ...

PhaseTierPurposeArtifact
1. Outlinetier1Structure & strategyOUTLINE.md
2. Drafttier2Content generationDRAFT.md
3. Polishtier3ProofreadingRESULT.md
4. Creative

Keywords: creative, brainstorm, idea, design, logo, prototype, 创意, 头脑风暴, 点子, 设计, 艺术, 原型, 线框图, 灵感, 构思 ...

PhaseTierPurposeArtifact
1. Ideatetier1Creative thinkingIDEAS.md
2. Executetier2ProductionRESULT.md
5. Translation

Keywords: translate, localize, interpretation, 翻译, 本地化, 国际化, 多语言, 中译英, 英译中 ...

PhaseTierPurposeArtifact
1. Translatetier2Language conversionTRANSLATION.md
2. Reviewtier3Quality checkRESULT.md
6. Simple

Keywords: simple, quick, summarize, list, count, define, explain, 简单, 快速, 总结, 列出, 计数, 查询, 定义, 解释, 概括 ...

PhaseTierPurposeArtifact
1. Executetier3Direct completionRESULT.md

Cost Savings by Category

CategoryPhasesTiers UsedTypical Savings
Coding3tier1 + tier2 + tier3~54%
Analysis3tier1 + tier2 + tier3~54%
Writing3tier1 + tier2 + tier3~54%
Creative2tier1 + tier2~33%
Translation2tier2 + tier3~81%
Simple1tier3 only~95%

Multi-Agent Routing Guidance

When the user's task is complex (e.g., building an application, designing a system, multi-step workflows), proactively suggest multi-agent routing:

  1. Identify complexity — If the task involves multiple phases, recommend running plan.
  2. Show the pricing — Run list to display the full price list.
  3. Run the planner — Run plan "<task>" to show the recommended routing with projected savings.
  4. Offer to enable models — Ask the user if they want to enable the recommended models as fallbacks.

Example prompt to user:

Your task involves multiple phases. Let me run the planner to find the optimal routing: `` build a REST API with authentication / 帮我构建一个REST API的鉴权功能 `` The planner will automatically pick the best models for each phase based on current pricing and show projected savings.

Quick Start

# Step 1: Check if TokenRouter is configured
check

# Step 2: If not configured, set it up (agent does this with user-provided credentials)
setup --name tokenrouter --base-url https://open.palebluedot.ai/v1 --api-key sk-xxx...

# Step 3: Verify and sync all models
check
sync

# List all models with real-time pricing
list / 列出TokenRouter的模型价格列表

# Get routing recommendations for a task (Chinese or English)
# NOTE: This will automatically sync models before planning
write a Python script
帮我开发一个用户管理后端接口
analyze and compare the data reports of three competing products
把这段中译英

# Enable a model by index or name
enable 1
enable openai/gpt-4o-mini

# Generate execution plan for host agent to dispatch sub-agents
build a todo app

Core Functions

1. check - Verify Provider Configuration

check / 检查TokenRouter配置

Verifies that a TokenRouter provider (baseUrl containing https://open.palebluedot.ai) exists in the config. Displays provider details if found, or guides the user to set up if not.

2. setup - Write Provider Configuration

setup --name tokenrouter --base-url https://open.palebluedot.ai/v1 --api-key <key>

Writes the TokenRouter provider into ~/.openclaw/openclaw.json (with automatic backup). The agent uses this command after the user provides their credentials from PaleBlueDot AI. The agent must never use placeholder API keys — only real credentials provided by the user.

3. sync - Fetch & Sync All Models

sync / 同步TokenRouter模型

Fetches all available models from the TokenRouter API, adds them to the provider's models array and the models.allowed list. All models are routed through the configured TokenRouter provider. This is automatically called before plan.

4. list - Real-Time Model Pricing

list / 列出模型的价格列表

Fetches current TokenRouter pricing and displays all available models with input/output/cache prices.

5. plan - Smart Task Routing

plan "<task description>" / 计划 "<任务描述>"
plan "<task description>" --execute / 计划 "<任务描述>" 并执行

Classifies the task, builds a multi-phase pipeline, assigns dynamic model tiers, and shows projected savings. Automatically syncs models before planning. Add --execute (or -x) to generate a structured JSON execution plan (swarm_plan.json) that the host agent uses to dispatch sub-agents via the internal sessions_spawn API.

How --execute works:

The --execute flag does NOT call sub-agents directly via CLI. Instead, it outputs a JSON plan to ~/.openclaw/workspace/swarm_plan.json and to stdout. The host agent (OpenClaw) reads this plan and dispatches sub-agents internally using sessions_spawn. Each step in the plan contains:

  • model: which model to use for this phase
  • system_prompt: the role prompt for the sub-agent
  • task_prompt: the task instruction
  • expected_artifact: the file the sub-agent should produce
  • max_retries and timeout_seconds: retry and timeout policy

Steps must be executed sequentially — each step's artifact is context for the next.

6. enable - Auto-Configuration

enable 1                    # Enable model by index
enable openai/gpt-4o-mini   # Enable by name
启用 1
启用 openai/gpt-4o-mini

Writes the model directly into ~/.openclaw/openclaw.json (with automatic backup).


Adaptive Stability Fallback

The system tracks historical model performance via swarm_memory.json and swarm_insights.json:

  • Tier selection: If a tier2/tier3 model's historical success rate drops below 50%, it is automatically replaced by the tier1 model for that phase during plan generation.
  • Retry policy: The generated execution plan specifies max_retries: 2 per step. The host agent should inject the error context into the retry prompt when re-dispatching a failed step.
  • Logging: The host agent should append execution results to swarm_memory.json. Run consolidate_memory.py to generate performance insights for future adaptation.

Advanced Usage

Custom Routing Rules

You can override the dynamic tier selection for specific categories by creating ~/.openclaw/model-routing.json. Each category maps to an ordered list of model IDs, one per phase (matching the pipeline order). An optional "fallback" model is used for any phase without an explicit override.

// ~/.openclaw/model-routing.json
{
  "coding": [
    "anthropic/claude-opus-4.6",
    "openai/gpt-4o-mini",
    "deepseek/deepseek-v3.2"
  ],
  "analysis": [
    "google/gemini-3-pro-preview",
    "anthropic/claude-sonnet-4.6",
    "deepseek/deepseek-v3.2"
  ],
  "writing": [
    "anthropic/claude-opus-4.6",
    "openai/gpt-4o",
    "openai/gpt-4o-mini"
  ],
  "creative": [
    "anthropic/claude-opus-4.6",
    "openai/gpt-4o"
  ],
  "translation": [
    "openai/gpt-4o",
    "deepseek/deepseek-v3.2"
  ],
  "simple": [
    "deepseek/deepseek-v3.2"
  ],
  "fallback": "openai/gpt-4o-mini"
}

How it works:

  • The list index corresponds to the phase order in each category's pipeline (e.g., for coding: index 0 = Design, 1 = Code, 2 = Review).
  • If a category is not listed, the default dynamic tier selection applies.
  • If the list is shorter than the number of phases, remaining phases use "fallback" (if set) or the default tier.
  • If the file does not exist, the system uses fully dynamic tier selection.

平台分布

OpenClaw

74.05%
按下载量换算1,220

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills