Install
openclaw skills install config-sentinelA strict guardrail for OpenClaw config changes. Snapshot before editing, validate after editing, and rollback immediately when config health fails. Built to prevent broken agents, malformed JSON, missing bindings, and catastrophic config regressions.
openclaw skills install config-sentinelUse this skill whenever you are modifying OpenClaw configuration.
This is not a soft suggestion. Config changes are high-risk operations. A single bad edit can break agent routing, bindings, startup behavior, or entire multi-agent setups.
If config integrity matters, do not skip this workflow.
This skill is especially useful for:
Config-Sentinel exists because successful writes are not the same as healthy config.
A config file can be:
This skill enforces a strict safety workflow:
Do not change OpenClaw config without explicit user approval.
Snapshot/rollback protects against corruption. It does not replace human approval.
The correct order is:
pre-changevalidateBefore editing config:
scripts/sentinel.sh pre-change
After editing config:
scripts/sentinel.sh validate
If validation fails:
scripts/sentinel.sh rollback
For an on-demand health check:
scripts/sentinel.sh health
Do not edit config first and hope validation will save you later.
The correct order is always:
Config-Sentinel is designed to catch or soften failures such as:
It also creates recovery points so rollback is straightforward.
Before any config edit, create:
After a config change, validate:
Restore the last-known-good config snapshot if a change breaks structure or validation.
Run validation without making changes to assess config health.
This skill is intentionally strict. Config changes are one of the easiest ways to break a working OpenClaw setup.
The helper script uses sensible defaults, but supports environment overrides.
~/.openclaw/openclaw.json~/.openclaw/.sentinelCONFIG_SENTINEL_CONFIG_FILECONFIG_SENTINEL_DIRCONFIG_SENTINEL_MIN_AGENTSCONFIG_SENTINEL_REQUIRED_FILESCONFIG_SENTINEL_VALIDATE_BINDINGSCONFIG_SENTINEL_VALIDATE_TELEGRAM_TOKENSThis allows the skill to adapt to different setups while keeping a strict default posture.
When an agent is asked to change config, the safe pattern is:
pre-changevalidaterollbackDo not silently edit config without a recovery path. Do not trust a successful write alone. Do not continue after validation failure unless the user explicitly wants forensic inspection instead of safety.
scripts/sentinel.sh pre-change
# edit config
scripts/sentinel.sh validate || scripts/sentinel.sh rollback
This skill does not run continuously. It is an on-demand guardrail for risky config operations.
Use it whenever config integrity matters more than speed. If you are about to patch or rewrite config and you are tempted to skip the snapshot step, that is exactly when you should not skip it.
Config-Sentinel helps make OpenClaw config changes safer by combining:
The goal is simple:
make config edits recoverable instead of catastrophic.
Config-Sentinel intentionally reads and copies the local OpenClaw config so it can validate and restore it. The script passes environment-derived paths and options into Python as argv values, not interpolated Python source, to avoid code injection from crafted environment overrides.
Required local dependency: python3. Optional dependency: git for config-directory snapshots; without git, timestamped local backups are still created.