Install
openclaw skills install config-fieldValidate OpenClaw configuration fields against the official Zod schema. Use when reading or writing openclaw.json to check if configuration fields exist and are valid. Covers agents, channels, tools, logging, session configuration with 136+ field definitions.
openclaw skills install config-fieldValidate OpenClaw configuration fields against the official Zod schema.
This skill automatically manages schema synchronization:
# 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 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
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
# 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 is cached locally at:
~/.config/openclaw/skills/config-field/
├── schema/ # Downloaded TypeScript schema files
├── cache/ # Parsed schema cache
└── schema-fields.md # Generated field reference
references/schema-fields.md - Auto-generated from official Zod schema
| Script | Purpose |
|---|---|
validate_field.py <path> | Validate single field |
validate_config.py <file> | Validate entire config |
field_info.py <path> | Get field details |
sync_schema.py | Manage schema sync |
generate_fields.py | Regenerate field docs |
agents.defaults.model.primary - Default model IDagents.defaults.workspace - Workspace pathagents.defaults.timeoutSeconds - Request timeoutagents.defaults.sandbox.mode - Sandbox modechannels.telegram.botToken - Telegram bot tokenchannels.discord.token - Discord bot tokenchannels.slack.botToken - Slack bot tokentools.web.search.enabled - Enable web searchtools.web.search.provider - Search providertools.exec.security - Execution security modeIf you see warnings about unknown fields that should exist:
# Force schema refresh
python3 scripts/sync_schema.py --force
# 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