Loading...
Loading...
OpenClaw configuration modification assistant. Before modifying any OpenClaw configuration, you must first consult the official documentation to ensure correct formatting and avoid system crashes or functional anomalies. Mandatory process to follow: check schema → consult documentation → confirm → modify.
npx skill4agent add aaaaqwq/claude-code-skills openclaw-config-helpergateway action=config.patchgateway action=config.apply# Get full configuration schema
gateway action=config.schema# Use web_fetch to get official documentation
web_fetch: https://docs.openclaw.ai/channels/telegram
web_fetch: https://docs.openclaw.ai/channels/whatsapp
web_fetch: https://docs.openclaw.ai/gateway/configuration-referencecd ~/clawd/skills/tavily && ./scripts/tavily.sh search "OpenClaw <configuration item> configuration"# Use config.patch for partial modification (recommended)
gateway action=config.patch raw='{"modified path": "value"}'
# Or use config.apply for full replacement (use with caution)
gateway action=config.apply raw='{"full configuration": "..."}'# Check if the configuration takes effect
gateway action=config.get
# Check Gateway status
openclaw statusgroupAllowFrom// ❌ Wrong
"groupAllowFrom": [-1003531486855, -1003890797239] // These are group IDs, not user IDs!
// ✅ Correct
"groupAllowFrom": ["8518085684"] // User ID
"groups": {
"-1003531486855": {"groupPolicy": "open", "requireMention": true}
}groupAllowFromgroups// ❌ Missing default → main binding
"bindings": [
{"agentId": "ops", "match": {"accountId": "xiaoops"}},
// ... Other bots, but no default
]
// ✅ Must be added
"bindings": [
{"agentId": "main", "match": {"channel": "telegram", "accountId": "default"}},
// ... Others
]pass:// ❌ Wrong
"apiKey": "pass:api/xingsuancode" // Will be sent directly as a string
// ✅ Correct
"apiKey": "sk-f873092ea177b75b..." // Must hardcode the real key| Configuration Item | Type | Description |
|---|---|---|
| User ID array | DM whitelist (user ID) |
| User ID array | Group sender whitelist (user ID) |
| Object | Group configuration (group ID as the key) |
| Array | accountId → agentId mapping |
| Object | Multi-account configuration (accountId as the key) |
config.schemaconfig.patchconfig.apply