← 返回
开发者工具

Config Guardian

Safe OpenClaw config updates with automatic backup, validation, and rollback. For agent use - prevents invalid config updates.
安全 OpenClaw 配置更新:自动备份、验证和回滚,防止无效配置更新(代理专用)。
abdhilabs
开发者工具 clawhub v1.0.1 1 版本 98845.6 Key: 无需
★ 4
Stars
📥 7,027
下载
💾 301
安装
1
版本
#agent-tool#backup#config#latest#safety#validation

概述

Config Guardian

Overview

For Agent use only. Safe config updates with automatic backup, validation, and rollback. Prevents the agent from updating non-existent keys or invalid values.

When to Use

Use this skill every time you need to update openclaw.json. Prevents:

  • Updating non-existent config keys
  • Using invalid values
  • Breaking the gateway with bad config

Workflow: Atomic Apply (Default)

For all config changes - handles everything in one command:

./scripts/atomic_apply.sh <config_path> <new_value>
# Example: ./scripts/atomic_apply.sh "agents.defaults.model.primary" "minimax-portal/MiniMax-M2.5"

What it does:

  1. Creates timestamped backup automatically
  2. Applies change via openclaw config set
  3. Validates with openclaw doctor --non-interactive
  4. Auto-rollback if validation fails
  5. Trap ensures rollback even on crash

Backup location:

~/.openclaw/config-guardian-backups/

Guardrails

  • Never restart or apply config without explicit user approval
  • Always use atomic_apply.sh
  • If validation fails -> config auto-rolled back, don't force it

Scripts

ScriptPurpose
-----------------
atomic_apply.shDefault - all-in-one safe apply
validate_config.shValidate via OpenClaw doctor
restore_config.shManual restore from backup

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-28 10:54 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 65 📥 179,842
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 666 📥 323,790
ai-intelligence

KarmaBank

abdhilabs
AI代理基于Moltbook karma分数借入USDC,信用等级从青铜级(50 USDC)到钻石级(1000 USDC),免息。
★ 0 📥 1,852