/install claw-stack-manager
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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install claw-stack-manager - After installation, invoke the skill by name or use
/claw-stack-manager - Provide required inputs per the skill's parameter spec and get structured output
What is 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... It is an AI Agent Skill for Claude Code / OpenClaw, with 14 downloads so far.
How do I install Claw Stack Manager?
Run "/install claw-stack-manager" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Claw Stack Manager free?
Yes, Claw Stack Manager is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Claw Stack Manager support?
Claw Stack Manager is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Claw Stack Manager?
It is built and maintained by liyj (@zaixi); the current version is v1.0.0.