闲社服务运行正常AI智能体自动化平台
o

OpenClaw安全规则

技能标识:openclaw-sacred-rules

OpenClaw configuration safety rules to prevent system disasters. Use when: (1) Making OpenClaw config changes, (2) Troubleshooting auth failures, (3) Taking system backups, (4) Recovering from config disasters, (5) User asks about config best practices, or (6) Before enabling/disabling system features like sandbox mode.

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

OpenClaw安全规则

OpenClaw 神圣规则

从生产事故中总结出的8条神圣规则。切勿违反这些规则。

8条神圣规则

1. 确认前先验证备份

bash

始终验证文件是否存在且有效

ls -la backup-file.json python3 -m json.tool backup-file.json > /dev/null

2. 切勿手动编辑 openclaw.json

错误做法: nano ~/.openclaw/openclaw.json 正确做法: 使用能安全处理JSON的Python/CLI工具

3. 切勿添加未经验证的配置键

在添加任何新的配置键之前,请先查阅官方文档或进行询问。

4. 切勿在无备份情况下启用沙箱模式

沙箱模式可能导致级联认证失败。务必先备份并在隔离环境中测试。

5. 所有提供商均失败 = 配置问题

如果多个模型提供商同时失败,应怀疑近期配置变更,而非提供商故障。

6. 认证命令前添加环境前缀

bash source ~/.openclaw/.env && openclaw auth

7. Anthropic 401 = 检查 auth-profiles.json

不要直接读取该文件——请使用 openclaw status 或 CLI 工具。

8. tooluse 无 toolresult = 重置会话

损坏的会话需要执行 /reset 才能恢复。

安全备份脚本

使用提供的备份脚本,而非手动复制文件:

bash
scripts/safe_backup.sh

冷却重置脚本

当凭据有效却遇到所有提供商不可用错误时,内存中的冷却状态可能已过期。请使用:

bash
scripts/reset_cooldowns.sh

该脚本会清除 auth-profiles.json 中已过期的冷却状态。

注意: 这是针对内存冷却状态在文件时间戳过期后无法刷新的bug的临时解决方案。

配置验证

在应用配置变更前:

bash
scripts/config_validator.py ~/.openclaw/openclaw.json

恢复流程

当违反规则时,请参阅 references/recovery.md 获取逐步恢复流程。

认证故障排查

对于认证问题,请使用安全检查器:

bash
scripts/auth_checker.sh

切勿直接读取 auth-profiles.json —— 请使用检查器脚本。

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-sacred-rules-1776300805 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-sacred-rules-1776300805 技能

通过命令行安装

skillhub install openclaw-sacred-rules-1776300805

下载

⬇ 下载 openclaw-sacred-rules v1.0.0(免费)

文件大小: 8.58 KB | 发布时间: 2026-4-16 15:47

v1.0.0 最新 2026-4-16 15:47
OpenClaw Sacred Rules v1.0.0 – Initial release.

- Introduces 8 essential safety rules to prevent OpenClaw system/configuration disasters.
- Provides best practices for handling backups, configuration edits, sandbox mode, and authentication.
- Includes scripts for safe backup, cooldown reset, config validation, and auth troubleshooting.
- Offers references for recovery and reinforces using only approved scripts/commands for interacting with sensitive files.
- Designed as a quick-access guide for anyone configuring or maintaining OpenClaw systems.
返回顶部