Kaw0n

Memory Setup (OpenClaw)

AI 智能体v1.0.0
作者:Kaw0n更新于 2026-05-11memory-setup-openclaw@clawhub_kaw0naivyn/memory-setup-openclaw
上下文管理记忆增强

据 AlphaMoat 统计,截至 2026-10,Memory Setup (OpenClaw) 累计下载 54,953 次、获 2 个星标,按累计下载量在本次参与排名的 10,914 个 AI 技能中排名第 447 位,在「AI 智能体」分类(1,632 个)中排名第 94 位。

列表默认按累计下载量排序,也可按星标排序;详情页排名按累计下载量计算。

累计下载
5.5万
星标
2
全站下载量排名
#447
全站前 5% · 「AI 智能体」前 6%
平台累计下载星标评论
ClawHub ↗1.1万2-
SkillHub ↗5.5万2—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

准备长期与每日笔记,配置 agents.defaults.memorySearch,选择本地或远程提供方,重启网关并测试搜索及精确读取。技能提供指引,不直接生成文件。应审查索引内容的隐私;远程嵌入提供方可能接收记忆内容,需适当凭据和授权。

资料发布于 2026-10-27

可以用来做什么

  • 规划记忆检索配置并排查不可用或匹配较弱问题

什么时候用

  • OpenClaw 工作区需要配置并验证记忆工具时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

审查拟用的记忆配置和提供方数据流,再列出验证步骤,不修改文件。

月度数据趋势

累计下载5.5万
3,2583.1万5.9万2026-03 · 累计下载 7,0872026-05 · 累计下载 9,1672026-06 · 累计下载 9,5102026-07 · 累计下载 1.1万2026-08 · 累计下载 1.3万2026-09 · 累计下载 1.6万2026-10 · 累计下载 5.5万26-0326-0926-10
星标2
1232026-03 · 星标 22026-05 · 星标 22026-06 · 星标 22026-07 · 星标 22026-08 · 星标 22026-09 · 星标 22026-10 · 星标 226-0326-0926-10

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-105.5万—2
2026-091.6万—2
2026-081.3万+18.5%2
2026-071.1万+13.1%2
2026-069,510+3.7%2
2026-059,167—2
2026-037,087—2

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

2.3 KB · ClawHub v1.0.0
---
name: memory-setup
description: Configure and validate OpenClaw memory recall for persistent context. Use when enabling memory_search/memory_get, fixing poor memory recall, or setting up MEMORY.md + memory/*.md workflows in an OpenClaw workspace.
---

# Memory Setup (OpenClaw)

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

## 1) Prepare workspace files
展开全部(共 94 行)

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:

```json
{
  "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.

「AI 智能体」分类下的热门技能

数据月份:2026-10 · 下载/星标数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。