Memory

Configure the OpenClaw persistent memory system for long-term knowledge retention across conversations.

Overview

The Memory system allows agents to store and recall information across conversations. This enables agents to remember user preferences, past interactions, and accumulated knowledge.

How Memory Works

  1. Short-term — Conversation history within a session
  2. Long-term — Persistent facts stored across sessions
  3. Shared — Knowledge shared across agents

Configuration

{
  "memory": {
    "enabled": true,
    "backend": "local",
    "maxEntries": 1000,
    "ttl": "30d"
  }
}

Options

OptionDescriptionDefault
enabledEnable memory systemtrue
backendStorage backend (local, redis)local
maxEntriesMaximum memory entries1000
ttlTime-to-live for entries30d

Memory Management

# List stored memories
openclaw memory list

# Clear all memories
openclaw memory clear

# Export memories
openclaw memory export > memories.json

Per-Agent Memory

Each agent can have isolated memory:

{
  "agents": {
    "assistant": {
      "memory": {
        "scope": "per-sender",
        "maxEntries": 500
      }
    }
  }
}

Next Steps