← 返回 Skills 市场
siliconyahaha

Claw Switch

作者 SiliconYahaha · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
420
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install claw-switch
功能描述
Simple model router for OpenClaw. Switch between available models based on task type. No manual config needed — just use natural language.
使用说明 (SKILL.md)

OpenClaw Switch — Simple Model Router

你是 OpenClaw Switch,一个帮助用户在 OpenClaw 中轻松切换 AI 模型的智能助手。你负责模型切换和任务推荐。

当前可用模型 (OpenClaw 2026.3.2)

模型 OpenClaw ID 费用 用途
Gemini 3 Flash google/gemini-3-flash-preview $0.5/$3.0 图片、文件、多模态
OpenRouter Auto openrouter/openrouter/auto 变动 默认兜底

命令说明

切换模型

用户可以通过以下方式切换模型:

用户说 切换到
use gemini / 图片模式 / 视觉 Gemini 3 Flash
use openrouter / 默认 / reset OpenRouter Auto
status / 现在什么模型 显示当前模型

任务路由

根据任务内容自动推荐模型:

任务类型 推荐模型
图片、文件、PDF、截图 Gemini 3 Flash
其他任何任务 OpenRouter Auto

关键词:图片、文件、pdf、截图、识图、多模态、视觉、image、photo

执行步骤

切换模型:

  1. 用户说 use \x3C模型> 或描述任务
  2. 使用 openclaw models set \x3Cmodel-id> 切换模型
  3. 运行 openclaw gateway restart 重启 gateway
  4. 确认切换成功:[Model Name] Ready.

示例:

用户: use gemini
执行: openclaw models set google/gemini-3-flash-preview
执行: openclaw gateway restart
回复: [Gemini 3 Flash] Ready.

重要规则

  1. 只切换到已验证的模型:目前只支持 Gemini 和 OpenRouter
  2. 简化确认:只返回一行确认信息
  3. 错误处理:如果用户请求的模型不可用,说明原因并建议可用选项
  4. 安全第一:不存储或显示 API key
  5. 语言适配:根据用户输入自动使用中文或英文

不支持的模型说明

以下模型在 OpenClaw 2026.3.2 中存在但运行时不可用:

  • openai/gpt-5.4 - 运行时报 "Unknown model"
  • minimax/minimax-m2.1 - 运行时报 "Unknown model"
  • minimax/minimax-m2.5 - 运行时报 "Unknown model"

这些模型已被注册到配置中,但 OpenClaw 运行时无法识别。可能需要等待 OpenClaw 更新或使用其他版本。

帮助

用户说 help帮助 时,显示使用说明:

🦞 OpenClaw Switch v2.1

可用命令:
  use \x3C模型>  - 切换模型 (gemini/openrouter)
  status       - 查看当前模型
  help         - 显示帮助信息

示例:
  use gemini
  use openrouter
  status
安全使用建议
This skill appears to do what it says (switch OpenClaw models), but it is marked always: true which forces it into every agent run and allows autonomous execution of commands that restart the gateway and change models. Before installing: (1) prefer a version with always: false so it only runs when invoked by a user; (2) verify the skill's source/owner and request a homepage or repo to inspect; (3) test the openclaw CLI commands manually to confirm behavior and permissions; (4) consider the operational impact of frequent gateway restarts (downtime, other skills interrupted) and cost impact of switching to paid models (e.g., Gemini); (5) monitor logs and usage if you enable it, and restrict installation to a staging environment first. If you cannot remove always:true or audit the owner/source, treat this as higher risk.
功能分析
Type: OpenClaw Skill Name: claw-switch Version: 1.0.0 The skill provides model routing functionality by instructing the agent to execute shell commands (`openclaw models set` and `openclaw gateway restart`) to modify system configurations. While these actions are consistent with the stated purpose in SKILL.md and README.md, the ability for an AI agent to perform system-level administrative tasks and service restarts represents a high-risk capability that could be leveraged for denial-of-service or unauthorized configuration changes if the agent is misdirected. No evidence of intentional malice or data exfiltration was found.
能力评估
Purpose & Capability
Name, description, catalog.json and SKILL.md consistently describe a model router for OpenClaw; the instructions call the OpenClaw CLI (openclaw models set, openclaw gateway restart) which is exactly what a model-switcher would need.
Instruction Scope
Runtime instructions are limited to switching models and restarting the gateway via the OpenClaw CLI and to replying with a one-line confirmation. This stays within scope, but the gateway restart is an intrusive operation (it can disrupt other workloads) and the skill is allowed to invoke itself autonomously.
Install Mechanism
Instruction-only skill with no install spec, no downloaded code, and no required binaries or env vars — minimal install risk since nothing is written or fetched by the skill bundle itself.
Credentials
The skill requests no environment variables, credentials, or config paths. SKILL.md explicitly states it will not store or display API keys. Requested access appears proportional to purpose.
Persistence & Privilege
The skill is marked always: true (force-included on every agent run). Combined with commands that restart the OpenClaw gateway and switch models, this grants an always-present capability to change runtime behavior and potentially incur costs or cause service disruption. Always:true is unexpected for a simple router and merits review.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install claw-switch
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /claw-switch 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
claw-switch 1.0.0 initial release: - Introduces a simple, user-invocable model router for OpenClaw that automatically selects models based on task type using natural language. - Supports two main models: Gemini 3 Flash (for image/file/multimodal tasks) and OpenRouter Auto (default fallback). - Allows easy model switching with natural language commands (e.g., "use gemini", "图片模式", "status"). - Provides automated command routing and clear confirmation responses after switching. - Displays help and available commands with "help" or "帮助". - Limits switching to validated, available models and explains unavailability of others.
元数据
Slug claw-switch
版本 1.0.0
许可证
累计安装 2
当前安装数 2
历史版本数 1
常见问题

Claw Switch 是什么?

Simple model router for OpenClaw. Switch between available models based on task type. No manual config needed — just use natural language. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 420 次。

如何安装 Claw Switch?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-switch」即可一键安装,无需额外配置。

Claw Switch 是免费的吗?

是的,Claw Switch 完全免费(开源免费),可自由下载、安装和使用。

Claw Switch 支持哪些平台?

Claw Switch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Claw Switch?

由 SiliconYahaha(@siliconyahaha)开发并维护,当前版本 v1.0.0。

💬 留言讨论