
Backup and restore OpenClaw configuration, credentials, and workspace.
Run the backup script:
bash
./scripts/backup.sh [backup_dir]
Default backup location: ~/openclaw-backups/
Output: openclaw-YYYY-MM-DD_HHMM.tar.gz
openclaw.json — main configcredentials/ — API keys, tokensagents/ — agent configs, auth profilesworkspace/ — memory, SOUL.md, user filestelegram/ — session datacron/ — scheduled taskscompletions/ — cache, regenerated automatically*.log — logsUse OpenClaw cron for daily backups with notification:
json
{
"name": "daily-backup",
"schedule": {"kind": "cron", "expr": "0 3 * * *", "tz": "UTC"},
"payload": {
"kind": "agentTurn",
"message": "Run ~/.openclaw/backup.sh and report result to user."
},
"sessionTarget": "isolated",
"delivery": {"mode": "announce"}
}
See references/restore.md for step-by-step restore instructions.
Quick restore:
bash
openclaw gateway stop
mv ~/.openclaw ~/.openclaw-old
tar -xzf ~/openclaw-backups/openclaw-YYYY-MM-DD_HHMM.tar.gz -C ~
openclaw gateway start
Script keeps last 7 backups automatically.
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
通过发送按键和抓取窗格输出,远程控制交互式 CLI 的 tmux 会话。
用于代码安全漏洞审查、身份验证流程实现、OWASP Top 10审计、CORS/CSP 头部配置、密钥处理、输入验证、SQL 注入防护、XSS 防护及其他安全相关代码审查。