← 返回 Skills 市场
591
总下载
1
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-switch
功能描述
Manage multi-provider model switching and fallback chains in OpenClaw. "OpenClaw Switch" helps users set up automatic model failover (e.g. 429 rate-limit → f...
安全使用建议
This bundle appears to be what it claims: a local tool that reads and updates your ~/.openclaw/openclaw.json (or $OPENCLAW_CONFIG) to change the primary model and show fallbacks. Before installing or running: (1) back up your openclaw.json so you can restore it if needed; (2) review/verify the script (it’s short and readable) to confirm you’re comfortable with it writing your config and optionally restarting the OpenClaw daemon; (3) confirm any 'openclaw' executable on your system is trusted because the script will call it to restart the daemon if present. A minor note: the README's clone URL and the script header comment reference different GitHub paths—this is suspiciously sloppy but does not change the script's local-only behavior. If you need extra assurance, run the commands in a safe/non-production environment first.
功能分析
Type: OpenClaw Skill
Name: openclaw-switch
Version: 1.0.0
The `set_primary` function in `scripts/openclaw-switch.sh` is vulnerable to Python code injection. The model ID, which is used as input to this function, is directly interpolated into a Python string without proper sanitization. This creates a second-order code injection vulnerability: if the `openclaw.json` file contains a maliciously crafted model ID (e.g., `model-1'; import os; os.system('echo pwned') #`), selecting this model via the `switch` command would execute arbitrary Python code. While the script itself does not exhibit malicious intent, this vulnerability could lead to Remote Code Execution if the configuration file is compromised or contains untrusted entries.
能力评估
Purpose & Capability
Name/description match the actual behavior: the script lists models, shows fallbacks, and sets the primary model by editing openclaw.json. No unrelated binaries or credentials are requested. The optional OPENCLAW_CONFIG env var is appropriate for locating the config file.
Instruction Scope
SKILL.md and the included script are narrowly scoped: they read and write the local OpenClaw config ($OPENCLAW_CONFIG or ~/.openclaw/openclaw.json), parse JSON with python3 stdlib, and display information. The only external action is an optional 'openclaw daemon restart' when the 'openclaw' binary exists; otherwise there are no network calls or reads of other system secrets.
Install Mechanism
There is no automated installer in the bundle (instruction-only plus a script). The README suggests cloning the repo and adding the local bin to PATH — this is standard. No downloads from untrusted URLs or archive extraction are present in the package itself.
Credentials
The skill declares no required env vars and only optionally respects OPENCLAW_CONFIG to locate the config file. It does not request API keys or other credentials. This is proportionate to the declared functionality.
Persistence & Privilege
The skill is not always-enabled and is user-invocable. It does modify the user's openclaw.json (expected for a config-management tool) and may invoke 'openclaw daemon restart' if present. Users should be aware it writes to their OpenClaw config file — back up before running in production.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-switch - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-switch触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
OpenClaw Switch 1.0.0 – Initial Release
- Manage and switch between multiple AI model providers in OpenClaw.
- Configure and visualize fallback chains for automatic model failover.
- Easily switch the primary model and list all available models.
- Supports heartbeat and subagent routing for cost and reliability optimization.
- Secure, dependency-free Bash/Python3 script; never transmits or logs sensitive data.
元数据
常见问题
Openclaw Switch 是什么?
Manage multi-provider model switching and fallback chains in OpenClaw. "OpenClaw Switch" helps users set up automatic model failover (e.g. 429 rate-limit → f... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 591 次。
如何安装 Openclaw Switch?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-switch」即可一键安装,无需额外配置。
Openclaw Switch 是免费的吗?
是的,Openclaw Switch 完全免费(开源免费),可自由下载、安装和使用。
Openclaw Switch 支持哪些平台?
Openclaw Switch 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Openclaw Switch?
由 2233admin(@2233admin)开发并维护,当前版本 v1.0.0。
推荐 Skills