OpenClaw Config Field Validator
/install config-field
Config Field Validator
Validate OpenClaw configuration fields against the official Zod schema.
When to Use This Skill
- Before editing configurations - Verify a field exists before adding it
- Debugging config errors - Check if invalid fields are causing issues
- Migrating configs - Validate fields after version upgrades
- Reviewing configs - Ensure all fields are schema-compliant
How It Works
This skill automatically manages schema synchronization:
- Check Version - Detects local OpenClaw version
- Sync Schema - Downloads matching schema from GitHub if needed
- Generate Fields - Parses Zod schema to extract field definitions
- Validate - Uses generated schema to validate configuration
Quick Start
# Validate a single field (auto-syncs schema if needed)
python3 scripts/validate_field.py agents.defaults.model.primary
# Validate entire config file
python3 scripts/validate_config.py /path/to/openclaw.json
# Force schema re-sync
python3 scripts/sync_schema.py --force
# Check current schema status
python3 scripts/sync_schema.py --status
Field Path Format
Field paths use dot notation:
agents.defaults.model.primary → agents.defaults.model.primary
channels.telegram.botToken → channels.telegram.botToken
tools.web.search.provider → tools.web.search.provider
Workflow
For Users
Simply use validation commands - schema sync is automatic:
# This will auto-sync schema if version mismatch detected
python3 scripts/validate_field.py agents.defaults.timeoutSeconds
For Schema Management
# Check schema status
python3 scripts/sync_schema.py --status
# Output: Schema version: 2.1.0 (matches OpenClaw)
# Force re-sync (if needed)
python3 scripts/sync_schema.py --force
# Generate fresh field reference
python3 scripts/generate_fields.py
Schema Storage
Schema is cached locally at:
~/.config/openclaw/skills/config-field/
├── schema/ # Downloaded TypeScript schema files
├── cache/ # Parsed schema cache
└── schema-fields.md # Generated field reference
Reference
Complete Field Reference
references/schema-fields.md - Auto-generated from official Zod schema
Scripts
| Script | Purpose |
|---|---|
validate_field.py \x3Cpath> |
Validate single field |
validate_config.py \x3Cfile> |
Validate entire config |
field_info.py \x3Cpath> |
Get field details |
sync_schema.py |
Manage schema sync |
generate_fields.py |
Regenerate field docs |
Common Fields
Agent Configuration
agents.defaults.model.primary- Default model IDagents.defaults.workspace- Workspace pathagents.defaults.timeoutSeconds- Request timeoutagents.defaults.sandbox.mode- Sandbox mode
Channel Configuration
channels.telegram.botToken- Telegram bot tokenchannels.discord.token- Discord bot tokenchannels.slack.botToken- Slack bot token
Tools
tools.web.search.enabled- Enable web searchtools.web.search.provider- Search providertools.exec.security- Execution security mode
Troubleshooting
Schema Out of Date
If you see warnings about unknown fields that should exist:
# Force schema refresh
python3 scripts/sync_schema.py --force
Validation Errors
# Check field info for correct usage
python3 scripts/field_info.py agents.defaults.model
# Verify config syntax
python3 scripts/validate_config.py ~/.config/openclaw/openclaw.json
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install config-field - 安装完成后,直接呼叫该 Skill 的名称或使用
/config-field触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
OpenClaw Config Field Validator 是什么?
Validate OpenClaw configuration fields against the official Zod schema. Use when reading or writing openclaw.json to check if configuration fields exist and... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 491 次。
如何安装 OpenClaw Config Field Validator?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install config-field」即可一键安装,无需额外配置。
OpenClaw Config Field Validator 是免费的吗?
是的,OpenClaw Config Field Validator 完全免费(开源免费),可自由下载、安装和使用。
OpenClaw Config Field Validator 支持哪些平台?
OpenClaw Config Field Validator 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 OpenClaw Config Field Validator?
由 RedContritio(@redcontritio)开发并维护,当前版本 v1.0.0。