Memory Configuration in OpenClaw

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

Memory Configuration

Configure persistent memory and embedding-based search

json5
# Guided setup for semantic memory search
openclaw configure --section memory

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

# Check the index and search from the terminal
openclaw memory status
openclaw memory search "deploy notes"

# Check context usage (in conversation): /context detail
💡 Memory search uses embeddings to find relevant notes from your memory files
⚡ Use /context detail in conversation to see what is filling your context window
📌 With no provider set, OpenClaw uses OpenAI embeddings and can fall back to keyword search when they are unavailable; use ollama for fully local embeddings
🟢 Changing the embedding provider or model can require an index rebuild: "openclaw memory index --force"

Continue with OpenClaw

Save the full cheat sheet or work through every related task.

Back to the full OpenClaw cheat sheet