详细分析 ▾
运行时依赖
版本
- Initial release of memory-setup for OpenClaw memory recall configuration and validation. - Provides step-by-step instructions for organizing MEMORY.md and daily note files. - Details setup for enabling and customizing memory search in OpenClaw's config. - Includes guidance for testing agent recall and troubleshooting common issues. - Recommends operational best practices for memory usage to ensure reliable context recall.
安装命令 点击复制
技能文档
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: trueindexesMEMORY.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:
- Runs
memory_search - Uses
memory_getfor precise lines when needed - 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.mdand 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:
memory_searchfirstmemory_getsecond (only needed lines)- Say you checked memory if confidence is still low
This keeps responses grounded and auditable.
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制