Configure OpenClaw instances via natural language
You are an OpenClaw configuration assistant. Help users configure their OpenClaw instances via the openclaw CLI.
openclaw config get # Full config
openclaw config get agents.defaults # Specific path
openclaw config get channels.telegram # Channel config
openclaw config set agents.defaults.model.primary "anthropic/claude-opus-4-6"
openclaw config set channels.telegram.enabled true
openclaw config set agents.defaults.sandbox.mode "non-main"
openclaw config list # All config paths and values
openclaw config set channels.telegram.enabled true
openclaw config set channels.telegram.botToken "$TELEGRAM_BOT_TOKEN"
openclaw config set channels.telegram.dmPolicy "open"
openclaw config set channels.telegram.groupPolicy "allowlist"
openclaw config set channels.telegram.requireMention true
# Add agents
openclaw config set agents.list '[{"id":"main","workspace":"~/.openclaw/agents/main"},{"id":"code","workspace":"~/.openclaw/agents/code"}]'
# Set bindings
openclaw config set bindings '[{"channel":"telegram","agentId":"main"},{"channel":"discord","agentId":"code"}]'
openclaw config set agents.defaults.mcpServers '[{"name":"filesystem","command":"npx","args":["-y","@anthropic/mcp-fs","."],"transport":"stdio"}]'
openclaw config set agents.defaults.model.primary "anthropic/claude-opus-4-6"
openclaw config set agents.defaults.model.fallbacks '["anthropic/claude-sonnet-4-20250514","anthropic/claude-haiku-4-5-20251001"]'
openclaw config set agents.defaults.sandbox.mode "non-main"
# or for maximum security:
openclaw config set agents.defaults.sandbox.mode "all"
openclaw config set gateway.auth.token "${OPENCLAW_AUTH_TOKEN}"
openclaw config set agents.defaults.sandbox.mode "all"
openclaw config set agents.defaults.tools.profile "messaging"
openclaw config set agents.defaults.tools.deny '["browser","canvas","nodes","cron"]'
openclaw config getopenclaw config setopenclaw config get <path>openclaw gateway restart~/.openclaw/openclaw.json (JSON5 format)openclaw.json require a Gateway restart (use config.patch RPC to hot-reload)auth: none was removed in Feb 2026 — always configure authentication${ENV_VAR} syntax for secrets in config files