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: stack update, image upgrade, container restart, redeploy.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "claw-stack-manager" with this command: npx skills add zaixi/claw-stack-manager

Claw Stack Manager

Manage the claw Docker stack via Portainer's HTTP API.

Modes

ModeWhat it doesTransition
updatePull latest image, then trigger stack redeploy~20s container transition
restartQuick redeploy without pulling~20s container transition
pull-onlyJust pull the latest imageNo 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

  1. Adds a unique REDEPLOY_TS env var to the stack's compose file
  2. Docker Compose detects the environment change and recreates the container
  3. Uses container_name: openclaw-gateway, so there is a brief transition (~20s)
  4. For --mode update, pulls the image first to minimize total downtime

Requirements

  • Portainer API access (set PORTAINER_API_KEY env)
  • 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.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

evens-结算

AI驱动的智能结算助手,支持话题词精准识别、自然语言规则解析、规则确认流程、多种结算模式(达标瓜分/排名赛/混合模式),数据本地处理保障安全。触发词:「一组结算」「帮我结算」「请结算」「结算活动」。

Registry SourceRecently Updated
General

Model Switch

OpenClaw 一键切换AI模型技能。懒人触发词:切到xxx、当前模型、模型问题、添加/移除模型、模型对比/列表。解决"切换模型后为什么总是失败"的痛点。

Registry SourceRecently Updated
General

飞书文档翻译助手

飞书文档翻译助手 — 在飞书文档之间进行中英文互译,支持全文翻译、段落翻译、双语对照。当用户需要翻译飞书文档、英文文档转中文、中文文档转英文、或创建双语版本文档时使用。触发词:翻译飞书文档、文档翻译、中英互译、双语文档、translate feishu doc、飞书英文。

Registry SourceRecently Updated
General

Stock Terminal

Provides Bloomberg-style synthesized stock and market reports via typed commands like open, compare, daily brief, mood, screen smart-money, flow, and news, a...

Registry SourceRecently Updated