Safe Config Modifier for Openclaw

A standardized workflow for safely modifying OpenClaw configuration files to prevent service failures and protect sensitive credentials.

justaboyhai-wq
v1.0.0
Mar 8, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install safe-config-momo

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install safe-config-momo using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Safe Config Modifier?

The Safe Config Modifier is a robust utility designed to manage the core openclaw.json configuration file securely. It provides a structured lifecycle for making changes—including model switching, channel updates, and plugin installations—while ensuring that sensitive data like API keys are never exposed during the preview process.

By integrating this tool into your Openclaw Skills library, you minimize the risk of configuration corruption and service downtime. The skill enforces a strict verification protocol, requiring specific confirmation phrases before any write operation occurs, ensuring that every modification is intentional and validated.

Safe Config Modifier Use Cases

  • Switching primary or secondary LLM models within the OpenClaw environment.
  • Configuring new model providers such as Anthropic, SiliconFlow, or MiniMax.
  • Enabling or disabling communication channels like Telegram or Discord.
  • Safely installing and configuring new Openclaw Skills or specialized tools.
  • Modifying bot policies, security settings, and automated sticker actions.

How Safe Config Modifier Works

  1. Read the current configuration from the openclaw.json file using jq for precise field extraction.
  2. Generate a sanitized preview using built-in scripts to mask sensitive credentials like tokens and passwords.
  3. Validate the JSON syntax and perform local connectivity checks for any new API providers.
  4. Display the proposed changes to the user for final review.
  5. Wait for the explicit, mandatory confirmation phrase "ojbk可以改了" to prevent accidental triggers.
  6. Create an automated timestamped backup of the current configuration file.
  7. Execute the modification and verify the integrity of the new JSON structure.
  8. Restart the OpenClaw gateway if necessary to apply the updated settings.

Safe Config Modifier Setup

To prepare this skill for your Openclaw Skills environment, ensure the scripts are executable and you have jq installed:

# 1. Navigate to the skill directory
cd ~/.openclaw/skills/safe-config/scripts/

# 2. Grant execution permissions to the utility scripts
chmod +x sanitize.sh validate.sh preview.sh

# 3. Test the sanitization script to ensure keys are masked
./preview.sh

Safe Config Modifier Data Schema & Taxonomy

The skill interacts with the standard OpenClaw directory structure and maintains high-integrity metadata for the Openclaw Skills marketplace:

Component Path/Format Description
Config File ~/.openclaw/openclaw.json The primary target for all modification operations.
Backups openclaw.json.backup-[YYYYMMDD-HHMMSS] Safety copies created before every change.
Sanitize Script scripts/sanitize.sh Logic to mask apiKey, token, password, and secret.
Metadata _meta.json Taxonomy data for indexing within the ecosystem.

Safe Config Modifier Advanced Features

  • Multi-agent support for managing different model configurations across specific agents.
  • Integrated JSON validation via jq to prevent syntax errors from breaking the gateway.
  • Strict data masking protocols to ensure sensitive keys are never logged or displayed.
  • Automated gateway lifecycle management to restart services post-configuration.
  • Standardized backup and recovery hooks for enterprise-grade configuration reliability.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*