当前位置: 首页 > Skill >

OpenClaw Production Setup Guide

OpenClaw Production Setup Guide

OpenClaw Production Setup Guide

六步指南:在 VPS 上部署 OpenClaw AI 助手,包含 WhatsApp、Google OAuth、备份、安全、自动化和验证。

1.3.0 2026.11.11 135
获取Skill文件查看使用说明
作 者:陆川 许可证: 更新时间:2026.11.11
本文目录展开

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

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,037
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,020
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,019
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,016
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,015
Skill 文件
  • SKILL.md
    • OpenClaw Production Setup Guide
    • What This Covers
    • Security & Permissions Notice
    • Prerequisites
    • Full Guide
    • Usage
    • Key Design Decisions
    • Credits
    • Tags
  • 项目或源文件

相关 Skill

更多
Subway Restaurant Agent Subway Restaurant Agent ThumbGate加固的WhatsApp下单代理,面向QSR,具备智能追加销售和库存感知。
Dental Clinic Assistant Dental Clinic Assistant WhatsApp牙科诊所助手,提供预约、提醒、分诊、新患者信息收集、常见问题解答及评价请求等功能。
提供海外企业数据、商业数据查询,支持搜索公司与联系人查询服务,帮助用户查找全球企业/海外公司、验证联系人信息、公司邮箱、企业电话、公司职位等,筛选出高质量的 外贸潜在客户 / 外贸线索。助力外贸公司、外贸企业、出口商、采购代理、销售团队发现采购决策者、寻找供应商并加速客户开发 / 获客——所有功能仅需一次搜索即可实现,适用于外贸 B2B找客户、供应商开发与销售线索挖掘。 提供海外企业数据、商业数据查询,支持搜索公司与联系人查询服务,帮助用户查找全球企业/海外公司、验证联系人信息、公司邮箱、企业电话、公司职位等,筛选出高质量的 外贸潜在客户 / 外贸线索。助力外贸公司、外贸企业、出口商、采购代理、销售团队发现采购决策者、寻找供应商并加速客户开发 / 获客——所有功能仅需一次搜索即可实现,适用于外贸 B2B找客户、供应商开发与销售线索挖掘。 搜索全球企业及个人信息,助力跨境贸易、海外采购商线索开发。为出口商、采购商、服务商、代理商及销售团队提供企业决策者与高管信息,快速锁定供应商,拓展海外客户。平台提供企业注册信息、背景资料及联系方式(邮箱、电话、WhatsApp),适用于海外客户开发、企业背调、人才搜索等场景。
OpenClaw wacli Playbook OpenClaw wacli Playbook 通过wacli CLI 发送 WhatsApp 消息或搜索/同步聊天记录(非普通用户聊天)。
I Love You Mom I Love You Mom 自动化每月照片转Mixtiles流程:从WhatsApp群收集照片,使用视觉筛选优质图片,生成多照片Mixtiles购物车列表。