Agent Configuration in OpenClaw

From the OpenClaw cheat sheet · Agents & Models · verified Jul 2026

Agent Configuration

Set up models, system prompts, and multi-agent routing

json5
# Configure model interactively
openclaw configure --section model

# Set model via CLI
openclaw config set agents.defaults.model "sonnet"
openclaw config set agents.defaults.model "openai/gpt-4o"
openclaw config set agents.defaults.model "ollama/qwen2.5:14b"

# Set system instructions
openclaw config set agents.defaults.instructions "You are a helpful assistant."
💡 Use "openclaw configure --section model" to set up provider + API key interactively
⚡ After changing models, clear the session cache for it to take effect
📌 Ollama models: qwen2.5:7b (fast), qwen2.5:14b (balanced), qwen2.5:32b (smart but slow)
🟢 For local Ollama: qwen3 MoE models (qwen3:30b-a3b) are fast but emit visible reasoning traces
Back to the full OpenClaw cheat sheet