๐ฆ ClawHub
Openclaw Deploy
by @zfanmy
Build and deploy OpenClaw as Docker images or portable packages. Package OpenClaw with or without personal configuration for easy deployment to other servers.
TERMINAL
clawhub install openclaw-deploy๐ About This Skill
SKILL.md ๅ ๆฐๆฎๆ ผๅผ็คบไพ
name: openclaw-deploy description: Build and deploy OpenClaw as Docker images or portable packages author: zfanmy-ๆขฆๆๅฟ version: 1.0.1 homepage: license: MIT keywords: - openclaw - deploy - docker - portable - backup - migration requires: bins: - node - npm - tar
OpenClaw Deploy
Build and deploy OpenClaw as Docker images or portable packages.
Features
Quick Start
Build Portable Packages
# Build both clean and full versions
./scripts/build-portable.shExport for deployment
./scripts/export-portable.sh
Deploy to Remote Server
# Deploy clean version
./export/deploy.sh user@remote-server clean /opt/openclawDeploy full version
./export/deploy.sh user@remote-server full /opt/openclaw
Directory Structure
openclaw-deploy/
โโโ portable/clean/ # Clean version (no personal data)
โโโ portable/full/ # Full version (with config)
โโโ export/ # Deployment packages
โ โโโ openclaw-clean-portable.tar.gz
โ โโโ openclaw-full-portable.tar.gz
โ โโโ deploy.sh
โโโ scripts/
โโโ build-portable.sh
โโโ export-portable.sh
โโโ deploy.sh
Usage on Target Server
# Install Node.js
./install-node.shStart OpenClaw
cd clean && ./start.sh # or cd full && ./start.shAccess WebUI
open http://localhost:18789
Requirements
Configuration
Environment Variables
You can customize paths using environment variables:
# OpenClaw installation directory (default: auto-detect)
export OPENCLAW_INSTALL_DIR=/path/to/openclawOpenClaw config directory (default: ~/.openclaw)
export OPENCLAW_CONFIG_DIR=/path/to/.openclawOutput directory (default: ./openclaw-portable-output)
export OUTPUT_DIR=/path/to/output
Example with Custom Paths
export OPENCLAW_INSTALL_DIR=/opt/openclaw
export OPENCLAW_CONFIG_DIR=/opt/config/.openclaw
export OUTPUT_DIR=/tmp/openclaw-packages./scripts/build-portable.sh
Changelog
v1.0.1
v1.0.0
Author
zfanmy-ๆขฆๆๅฟ
๐ก Examples
Build Portable Packages
# Build both clean and full versions
./scripts/build-portable.shExport for deployment
./scripts/export-portable.sh
Deploy to Remote Server
# Deploy clean version
./export/deploy.sh user@remote-server clean /opt/openclawDeploy full version
./export/deploy.sh user@remote-server full /opt/openclaw
โ๏ธ Configuration
Environment Variables
You can customize paths using environment variables:
# OpenClaw installation directory (default: auto-detect)
export OPENCLAW_INSTALL_DIR=/path/to/openclawOpenClaw config directory (default: ~/.openclaw)
export OPENCLAW_CONFIG_DIR=/path/to/.openclawOutput directory (default: ./openclaw-portable-output)
export OUTPUT_DIR=/path/to/output
Example with Custom Paths
export OPENCLAW_INSTALL_DIR=/opt/openclaw
export OPENCLAW_CONFIG_DIR=/opt/config/.openclaw
export OUTPUT_DIR=/tmp/openclaw-packages./scripts/build-portable.sh