← 返回 Skills 市场
369
总下载
0
收藏
3
当前安装
1
版本数
在 OpenClaw 中安装
/install model-failover-guard
功能描述
Automatically monitors model health and switches between primary and fallback models to maintain stability and recover when possible.
安全使用建议
This skill appears to do what it claims, but review and take these precautions before enabling it: 1) Backup your OpenClaw config (~/.openclaw/openclaw.json) so you can restore the primary model if needed. 2) Verify the 'openclaw' CLI is the expected binary on PATH (the script calls it to test models and restart the gateway). 3) Inspect config.json (copy of config.example.json) to confirm preferred/excluded providers and candidate models — ensure no unexpected provider IDs appear that could point to untrusted endpoints. 4) Run the script once in a non-production environment (python3 .../failover.py once) to observe behavior and logs (~/.openclaw/failover.log) before enabling a loop or systemd service. 5) If you have strict process-control policies, note the script restarts the gateway; plan for maintenance windows. Overall the code is coherent and limited to the stated purpose; use the normal operational precautions above.
功能分析
Type: OpenClaw Skill
Name: model-failover-guard
Version: 1.0.0
The skill bundle provides an automatic model failover and failback guard for OpenClaw. The core Python script (`failover.py`) uses `subprocess.run` to execute `openclaw` commands with fixed arguments, preventing shell injection. It modifies the `~/.openclaw/openclaw.json` configuration and logs to `~/.openclaw/failover.log`, which is consistent with its stated purpose. While paths for configuration, state, and logs are configurable via `config.json`, this is a design feature for flexibility rather than an inherent vulnerability, as it requires prior compromise of the local `config.json`. The markdown files (`SKILL.md`, `README.md`) clearly describe the skill's functionality and do not contain any prompt injection attempts or instructions for malicious behavior. The '安全边界' section in `skills/model-failover-guard/SKILL.md` explicitly states benign actions.
能力评估
Purpose & Capability
Name/description (model failover) align with required actions: reading/writing ~/.openclaw/openclaw.json, enumerating configured models, testing models via the 'openclaw' CLI, and restarting the gateway. All requested resources and behaviors are coherent with implementing a failover guard.
Instruction Scope
SKILL.md and the runtime script limit actions to model health checking, switching the primary model in OpenClaw config, saving state/logs under ~/.openclaw, and restarting the gateway. The script does not access unrelated system paths, environment secrets, or external network endpoints beyond invoking the local 'openclaw' CLI.
Install Mechanism
This is instruction-only in the registry (no automated install spec). README suggests installing via 'npx skills add ...' from GitHub, but nothing is downloaded/installed automatically by the skill itself in the package contents. Included Python script is local and executed by the user. No high-risk external downloads or obscure URLs are used in the provided files.
Credentials
The skill requests no environment variables, credentials, or unrelated config paths. It reads/writes OpenClaw's config and state/log files under the user's home directory — appropriate and necessary for its function. No broad or unrelated secrets are requested.
Persistence & Privilege
The skill will modify the OpenClaw config (~/.openclaw/openclaw.json), write state and logs (~/.openclaw/*), and restart the OpenClaw gateway via 'openclaw gateway restart'. These behaviors are expected for a failover tool but do require filesystem and process-control privileges (ability to write the config and restart the service). 'always' is false and the skill does not attempt to alter other skills' configs.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install model-failover-guard - 安装完成后,直接呼叫该 Skill 的名称或使用
/model-failover-guard触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Automatic model switching when primary fails
元数据
常见问题
Model Failover Guard 是什么?
Automatically monitors model health and switches between primary and fallback models to maintain stability and recover when possible. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 369 次。
如何安装 Model Failover Guard?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install model-failover-guard」即可一键安装,无需额外配置。
Model Failover Guard 是免费的吗?
是的,Model Failover Guard 完全免费(开源免费),可自由下载、安装和使用。
Model Failover Guard 支持哪些平台?
Model Failover Guard 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Model Failover Guard?
由 BovmantH(@bovmanth)开发并维护,当前版本 v1.0.0。
推荐 Skills