๐ŸŽ Get the FREE AI Skills Starter Guide โ€” Subscribe โ†’
BytesAgainBytesAgain
๐Ÿฆ€ 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.

Versionv1.0.4
Downloads3,381
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

  • ๐Ÿณ Build Docker images (clean/full versions)
  • ๐Ÿ“ฆ Create portable packages for deployment
  • ๐Ÿš€ Deploy to remote servers with one command
  • ๐Ÿ’พ Backup and restore configurations
  • Quick Start

    Build Portable Packages

    # Build both clean and full versions
    ./scripts/build-portable.sh

    Export for deployment

    ./scripts/export-portable.sh

    Deploy to Remote Server

    # Deploy clean version
    ./export/deploy.sh user@remote-server clean /opt/openclaw

    Deploy 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.sh

    Start OpenClaw

    cd clean && ./start.sh # or cd full && ./start.sh

    Access WebUI

    open http://localhost:18789

    Requirements

  • Node.js 22.x
  • Docker (optional, for Docker builds)
  • curl, rsync (for deployment)
  • Configuration

    Environment Variables

    You can customize paths using environment variables:

    # OpenClaw installation directory (default: auto-detect)
    export OPENCLAW_INSTALL_DIR=/path/to/openclaw

    OpenClaw config directory (default: ~/.openclaw)

    export OPENCLAW_CONFIG_DIR=/path/to/.openclaw

    Output 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

  • Fixed hardcoded paths
  • Added environment variable support
  • Improved error handling and dependency checks
  • Added path validation
  • v1.0.0

  • Initial release
  • Author

    zfanmy-ๆขฆๆœˆๅ„ฟ

    ๐Ÿ’ก Examples

    Build Portable Packages

    # Build both clean and full versions
    ./scripts/build-portable.sh

    Export for deployment

    ./scripts/export-portable.sh

    Deploy to Remote Server

    # Deploy clean version
    ./export/deploy.sh user@remote-server clean /opt/openclaw

    Deploy 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/openclaw

    OpenClaw config directory (default: ~/.openclaw)

    export OPENCLAW_CONFIG_DIR=/path/to/.openclaw

    Output 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