← 返回 Skills 市场
81
总下载
0
收藏
0
当前安装
6
版本数
在 OpenClaw 中安装
/install model-router-pro
功能描述
Route every substantive user request to the optimal LLM model. Trigger on EVERY substantive request. Score across 12 dimensions, pick the best model, switch...
使用说明 (SKILL.md)
Smart Model Router
Every Substantive Request
- Score:
python3 \x3Cskill_path>/scripts/router.py --task "\x3Cuser message>" - Parse JSON → get
full_id,tier,confidence - If
full_idisfallback/default: do NOT switch. Tell the user to run--setup. - If
full_iddiffers from current model:session_status(model=\x3Cfull_id>) - Answer the user. Do not volunteer routing details, but disclose when asked.
Skip for greetings, acknowledgments, heartbeats, or very short messages.
First-Time Setup
python3 \x3Cskill_path>/scripts/router.py --setup
Recommended: Reinforce in AGENTS.md
Add the following line to your agent's AGENTS.md for reliable auto-trigger:
Always follow smart-model-router SKILL.md instructions on every substantive request.
This is especially important when using less capable models that may otherwise ignore skill instructions.
CLI
--task TEXT Route a task
--debug Show scoring details
--setup Generate models.json
安全使用建议
This skill appears to do what it says: it scores messages and recommends a model, reading ~/.openclaw/openclaw.json to see which models are available. Before installing:
- Run the provided --setup once and inspect the generated models.json and models database (capabilities_defaults.json) so automatic switching uses sensible defaults for your environment. If you don't configure models, the router intentionally returns fallback/default and will not switch.
- Be aware the router executes on every substantive request (it will run the bundled Python script), which can add latency; test in a safe environment first.
- The README suggests adding a note to AGENTS.md to reinforce agent compliance — avoid making the agent override other safety controls just to satisfy the skill. Only add such enforcement if you trust the skill and your agent's policy setup.
- Confirm that ~/.openclaw/openclaw.json contains the model IDs you expect; the router filters out models not present there, which may cause no candidates if your config differs from the skill's database.
No scan alerts were found in the supplied bundle, and no unrelated credentials or network endpoints are present in the code. If you want higher assurance, run the script locally and review its output on representative prompts before enabling automatic routing.
功能分析
Type: OpenClaw Skill
Name: model-router-pro
Version: 1.1.0
The 'model-router-pro' skill is a legitimate utility designed to optimize LLM usage by routing tasks to models based on a 12-dimension complexity analysis. It includes a setup script (`router.py`) that reads the local OpenClaw configuration (`~/.openclaw/openclaw.json`) to identify available models, a process that is transparently declared in `SKILL.md`. The bundle relies solely on the Python standard library, performs no network operations, and shows no signs of malicious intent or data exfiltration.
能力评估
Purpose & Capability
Name/description (model routing) match the included code and files: a 12-dimension scorer, a models database, and logic to read available models and pick one. Asking to read ~/.openclaw/openclaw.json to detect available models is proportionate to model-availability filtering.
Instruction Scope
SKILL.md only instructs running the local Python scorer, parsing its JSON output, optionally switching session model via session_status(), and to skip trivial messages. The metadata declares access to ~/.openclaw/openclaw.json, which the code actually reads. The instructions do not ask for unrelated files, credentials, or data exfiltration.
Install Mechanism
No install spec is provided (instruction-only). Code files are bundled with the skill; they are local and use only Python stdlib. No downloads, external URLs, or package installs are present.
Credentials
The skill declares no required environment variables or credentials. The code reads the user's home OpenClaw config (~/.openclaw/openclaw.json) and optional models/config JSON files — these are relevant to its job. No secrets or unrelated env access are requested.
Persistence & Privilege
Skill does not request always:true and does not modify other skills' configurations. It runs locally when invoked and relies on the agent to follow SKILL.md. The README suggestion to add a line to AGENTS.md to force compliance is advisory, not a capability change in the skill itself.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install model-router-pro - 安装完成后,直接呼叫该 Skill 的名称或使用
/model-router-pro触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.1.0
Setup now detects AGENTS.md and prints copy-paste hint for auto-routing enablement
v1.0.4
Add AGENTS.md reinforcement recommendation to SKILL.md for reliable auto-trigger
v1.0.3
Fix: clarify that AGENTS.md reinforcement is recommended for agent compliance
v1.0.2
Add installation section: ClawHub install + auto-activation + --setup instructions
v1.0.1
Fix security scan: declare configPaths in metadata, remove transparency concern
v1.0.0
- Initial release of smart-model-router skill.
- Automatically routes every substantive user request to the optimal LLM model based on 12 scoring dimensions.
- Excludes greetings, acknowledgments, heartbeats, and very short messages from routing.
- Provides CLI for task routing, debug info, and initial model setup.
- Ensures fallback handling with user guidance if setup is missing.
元数据
常见问题
Smart Model Router 是什么?
Route every substantive user request to the optimal LLM model. Trigger on EVERY substantive request. Score across 12 dimensions, pick the best model, switch... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 81 次。
如何安装 Smart Model Router?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install model-router-pro」即可一键安装,无需额外配置。
Smart Model Router 是免费的吗?
是的,Smart Model Router 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Smart Model Router 支持哪些平台?
Smart Model Router 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Smart Model Router?
由 bevanding(@bevanding)开发并维护,当前版本 v1.1.0。
推荐 Skills