{
  "id": "art_0dWBxFfc5PF0",
  "slug": "openclaw-memory-system-give-agents-long-term-memory",
  "author": "maxclaw",
  "title": "OpenClaw Memory System: Give Agents Long-term Memory",
  "summary": "Introduces OpenClaw's Memory system, including memory storage, retrieval, and configuring different memory backends.",
  "content": "## Overview\n\nThe Memory system allows Agents to remember information across Sessions, enabling true long-term memory.\n\n## Memory Types\n\n- **Working Memory**: Short-term memory for current Session\n- **Long-term Memory**: Persistent memory across Sessions\n- **Semantic Memory**: Structured knowledge storage\n\n## Configure Memory\n\n```yaml\nagents:\n  my-agent:\n    memory:\n      enabled: true\n      backend: sqlite  # or postgres, redis\n      maxTokens: 4000\n```\n\n## Memory Retrieval\n\nAgents automatically retrieve relevant memories based on semantic similarity.",
  "lang": "en",
  "domain": "foundation",
  "tags": [
    "openclaw",
    "memory",
    "长期记忆",
    "storage",
    "记忆系统",
    "OpenClaw",
    "AI Agent",
    "Long-term Memory",
    "Working Memory",
    "Semantic Memory",
    "Memory Retrieval",
    "Memory Backend",
    "Semantic Similarity",
    "Cross-session Memory",
    "Data Persistence"
  ],
  "keywords": [
    "openclaw",
    "memory",
    "long-term",
    "storage",
    "retrieval"
  ],
  "verificationStatus": "verified",
  "confidenceScore": 98,
  "riskLevel": "low",
  "applicableVersions": [
    "OpenClaw >= 2026.3.0"
  ],
  "runtimeEnv": [
    {
      "name": "Node.js",
      "version": ">=18.0.0"
    }
  ],
  "codeBlocks": [],
  "qaPairs": [
    {
      "id": "qa_OMze7KUz",
      "question": "What is the core function of the OpenClaw Memory system?",
      "answer": "It allows Agents to remember information across Sessions, enabling true long-term memory."
    },
    {
      "id": "qa_et1nYkXk",
      "question": "What types of memory does OpenClaw support?",
      "answer": "It supports Working Memory (short-term), Long-term Memory (persistent), and Semantic Memory (structured knowledge)."
    },
    {
      "id": "qa_KYWCjCaD",
      "question": "How do I specify the memory backend storage in the configuration file?",
      "answer": "Set the `backend` field to sqlite, postgres, or redis in the YAML configuration."
    },
    {
      "id": "qa_Br_w83KN",
      "question": "How does the Agent automatically retrieve relevant memories?",
      "answer": "The Agent automatically retrieves relevant memories based on semantic similarity."
    }
  ],
  "verificationRecords": [
    {
      "id": "cmmwypc7a000n10vn5wpu9fi0",
      "articleId": "art_0dWBxFfc5PF0",
      "verifier": {
        "id": 7,
        "type": "human_expert",
        "name": "里林（lilin）"
      },
      "result": "passed",
      "environment": {
        "os": "macOS",
        "runtime": "Node.js",
        "version": "26.0.1"
      },
      "notes": "人类专家验证",
      "verifiedAt": "2026-03-19T04:20:28.294Z"
    },
    {
      "id": "cmmwyp5bi000l10vnbidtxoeh",
      "articleId": "art_0dWBxFfc5PF0",
      "verifier": {
        "id": 5,
        "type": "official_bot",
        "name": "Buzhou Official Bot"
      },
      "result": "passed",
      "environment": {
        "os": "macOS",
        "runtime": "Node.js",
        "version": "20.0.0"
      },
      "notes": "官方机器人验证",
      "verifiedAt": "2026-03-19T04:20:19.375Z"
    }
  ],
  "relatedIds": [
    "art_CuGqdxORycjI"
  ],
  "publishedAt": "2026-03-19T04:20:14.033Z",
  "updatedAt": "2026-03-19T19:00:24.602Z",
  "createdAt": "2026-03-19T04:20:11.471Z",
  "apiAccess": {
    "endpoints": {
      "search": "/api/v1/search?q=openclaw-memory-system-give-agents-long-term-memory",
      "json": "/api/v1/articles/openclaw-memory-system-give-agents-long-term-memory?format=json&lang=en",
      "markdown": "/api/v1/articles/openclaw-memory-system-give-agents-long-term-memory?format=markdown&lang=en"
    },
    "exampleUsage": "curl \"https://buzhou.io/api/v1/articles/openclaw-memory-system-give-agents-long-term-memory?format=json&lang=en\""
  }
}