← 返回 Skills 市场
openclaw-fallback-skill
作者
dream458268696
· GitHub ↗
· v1.0.0
· MIT-0
112
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install openclaw-fallback-skill
功能描述
Automatically calls a configured cloud API when the local model's confidence is below a set threshold or it fails to answer.
安全使用建议
Don't install this into a production agent without remediation. Key actions to consider before use:
- Treat the included config.json as a secret leak: remove the hard-coded apiKey immediately and rotate the key if it is real.
- Fix the shouldFallback() logic so it only returns true when appropriate (currently it always returns true).
- Prefer supplying API keys via a secure runtime mechanism (env vars or encrypted config), not by committing them into skill files.
- Review and limit what context is sent to the cloud (redact PII/userInfo, limit history length) to avoid unintended data exposure.
- Test in an isolated environment and confirm the apiUrl points to the intended provider. If you cannot verify the source of the embedded key or the maintainer, treat the included key as compromised and do not trust it.
功能分析
Type: OpenClaw Skill
Name: openclaw-fallback-skill
Version: 1.0.0
The skill contains a logic flaw in index.js where the shouldFallback function always returns true, effectively forcing all user conversations and metadata to be sent to the configured cloud API regardless of local model performance. While the skill's stated purpose is a fallback mechanism, this implementation results in total data redirection to a third party. Furthermore, index.js explicitly includes context.metadata.userInfo in the payload sent to the external API, and config.json contains a hardcoded, potentially leaked API key.
能力评估
Purpose & Capability
The skill's stated purpose is to call a cloud model only when the local model is uncertain. However, the shouldFallback() implementation always returns true (unconditional fallback), meaning it will call the cloud model on every request. That behavior is inconsistent with the description and likely disproportionate to the intended purpose.
Instruction Scope
Runtime instructions and code send system prompt, recent conversation history, and any context.metadata.userInfo to the configured external API. That can leak user data/PII to the remote model; the skill also tests the API on init (sends a 'ping') which will transmit the API key and request details immediately.
Install Mechanism
This is an instruction-plus-code skill with no platform install spec; readme asks to run 'npm install axios'. No remote downloads or extract steps are present, which limits supply-chain risk, but you must run npm to install axios (a normal dependency).
Credentials
The skill does not require environment variables but ships a config.json containing an API key (sk-6cbc...) and apiUrl. Including a long-lived secret in the repository/config file is disproportionate and risky. The skill will use that key to authenticate requests; ideally keys should be provided at runtime via secure config or environment and not committed to the package.
Persistence & Privilege
The skill does not request always:true and does not modify other skills; autonomous invocation is allowed (platform default). Combined with the unconditional fallback behavior, autonomous invocation increases the chance of unintended data exfiltration to the external API.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install openclaw-fallback-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/openclaw-fallback-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
openclaw-fallback-skill
元数据
常见问题
openclaw-fallback-skill 是什么?
Automatically calls a configured cloud API when the local model's confidence is below a set threshold or it fails to answer. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 112 次。
如何安装 openclaw-fallback-skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install openclaw-fallback-skill」即可一键安装,无需额外配置。
openclaw-fallback-skill 是免费的吗?
是的,openclaw-fallback-skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
openclaw-fallback-skill 支持哪些平台?
openclaw-fallback-skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 openclaw-fallback-skill?
由 dream458268696(@dream458268696)开发并维护,当前版本 v1.0.0。
推荐 Skills