← 返回 Skills 市场
Openclaw Model Switch
作者
williamwg2025
· GitHub ↗
· v0.1.3
· MIT-0
433
总下载
0
收藏
2
当前安装
4
版本数
在 OpenClaw 中安装
/install openclaw-model-switch-2
功能描述
OpenClaw AI 模型切换技能 - 用自然语言切换和添加 AI 模型。 支持 9+ 预置提供商(Gemini/GPT/Claude/Qwen/Kimi 等),智能判断模型特性,一键配置 API Key。 自动备份配置,安全重启网关。 关键词:openclaw, model, switch, ai, mult...
安全使用建议
This package appears to do what it says: it edits your OpenClaw config, optionally stores any API key you provide (in plaintext) and restarts the OpenClaw gateway. Before installing/running: 1) backup ~/.openclaw/openclaw.json (the scripts also create backups). 2) Ensure the 'openclaw' CLI is installed and behaves as expected. 3) If you supply API keys, be aware they will be written unencrypted to ~/.openclaw/openclaw.json — set strict file permissions (chmod 600) or use an external secret manager if you require stronger protection. 4) Test in a non-production environment first to observe gateway restart behavior. If you want extra assurance, inspect the bundled Python scripts locally before running them.
功能分析
Type: OpenClaw Skill
Name: openclaw-model-switch-2
Version: 0.1.3
The skill provides functionality to switch and add AI models by modifying the core OpenClaw configuration file (~/.openclaw/openclaw.json) and restarting the system gateway via shell commands (os.system). While these high-risk operations are documented and align with the stated purpose in SKILL.md and add-model-guide.py, the practice of handling plaintext API keys and executing system-level restarts represents a significant attack surface. No evidence of intentional malice, data exfiltration, or unauthorized network activity was found.
能力评估
Purpose & Capability
Name/description (model switching, adding providers, API key config, gateway restart) align with the included scripts and config files. The scripts only touch ~/.openclaw/openclaw.json and the skill's models.json, and call the OpenClaw CLI to restart the gateway — all expected for a model-switching utility.
Instruction Scope
SKILL.md explicitly documents the files read/written (~/.openclaw/openclaw.json and the skill's config/models.json) and the gateway restart. The Python scripts implement exactly that behavior: read/update JSON, backup the main config, and invoke 'openclaw gateway restart'/'openclaw gateway status'. The scripts do not perform hidden network calls or attempt to read unrelated system files.
Install Mechanism
No install spec or external downloads; all scripts and config are bundled. The README/SKILL.md suggest only chmod +x and running the Python scripts. This is low install risk.
Credentials
The skill requests no environment variables, which is consistent. It does accept API keys interactively and writes them into ~/.openclaw/openclaw.json in plaintext (this is intentional and documented). Storing keys unencrypted is a security/privacy concern but is proportional to the skill's function (it needs credentials to call provider APIs).
Persistence & Privilege
The skill modifies the global OpenClaw configuration (~/.openclaw/openclaw.json) and updates the agents.defaults.model.primary value — this is expected for a model switcher. It is not configured always:true and does not alter other skills' code. Because it can be invoked autonomously (platform default), users should be aware that an agent with this skill could change the active model if given permission, but that is consistent with the skill's purpose.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-model-switch-2 - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-model-switch-2触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.3
- Updated skill name and metadata to "openclaw-model-switch" and clarified description and tags.
- Expanded description with more keywords and clearer provider list in SKILL.md.
- Improved README and documentation structure.
- Clarified security and API/network practices in safety section.
- No functional changes to scripts; documentation improvements only.
v0.1.2
- Updated documentation with detailed safety notices about configuration and system changes.
- Clarified that the skill modifies OpenClaw config files and restarts the gateway when switching models.
- Added explicit instructions for installation, file permissions, and backup procedures.
- Enhanced security recommendations regarding API key storage and file access.
- No changes to scripts or functional code in this version; documentation only.
v0.1.1
openclaw-model-switch-2 v0.1.1
- Added script utilities: switch, add, check status, and list models.
- Introduced models.json configuration file for model management.
- Added usage and safety details to documentation.
- Improved overall documentation with new README files.
- Security section now clarifies local execution and data safety.
v0.1.0
Initial release of Model Switch: natural language AI model management
- Switch and add AI models using simple natural language commands.
- Provides interactive guides for switching or adding models.
- Smartly detects model features (e.g., image or inference support).
- One-click API key configuration and automatic saving of settings.
- Supports major model providers and custom configurations.
- Optimized, streamlined workflow for managing multiple models.
元数据
常见问题
Openclaw Model Switch 是什么?
OpenClaw AI 模型切换技能 - 用自然语言切换和添加 AI 模型。 支持 9+ 预置提供商(Gemini/GPT/Claude/Qwen/Kimi 等),智能判断模型特性,一键配置 API Key。 自动备份配置,安全重启网关。 关键词:openclaw, model, switch, ai, mult... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 433 次。
如何安装 Openclaw Model Switch?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-model-switch-2」即可一键安装,无需额外配置。
Openclaw Model Switch 是免费的吗?
是的,Openclaw Model Switch 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Openclaw Model Switch 支持哪些平台?
Openclaw Model Switch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openclaw Model Switch?
由 williamwg2025(@williamwg2025)开发并维护,当前版本 v0.1.3。
推荐 Skills