← 返回
安全合规 中文

OpenClaw Production Setup Guide

Step-by-step 6-part guide to set up OpenClaw AI assistant on VPS with WhatsApp, Google OAuth, backups, security, automation, and verification.
六步指南:在 VPS 上部署 OpenClaw AI 助手,包含 WhatsApp、Google OAuth、备份、安全、自动化和验证。
aliahmadaziz
安全合规 clawhub v1.3.0 1 版本 99851.9 Key: 无需
★ 0
Stars
📥 674
下载
💾 8
安装
1
版本
#beginner#guide#installation#latest#production#security#setup#vps#whatsapp

概述

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

  1. Base Install — VPS setup, Node.js, OpenClaw installation, WhatsApp pairing
  2. AI Assistant — Personality, model chain (primary + fallback), workspace files (SOUL.md, USER.md, IDENTITY.md)
  3. Infrastructure — Google OAuth (Calendar, Gmail, Drive, Sheets), webhook server, Cloudflare tunnel, rclone encrypted backups, git backup
  4. Automation — Cron jobs, event queue (SQLite-backed with retries + dead-letter), heartbeat system, two-layer delivery pattern
  5. Hardening — CrowdSec IDS, secret rotation, config snapshots, rollback scripts, OpenClaw update safety
  6. 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 个版本

  • v1.3.0 当前
    2026-03-29 16:30 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 89 📥 30,602
productivity

OpenClaw Safe Upgrade

aliahmadaziz
安全的OpenClaw升级,支持即时回滚。当用户说“升级openclaw”、“更新openclaw”、“检查更新”或任何升级/更新请求时使用。
★ 0 📥 761
security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,215 📥 266,418