← 返回 Skills 市场
14
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install claw-stack-manager
功能描述
Manage the OpenClaw claw Docker stack via Portainer API. Supports pulling new image and redeploying (update) or fast restart without pulling. Trigger on: sta...
使用说明 (SKILL.md)
Claw Stack Manager
Manage the claw Docker stack via Portainer's HTTP API.
Modes
| Mode | What it does | Transition |
|---|---|---|
update |
Pull latest image, then trigger stack redeploy | ~20s container transition |
restart |
Quick redeploy without pulling | ~20s container transition |
pull-only |
Just pull the latest image | No transition |
Usage
# Update: pull new image + restart stack
python3 {{SKILL_DIR}}/scripts/manage.py --mode update
# Restart: just restart without pulling
python3 {{SKILL_DIR}}/scripts/manage.py --mode restart
# Pull: download latest image only
python3 {{SKILL_DIR}}/scripts/manage.py --mode pull-only
How it works
- Adds a unique
REDEPLOY_TSenv var to the stack's compose file - Docker Compose detects the environment change and recreates the container
- Uses
container_name: openclaw-gateway, so there is a brief transition (~20s) - For
--mode update, pulls the image first to minimize total downtime
Requirements
- Portainer API access (set
PORTAINER_API_KEYenv) PORTAINER_URL(default:http://docker.nas.liyj.cn:2082)CLAW_STACK_ID(default:89)PORTAINER_ENDPOINT(default:2)CLAW_IMAGE(default:liyujiang/openclaw:latest)
All configurable via environment variables.
安全使用建议
Review carefully before installing. Only use this if you own the target Portainer instance and intend to let the agent restart or update the OpenClaw stack. Set PORTAINER_URL explicitly to your HTTPS Portainer endpoint, confirm CLAW_STACK_ID and PORTAINER_ENDPOINT, use a limited API key, and prefer pinned Docker image versions for production updates.
功能分析
Type: OpenClaw Skill
Name: claw-stack-manager
Version: 1.0.0
The skill is a utility for managing Docker stacks via the Portainer API, specifically designed to pull images and trigger redeploys. The Python script (scripts/manage.py) uses standard libraries to interact with the Portainer HTTP API using a user-provided API key. While it contains a hardcoded default URL (docker.nas.liyj.cn), there is no evidence of data exfiltration, malicious command execution, or intentional prompt injection.
能力标签
能力评估
Purpose & Capability
The stated purpose matches the code, but the capability is high-impact: it can pull Docker images and redeploy/restart a Portainer-managed stack.
Instruction Scope
The script requires an explicit --mode, but there is no built-in confirmation, rollback, or target verification before mutating the stack configuration.
Install Mechanism
There is no installer and the Python source is included, but registry metadata does not declare the required Portainer API key/config even though the SKILL and code require it.
Credentials
The skill uses a Portainer API key and defaults PORTAINER_URL to http://docker.nas.liyj.cn:2082, meaning the key would be sent over plaintext HTTP to that host unless overridden.
Persistence & Privilege
There is no background persistence, but it persistently changes the Portainer stack file by adding REDEPLOY_TS and redeploying the stack, with no cleanup or rollback guidance.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claw-stack-manager - 安装完成后,直接呼叫该 Skill 的名称或使用
/claw-stack-manager触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release - manage OpenClaw stack via Portainer API
元数据
常见问题
Claw Stack Manager 是什么?
Manage the OpenClaw claw Docker stack via Portainer API. Supports pulling new image and redeploying (update) or fast restart without pulling. Trigger on: sta... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 14 次。
如何安装 Claw Stack Manager?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claw-stack-manager」即可一键安装,无需额外配置。
Claw Stack Manager 是免费的吗?
是的,Claw Stack Manager 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Claw Stack Manager 支持哪些平台?
Claw Stack Manager 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Claw Stack Manager?
由 liyj(@zaixi)开发并维护,当前版本 v1.0.0。
推荐 Skills