← 返回
效率工具 中文

Memory Setup (OpenClaw)

Configure and validate OpenClaw memory recall for persistent context. Use when enabling memory_search/memory_get, fixing poor memory recall, or setting up ME...
配置并验证 OpenClaw 记忆回溯以实现持久化上下文。适用于启用 memory_search/memory_get、修复记忆召回不佳或配置 ME...
kaw0naivyn
效率工具 clawhub v1.0.0 1 版本 99454.4 Key: 无需
★ 2
Stars
📥 9,256
下载
💾 200
安装
1
版本
#latest

概述

Memory Setup (OpenClaw)

Set up durable memory for OpenClaw so the agent can recall prior decisions, preferences, and todos.

1) Prepare workspace files

In workspace root, keep:

  • MEMORY.md (curated long-term memory)
  • memory/YYYY-MM-DD.md (daily notes)

Optional structure:

  • memory/projects/
  • memory/system/
  • memory/groups/

2) Enable memory search in OpenClaw config

Configure under agents.defaults.memorySearch (not top-level memorySearch).

Example:

{
  "agents": {
    "defaults": {
      "memorySearch": {
        "enabled": true,
        "provider": "local",
        "includeDefaultMemory": true,
        "maxResults": 20,
        "minScore": 0.3
      }
    }
  }
}

Notes:

  • includeDefaultMemory: true indexes MEMORY.md + memory/*/.md.
  • Providers: local, openai, gemini, voyage, mistral.
  • If using remote provider, set corresponding API key (env var or memorySearch.remote.apiKey).

3) Restart and verify

  • Restart gateway after config changes.
  • Verify with:
  • openclaw status
  • openclaw memory status (if available in your CLI build)

4) Test recall behavior

Ask a question about past context, then verify the agent:

  1. Runs memory_search
  2. Uses memory_get for precise lines when needed
  3. Cites source path/lines when useful

5) Troubleshooting

memory_search unavailable

  • Ensure agents.defaults.memorySearch.enabled = true.
  • Ensure policy allows memory tools.
  • Restart gateway.

low-quality matches

  • Lower minScore (e.g. 0.2) to broaden hits.
  • Raise maxResults (e.g. 30).
  • Write more specific notes in MEMORY.md and daily logs.

local provider issues

  • Confirm local model path/settings if configured.
  • If needed, switch provider to remote and set API key.

6) Recommended operating rule

Before answering questions about prior work, decisions, dates, people, preferences, or todos:

  1. memory_search first
  2. memory_get second (only needed lines)
  3. Say you checked memory if confidence is still low

This keeps responses grounded and auditable.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-29 07:19 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Obsidian

steipete
操作 Obsidian 仓库(纯 Markdown 笔记)并通过 obsidian-cli 自动化。
★ 429 📥 103,688
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,721
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 147,171