Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

openclaw-config-safetyOpenClaw 配置 safety

Agent Skill

openclaw-config-safety 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

1,752

周安装

73

GitHub Stars

公开资料未说明

下载量

584
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:openclaw-config-safety(OpenClaw 配置 safety)
来源仓库:https://github.com/ether-btc/openclaw-config-safety
安装命令:
openclaw skills install openclaw-config-safety
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install openclaw-config-safety

简介

安全验证、标准化导出导入 OpenClaw 配置文件,自动备份并检查 schema。

  • 适用于配置迁移、版本升级前的风险防控场景。
  • 确保配置变更前进行结构校验,降低误操作导致系统异常的风险。
  • 安装命令:openclaw skills install openclaw-config-safety,建议先测试沙箱环境。
  • 操作配置文件时务必保留原始备份,避免不可逆修改。

SKILL.md

name
openclaw-config-safety
version
2.0.0
description
Validate openclaw.json config changes safely. Use when editing openclaw.json, changing model config, modifying gateway settings, running openclaw doctor, planning version upgrades, exporting or importing config tokens, or normalizing config fields. Triggers on: config edit, gateway config, openclaw.json, model override, config validation, gateway restart, openclaw update, version upgrade, config export, config import, config token.

OpenClaw Config Safety v2

Safe config management for openclaw.json — validate, normalize, export as tokens, import from tokens.

Tools

openclaw-config-onboard — Config wizard

Interactive or non-interactive config management.

openclaw-config-onboard              # Interactive wizard
openclaw-config-onboard --audit     # Print config summary
openclaw-config-onboard --validate  # Run validation checks
openclaw-config-onboard --export    # Export token to stdout
openclaw-config-onboard --normalize # Normalize config in place
openclaw-config-onboard --import <token>  # Import a config token
openclaw-config-onboard --help      # Show usage

Exit codes: 0 = success, 1 = failure, 2 = invalid arguments.

validate-openclaw-config.sh — Pre-write validator

Run before any direct edit to openclaw.json:

OPENCLAW_BIN=~/.nvm/versions/node/v24.14.0/bin/openclaw \
  ~/.openclaw/workspace/skills/openclaw-config-safety/scripts/validate-openclaw-config.sh \
  --file /path/to/candidate.json

When to Use

  • Any edit to ~/.openclaw/openclaw.json
  • Changing model config, adding/removing models or providers
  • Modifying gateway, agent, or plugin settings
  • Planning OpenClaw version upgrades
  • Running openclaw doctor --fix
  • Exporting config to share as a mrconf:v1:... token
  • Importing a config token from another machine

Pre-Write Protocol

  1. Backup current config (automatic with wizard, manual otherwise):
   cp ~/.openclaw/openclaw.json ~/.openclaw/openclaw.json.bak-$(date +%Y%m%d-%H%M%S)
  1. Write candidate to temp file (never edit live config directly)
  1. Validate before writing:
   openclaw-config-onboard --validate

Or use the wizard for interactive flow: openclaw-config-onboard

Token Format

Exported configs are mrconf:v1:... tokens — base64url-encoded JSON. Credential values are NEVER included; only ${REFERENCE} placeholders are embedded. Tokens are safe to share.

Token structure:

mrconf:v1:<base64url>{
  "version": 1,
  "exportedAt": "ISO-8601",
  "normalizerVersion": "1.0.0",
  "config": { ... },
  "credentialRefs": ["VAR_NAME", ...]
}

Import Protocol

When importing a token:

  1. Wizard creates automatic backup
  2. Merges token config into existing config (deep merge, preserving keys not in token)
  3. Validates merged result
  4. On gateway restart failure: automatically restores backup

Normalization

The normalize step fixes:

  • String whitespace/alias normalization (e.g. " m2.7 ""minimax/MiniMax-M2.7")
  • Type coercion ("true"true, "60"60)
  • Empty array/object cleanup
  • Deprecated field detection

Known-Green Fields

LocationFields
agents.defaults.models[<key>]alias (string), params (record), streaming (boolean)
models.providers[<provider>].models[]id, name, api, reasoning, input, cost, contextWindow, maxTokens, headers, compat
agents.defaults top-levelmodel, models, timeoutSeconds, compaction, memorySearch, bootstrapMaxChars, workspace

Known-Red Fields

FieldLocationReason
statusPer-model override.strict() Zod modifier — instant crash
notePer-model overrideNot in schema — crash
Unknown fieldsAny .strict() Zod objectRejected at load time

Backup & Restore

# List backups
ls -lt ~/.openclaw/openclaw.json.bak-*

# Restore
cp ~/.openclaw/openclaw.json.bak-<timestamp> ~/.openclaw/openclaw.json
openclaw gateway restart

The wizard creates timestamped backups automatically: ~/.openclaw/openclaw.json.bak-YYYYMMDD-HHMMSS

Architecture

src/
  alias-map.js       — model alias → canonical name
  audit.js           — config summary generator
  base64url.js      — base64url encode/decode
  config-patch.js   — safe deep merge for import
  doctor-check.js   — openclaw doctor wrapper
  errors.js         — NormalizationError
  export.js         — config → token
  import.js         — token → config
  normalize.js      — field normalization
  prompt.js         — TTY readline helpers
  resolve-refs.js   — env/pass credential resolution
  restore-backup.js — timestamped backup + restore
  token-errors.js   — token error classes

bin/
  openclaw-config-onboard  — main wizard CLI

References

  • NORMALIZATION-SPEC.md — field normalization spec
  • EXPORT-TOKEN-SPEC.md — token format spec
  • ONBOARDING-SPEC.md — wizard behavior spec
  • CONFIG-EDIT.md — pre-write protocol (same directory)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

82.45%
按下载量换算482

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

可疑

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills