Configure & Connect in OpenClaw

From the OpenClaw cheat sheet ยท Configuration ยท verified Jul 2026

Configure & Connect

Run onboard, configure subsystems, and connect channels.

bash
# First-time setup (interactive wizard)
openclaw onboard

# Initialize config + workspace
openclaw setup
openclaw setup --workspace ~/my-agent
openclaw setup --wizard

# Re-run the full configuration wizard
openclaw configure

# Configure a specific section
openclaw configure --section model      # Model provider + API keys
openclaw configure --section channels   # Messaging channels
openclaw configure --section web        # Web UI / Canvas settings
openclaw configure --section security   # Auth, tokens, trust

# Set individual values via CLI
openclaw config set channels.telegram.enabled true
openclaw config set channels.telegram.botToken "YOUR_BOT_TOKEN"
openclaw config set agents.defaults.model "sonnet"
๐Ÿ’ก "openclaw configure --section channels" is the fastest way to connect a new platform
โšก Use "openclaw setup --workspace" to point at a custom directory for agent files
๐Ÿ“Œ Set dmPolicy: "allowlist" + allowFrom to lock channels to your account only
๐ŸŸข Always restart the gateway after config changes โ€” they don't apply until restart
configureconfigsetup
Back to the full OpenClaw cheat sheet