Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

model_manager

v1.0.1

OpenClaw 模型管理工具。用于查看、设置和管理 OpenClaw 使用的大语言模型。 当用户提到以下场景时使用:切换模型、查看可用模型、设置备用模型、管理模型降级。 重要:此 skill 必须在获得用户明确指示后才能使用。

0· 101·0 current·0 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for williamxxu/modelmanager.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "model_manager" (williamxxu/modelmanager) from ClawHub.
Skill page: https://clawhub.ai/williamxxu/modelmanager
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install modelmanager

ClawHub CLI

Package manager switcher

npx clawhub@latest install modelmanager
Security Scan
VirusTotalVirusTotal
Suspicious
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
Name and description align with functionality: listing/setting models and managing fallbacks. However, the implementation calls a hardcoded macOS app script (/Applications/QClaw.app/.../openclaw-mac.sh) while the SKILL.md instructs running a workspace-local script path (~/.qclaw/workspace/skills/...). The skill claims to save changes to ~/.qclaw/agents/main/agent/models.json and ~/.qclaw/openclaw.json which is consistent with a model manager, but the hardcoded macOS wrapper makes the skill platform-specific despite no OS restriction.
!
Instruction Scope
SKILL.md states queries are safe and modifications require explicit user authorization, but the provided Python script performs modifications whenever invoked and does not itself enforce or prompt for user confirmation. The script also contains a bug/inconsistency for the documented 'fallback list' command (the code expects argv[1]=='fallback list' which is inconsistent with typical argv parsing and the documentation). These mismatches mean the runtime behavior may not respect the described safeguards.
Install Mechanism
No install spec or external downloads; the skill is instruction-only plus a local Python script, so there is no package-fetch or remote installer risk.
Credentials
The skill requests no environment variables or external credentials, which is proportional to its stated local-management purpose. Note: the script uses subprocess.run with shell=True and directly interpolates model IDs into shell commands, creating a command-injection risk if untrusted input is passed.
!
Persistence & Privilege
always is false (good), but disable-model-invocation is false so the agent may invoke the skill autonomously. Combined with the script not enforcing the described 'explicit user authorization' for modification commands and the shell-injection vulnerability, autonomous invocation increases risk. The skill does write through OpenClaw's CLI to local config files (models.json and openclaw.json) which is expected but privileged.
What to consider before installing
This skill aims to manage local OpenClaw models and is plausible, but there are several issues you should address before installing or using it unattended: 1) Platform mismatch — the script calls a macOS-specific path (/Applications/QClaw.app/...) despite no OS restriction; don't install if you aren't on that platform or if that path is absent. 2) Authorization mismatch — SKILL.md says modifications require explicit user permission but the script will perform changes when invoked; ensure the runtime enforces confirmations or only run on explicit user commands. 3) Command injection — model IDs are interpolated into shell commands with shell=True; if the skill receives untrusted input this could execute arbitrary shell commands. 4) Functional bug — the documented 'fallback list' command is not implemented consistently with argv parsing. Recommended actions: review and patch the script (avoid shell=True, sanitize inputs, fix the fallback-list handling, remove hardcoded macOS paths or add platform checks), restrict autonomous invocation until fixes are applied, and test in a safe environment. If you cannot inspect and/or fix the code, treat the skill as risky and do not grant it autonomous execution rights.

Like a lobster shell, security has layers — review code before you run it.

latestvk972bxrm4yn0j39v6e6ssbk5nn83nr64
101downloads
0stars
1versions
Updated 1mo ago
v1.0.1
MIT-0

model-manager

OpenClaw 模型管理工具,用于查看、设置和管理当前使用的大语言模型(LLM)。

⚠️ 使用限制

  • 查询操作(list, status, fallback list)无需授权,可自由使用
  • 修改操作(set, fallback add/remove)必须获得用户的明确指示才能使用
  • 未经许可,不得自动切换模型或修改模型配置

前置依赖

  • OpenClaw 已正常运行
  • 已配置模型提供者(如 qclaw、ollama 等)

使用方式

所有命令通过以下格式执行:

python3 ~/.qclaw/workspace/skills/model-manager/scripts/model_manager.py <command> [args]

命令列表

命令说明示例
list列出所有可用模型./model_manager.py list
set <model_id>设置默认模型./model_manager.py set ollama/nemotron-3-super:cloud
fallback add <model_id>添加备用模型./model_manager.py fallback add ollama/ministral-3:14b
fallback remove <model_id>移除备用模型./model_manager.py fallback remove ollama/ministral-3:14b
fallback list列出所有备用模型./model_manager.py fallback list
status查看当前模型状态./model_manager.py status

示例用法

# 查看可用模型
python3 ~/.qclaw/workspace/skills/model-manager/scripts/model_manager.py list

# 切换到 Ollama 云端模型
python3 ~/.qclaw/workspace/skills/model-manager/scripts/model_manager.py set ollama/nemotron-3-super:cloud

# 添加本地模型作为备用
python3 ~/.qclaw/workspace/skills/model-manager/scripts/model_manager.py fallback add ollama/ministral-3:14b

# 查看当前状态
python3 ~/.qclaw/workspace/skills/model-manager/scripts/model_manager.py status

工作原理

此 skill 通过调用 OpenClaw 的内置 models CLI 命令来实现模型管理:

  • 查询模型列表:openclaw models list
  • 设置默认模型:openclaw models set <model-id>
  • 管理备用模型:openclaw models fallbacks add/remove/list <model-id>
  • 查看状态:openclaw models status

所有更改会保存到:

  • ~/.qclaw/agents/main/agent/models.json(当前会话)
  • ~/.qclaw/openclaw.json(全局配置)

注意事项

  1. 查询自由,修改需授权:list、status、fallback list 可直接使用;set、fallback add/remove 需要用户明确授权
  2. 模型可用性取决于配置:只有在 openclaw.json 中正确配置了对应的模型提供者后,才能成功切换
  3. 切换时机:模型变更将在下次新会话或模型调用失败时生效
  4. 安全考虑:防止未经授权的模型更改可能导致的成本增加或服务中断

示例场景

用户说: “列出当前可用模型”
→ 无需授权,skill 可直接执行 list

用户说: “查看当前模型状态”
→ 无需授权,skill 可直接执行 status

用户说: “把模型切换到 ollama/nemotron-3-super:cloud”
→ 需要明确授权后,skill 才能执行 set 操作

用户说: “添加 ollama/ministral-3:14b 作为备用模型”
→ 需要明确授权后,skill 才能执行 fallback add 操作

Comments

Loading comments...