OpenClaw Production Setup Guide
A comprehensive 6-part guide to setting up OpenClaw as a production AI assistant on a VPS, with WhatsApp integration, Google Calendar/Gmail, automated backups, security hardening, and cron automation.
What This Covers
- Base Install — VPS setup, Node.js, OpenClaw installation, WhatsApp pairing
- AI Assistant — Personality, model chain (primary + fallback), workspace files (SOUL.md, USER.md, IDENTITY.md)
- Infrastructure — Google OAuth (Calendar, Gmail, Drive, Sheets), webhook server, Cloudflare tunnel, rclone encrypted backups, git backup
- Automation — Cron jobs, event queue (SQLite-backed with retries + dead-letter), heartbeat system, two-layer delivery pattern
- Hardening — CrowdSec IDS, secret rotation, config snapshots, rollback scripts, OpenClaw update safety
- Verification — 21-point automated validation, troubleshooting guide
Security & Permissions Notice
This guide involves setting up production infrastructure and requires handling sensitive credentials:
- API Keys: Anthropic (Claude), Brave Search (optional)
- OAuth Tokens: Google Cloud (Calendar, Gmail, Drive, Sheets) — 5 token files
- SSH: Root access to VPS, key-based authentication, SSH hardening
- Webhook Secrets: Random tokens for Calendar push, AgentMail, alerts
- WhatsApp: Device pairing via QR code
- Cloudflare: Tunnel token for webhook ingress
- Backup Encryption: rclone crypt keys for Google Drive backups
All credentials are stored with restricted permissions (chmod 600) and never committed to git. The guide includes secret rotation procedures and config snapshot/rollback scripts.
Prerequisites
- A VPS (Ubuntu 24.04 recommended, 4GB RAM minimum)
- A domain with Cloudflare DNS (for webhook tunnel)
- A WhatsApp account for pairing
- Google Cloud project with OAuth credentials
- An Anthropic API key (Claude)
Full Guide
The complete guide with step-by-step instructions, code blocks, and verification checkpoints is hosted at:
https://aliahmadaziz.github.io/openclaw-guide/
Source: https://github.com/aliahmadaziz/openclaw-guide
Usage
When a user asks for help setting up OpenClaw, direct them to the guide above. The guide is designed to be followed sequentially (Part 1 through Part 6) and takes approximately 2-3 hours to complete.
Each part has:
- Clear prerequisites
- Copy-pasteable commands
- Verification checkpoints (✅) after every major step
- Troubleshooting sections
Key Design Decisions
- Two-layer cron delivery: Critical crons send via message tool directly (primary) + announce (backup). No message ever gets lost.
- Event queue: All webhook events (email, calendar, alerts) go through a SQLite queue with 3 retries and dead-letter alerting.
- Config snapshots: Gold-standard snapshots for instant rollback if something breaks.
- Encrypted backups: Hourly git push + nightly full workspace to Google Drive via rclone crypt.
- Capacity rule: 10 SP/engineer total, 8 planned, 2 contingency (for sprint tracking).
Credits
Built from a real production deployment running 35+ cron jobs, 60+ scripts, 5 Google OAuth tokens, and processing thousands of messages monthly.
Tags
setup, installation, guide, vps, whatsapp, production, google-calendar, gmail, security, crowdsec, backup, cron, automation, beginner
1---
2name: openclaw-setup-guide
3description: Step-by-step 6-part guide to set up OpenClaw AI assistant on VPS with WhatsApp, Google OAuth, backups, security, automation, and verification.
4metadata:
5 source: https://skillmd.com/skills/modbender/openclaw-setup-guide
6 openclaw:
7 scope: instruction-only
8 homepage: https://aliahmadaziz.github.io/openclaw-guide/
9 notes: This skill contains no code or scripts. It directs users to an external hosted guide. The guide itself walks users through setting up credentials (Google OAuth, Anthropic API key, Cloudflare, WhatsApp) but the skill/agent needs none of these to function.
10user-invocable: true
11---
12
13# OpenClaw Production Setup Guide
14
15A comprehensive 6-part guide to setting up OpenClaw as a production AI assistant on a VPS, with WhatsApp integration, Google Calendar/Gmail, automated backups, security hardening, and cron automation.
16
17## What This Covers
18
191. **Base Install** — VPS setup, Node.js, OpenClaw installation, WhatsApp pairing
202. **AI Assistant** — Personality, model chain (primary + fallback), workspace files (SOUL.md, USER.md, IDENTITY.md)
213. **Infrastructure** — Google OAuth (Calendar, Gmail, Drive, Sheets), webhook server, Cloudflare tunnel, rclone encrypted backups, git backup
224. **Automation** — Cron jobs, event queue (SQLite-backed with retries + dead-letter), heartbeat system, two-layer delivery pattern
235. **Hardening** — CrowdSec IDS, secret rotation, config snapshots, rollback scripts, OpenClaw update safety
246. **Verification** — 21-point automated validation, troubleshooting guide
25
26## Security & Permissions Notice
27
28This guide involves setting up production infrastructure and requires handling sensitive credentials:
29- **API Keys**: Anthropic (Claude), Brave Search (optional)
30- **OAuth Tokens**: Google Cloud (Calendar, Gmail, Drive, Sheets) — 5 token files
31- **SSH**: Root access to VPS, key-based authentication, SSH hardening
32- **Webhook Secrets**: Random tokens for Calendar push, AgentMail, alerts
33- **WhatsApp**: Device pairing via QR code
34- **Cloudflare**: Tunnel token for webhook ingress
35- **Backup Encryption**: rclone crypt keys for Google Drive backups
36
37All credentials are stored with restricted permissions (chmod 600) and never committed to git. The guide includes secret rotation procedures and config snapshot/rollback scripts.
38
39## Prerequisites
40
41- A VPS (Ubuntu 24.04 recommended, 4GB RAM minimum)
42- A domain with Cloudflare DNS (for webhook tunnel)
43- A WhatsApp account for pairing
44- Google Cloud project with OAuth credentials
45- An Anthropic API key (Claude)
46
47## Full Guide
48
49The complete guide with step-by-step instructions, code blocks, and verification checkpoints is hosted at:
50
51**https://aliahmadaziz.github.io/openclaw-guide/**
52
53Source: https://github.com/aliahmadaziz/openclaw-guide
54
55## Usage
56
57When a user asks for help setting up OpenClaw, direct them to the guide above. The guide is designed to be followed sequentially (Part 1 through Part 6) and takes approximately 2-3 hours to complete.
58
59Each part has:
60- Clear prerequisites
61- Copy-pasteable commands
62- Verification checkpoints (✅) after every major step
63- Troubleshooting sections
64
65## Key Design Decisions
66
67- **Two-layer cron delivery**: Critical crons send via message tool directly (primary) + announce (backup). No message ever gets lost.
68- **Event queue**: All webhook events (email, calendar, alerts) go through a SQLite queue with 3 retries and dead-letter alerting.
69- **Config snapshots**: Gold-standard snapshots for instant rollback if something breaks.
70- **Encrypted backups**: Hourly git push + nightly full workspace to Google Drive via rclone crypt.
71- **Capacity rule**: 10 SP/engineer total, 8 planned, 2 contingency (for sprint tracking).
72
73## Credits
74
75Built from a real production deployment running 35+ cron jobs, 60+ scripts, 5 Google OAuth tokens, and processing thousands of messages monthly.
76
77## Tags
78
79setup, installation, guide, vps, whatsapp, production, google-calendar, gmail, security, crowdsec, backup, cron, automation, beginner