← 返回 Skills 市场
lv-yezhen

OpenClaw Model Switcher

作者 Lv-Yezhen · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
78
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-model-switcher
功能描述
Switch the OpenClaw default model safely. Triggers: switch model, change model, 切换模型, 换模型, switch to XX model. Use when the user wants to change the default...
安全使用建议
This skill appears to do what it says: it edits ~/.openclaw/openclaw.json (or the path you pass), backs up to ~/.openclaw/config_backups, restarts the local 'openclaw' gateway, and rolls back on failure. Before running: (1) inspect the bundled script you will invoke (prefer scripts/model_switch.py which supports --config and the OPENCLAW_CONFIG env var); (2) ensure the 'openclaw' CLI on your PATH is the expected trusted binary (restart/status commands are invoked); (3) run a dry-run first to confirm behavior; (4) verify backups are created in ~/.openclaw/config_backups and test restoring manually if needed. The only notable issue is the duplicate files: the top-level script hardcodes the config path while the script under scripts/ honors overrides — be aware which file your agent will execute.
功能分析
Type: OpenClaw Skill Name: openclaw-model-switcher Version: 1.0.0 The model-switcher skill is designed to update the default AI model in the OpenClaw configuration file (~/.openclaw/openclaw.json). The provided Python scripts (model_switch.py) implement a safe workflow including configuration backup, targeted JSON modification, service restart via the 'openclaw' CLI, and automatic rollback if the service fails to restart. No evidence of data exfiltration, unauthorized shell execution, or malicious prompt injection was found; the script's use of subprocess.run is restricted to hardcoded service commands and avoids shell injection risks.
能力评估
Purpose & Capability
Name, description, SKILL.md, README, and the included scripts all focus on the same task: validate a model, backup ~/.openclaw/openclaw.json, update agents.defaults.model.primary, restart the OpenClaw gateway, health-check, and rollback on failure. No unrelated services, credentials, or binaries are requested.
Instruction Scope
Runtime instructions explicitly read the OpenClaw config, modify only agents.defaults.model.primary, and restart the gateway — all within the stated purpose. A minor inconsistency: README and scripts/supporting file (scripts/model_switch.py) honor OPENCLAW_CONFIG / --config, but the top-level model_switch.py hardcodes ~/.openclaw/openclaw.json (does not read OPENCLAW_CONFIG). This can cause surprising behavior if a user expects the env/config override to apply to both files. Otherwise the instructions do not instruct reading unrelated files or transmitting data externally.
Install Mechanism
No install spec; skill is instruction-only with bundled scripts. There are no downloads, third-party package installs, or archive extraction steps. The scripts run local filesystem operations and call the local 'openclaw' CLI — expected for this purpose.
Credentials
The skill does not require credentials or sensitive environment variables. README documents an optional OPENCLAW_CONFIG env var (reasonable). The only env-related inconsistency is that one included script honors OPENCLAW_CONFIG while the other ignores it; this is a usability issue but not a credential or exfiltration concern.
Persistence & Privilege
Skill is not always-enabled, is user-invocable, and does not request elevated or persistent privileges beyond modifying the user's OpenClaw config and restarting the local gateway (which is necessary for the stated function). It does not modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install openclaw-model-switcher
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /openclaw-model-switcher 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Safe model switching with backup and auto-rollback, standalone script and OpenClaw skill support
元数据
Slug openclaw-model-switcher
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

OpenClaw Model Switcher 是什么?

Switch the OpenClaw default model safely. Triggers: switch model, change model, 切换模型, 换模型, switch to XX model. Use when the user wants to change the default... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 78 次。

如何安装 OpenClaw Model Switcher?

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

OpenClaw Model Switcher 是免费的吗?

是的,OpenClaw Model Switcher 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

OpenClaw Model Switcher 支持哪些平台?

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

谁开发了 OpenClaw Model Switcher?

由 Lv-Yezhen(@lv-yezhen)开发并维护,当前版本 v1.0.0。

💬 留言讨论