← 返回 Skills 市场
318
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install model-router-hook
功能描述
智能模型路由系统,根据任务复杂度自动切换 AI 模型(fast/thinking)。 当需要: - 自动选择最优 AI 模型(简单任务用 k2p5,复杂任务用 thinking) - 根据用户意图智能路由(代码/分析/查询等) - 控制 API 成本(预算管理) - 学习用户偏好并自适应调整 使用场景: - 开发...
安全使用建议
This skill appears to do what it claims: automatic model routing, cost tracking, and learning user preferences. Before installing, consider: 1) It stores user/session data and cost logs on disk at ~/.openclaw/workspace/memory/model-router/ — if that data would be sensitive in your environment, avoid or restrict it. 2) It may call a local OpenClaw CLI or import openclaw.tools to effect model switches; ensure you trust the local openclaw installation. 3) The code uses subprocess.run (only to call the OpenClaw CLI as provided), so verify there are no additional unexpected subprocess/network calls in the parts of the code not shown. If you need higher assurance, request a full review of the untruncated scripts/model_router.py to confirm there are no hidden network endpoints, telemetry, or arbitrary command execution paths.
功能分析
Type: OpenClaw Skill
Name: model-router-hook
Version: 4.0.0
The skill bundle is classified as benign. Its primary function is to intelligently route AI models based on task complexity and manage costs, which aligns with its stated purpose in SKILL.md. While the `scripts/model_router.py` file uses `subprocess.run` to interact with the `openclaw` CLI for model switching, the arguments passed to these commands are hardcoded model identifiers ('kimi-coding/k2p5', 'kimi-coding/kimi-k2-thinking') and not user-controlled, mitigating shell injection risks. File operations are confined to the designated `~/.openclaw/workspace/memory/model-router/` directory for storing session and user memory, which is transparently documented and a legitimate use of local storage for a skill. No evidence of data exfiltration, persistence mechanisms, or prompt injection attempts against the agent was found.
能力评估
Purpose & Capability
The name/description (model routing, cost control, user-preference learning) align with the code and SKILL.md. Declared storage paths, budget logic, intent signals, and OpenClaw integration are coherent with the stated functionality.
Instruction Scope
SKILL.md and code limit actions to routing decisions, local persistence (user/profile/session/cost records), cost estimation, and optionally calling OpenClaw to effect a model switch. The skill persistently stores user profiles and session memory under ~/.openclaw/workspace/memory/model-router/, which is expected for its cross-session learning feature but is a privacy consideration (it will retain user content and derived profiles).
Install Mechanism
No install spec — code files are included and executed by the agent environment. No external downloads or unusual installers are used.
Credentials
The skill does not request credentials or environment variables. It writes/reads local files under the user's home directory (as described in SKILL.md). It sets a local environment flag (_OPENCLAW_MODEL_OVERRIDE) as an integration fallback; this is reasonable for inter-process signaling but should be noted.
Persistence & Privilege
always=false and the skill is user-invocable (normal). The skill creates and updates persistent files (profiles, session memory, cost logs) across sessions. This persistent storage and cross-session learning are consistent with the feature set but increase privacy risk and attack surface (local files containing user data).
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install model-router-hook - 安装完成后,直接呼叫该 Skill 的名称或使用
/model-router-hook触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v4.0.0
Initial release of V4 with full P0-P5 + A-G optimizations
元数据
常见问题
Model Router Hook 是什么?
智能模型路由系统,根据任务复杂度自动切换 AI 模型(fast/thinking)。 当需要: - 自动选择最优 AI 模型(简单任务用 k2p5,复杂任务用 thinking) - 根据用户意图智能路由(代码/分析/查询等) - 控制 API 成本(预算管理) - 学习用户偏好并自适应调整 使用场景: - 开发... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 318 次。
如何安装 Model Router Hook?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install model-router-hook」即可一键安装,无需额外配置。
Model Router Hook 是免费的吗?
是的,Model Router Hook 完全免费(开源免费),可自由下载、安装和使用。
Model Router Hook 支持哪些平台?
Model Router Hook 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Model Router Hook?
由 kevinZhj(@kevinzhj)开发并维护,当前版本 v4.0.0。
推荐 Skills