Skip to content

Joe-Heffer/deploy-openclaw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

118 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenClaw Deployment

Deploy to VPS Lint

Deployment scripts and configuration for running OpenClaw on Linux VPS.

What is OpenClaw?

OpenClaw is a personal AI assistant that runs on your own hardware. It connects to messaging platforms you already use (WhatsApp, Telegram, Slack, Discord, etc.) and can perform tasks, manage your calendar, browse the web, organize files, and run terminal commands.

Quick Start

git clone https://github.com/Joe-Heffer/moltbot.git
cd moltbot
sudo ./deploy/deploy.sh
sudo -u openclaw -i openclaw onboard
sudo systemctl start openclaw-gateway
sudo systemctl enable openclaw-gateway

Then access the Gateway UI at http://<your-vm-ip>:18789

For detailed instructions, see Quick Start Guide.

Prerequisites

  • Ubuntu 24.04 LTS (Debian, RHEL, Oracle Linux also supported)
  • Root/sudo access
  • At least 2 GB RAM (4 GB recommended)
  • API key from Anthropic, OpenAI, or Google Gemini

Documentation

Start here: Documentation Hub — Overview of all guides

Core Guides

Operations

Security & Planning

Learning

What This Repository Does

This repository provides:

  • deploy/deploy.sh — Idempotent deployment script (install + update)
  • deploy/setup-server.sh — CI/CD server preparation
  • deploy/lib.sh — Shared utilities (logging, validation, memory tuning)
  • GitHub Actions workflows — Automated deployment and semantic versioning
  • Documentation — Setup guides, security hardening, troubleshooting

It does not contain the OpenClaw application itself (installed via npm install -g openclaw).

Automated Deployment (GitHub Actions)

For CI/CD deployment to your VPS:

  1. Run one-time setup on VPS:

    sudo ./deploy/setup-server.sh
  2. Add repository secrets (VPS_HOST, VPS_USERNAME, VPS_SSH_KEY, VPS_PORT)

  3. Push to main branch or manually trigger workflow

See GitHub Actions CI/CD Guide for details.

Common Tasks

Restart the Service

sudo systemctl restart openclaw-gateway

View Logs

sudo journalctl -u openclaw-gateway -f

Run Diagnostics

sudo -u openclaw -i openclaw doctor

Update OpenClaw

sudo ./deploy/deploy.sh

For more, see Service Management.

Agent Memory Backup

OpenClaw agents learn from conversations and build context over time. To prevent data loss if your VM is reset or fails, configure automated backups:

# Copy and configure backup settings
sudo cp /home/openclaw/.config/openclaw/backup.conf.template /home/openclaw/.config/openclaw/backup.conf
sudo nano /home/openclaw/.config/openclaw/backup.conf

# Enable automated daily backups
sudo systemctl enable --now openclaw-backup.timer

Supports Git repositories (GitHub, GitLab) and cloud storage (via rclone). See Agent Memory Backup Guide for detailed setup instructions.

Troubleshooting

Service won't start?

sudo journalctl -u openclaw-gateway -n 50

Out of memory? See Low-Memory VPS for swap setup.

Gateway unreachable? See Troubleshooting Guide.

Repository Visibility

This repository is safe to make public — it contains no secrets, only generic deployment scripts and documentation. API keys are loaded from .env files (excluded by .gitignore) or GitHub Actions encrypted secrets.

See Public vs. Private for details.

Contributing

We welcome contributions! See Contributing Guidelines for:

  • Conventional commit format
  • Pull request process
  • Code review standards

Release Process

This repository uses semantic versioning (0.1.0, 0.2.0, etc.). See Releasing Guide for:

  • How releases are automated
  • Version bumping rules
  • Deployment tracking

Resources

License

MIT License - See LICENSE file


Questions? Start with the Quick Start Guide or check the Troubleshooting Guide.

About

An automatic deployment workflow for the OpenClaw AI agent.

Topics

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Contributors

Languages