Memory Configuration in OpenClaw

From the OpenClaw cheat sheet · Memory & Context · verified Jul 2026

Memory Configuration

Configure persistent memory and embedding-based search

json5
# Enable memory search
openclaw config set memory.search.enabled true

# Use Ollama for local embeddings
openclaw config set memory.search.provider "ollama"

# Check context usage (in conversation)
/context detail
💡 Memory search uses embeddings to find relevant context from past conversations
⚡ Use /context detail in conversation to see what's consuming your context window
📌 Set memory.search.provider explicitly (default is openai); use ollama for fully local embeddings
🟢 Agent workspace at ~/.openclaw/workspace/ stores files, skills data, and the memory index
Back to the full OpenClaw cheat sheet