进阶教程 较易 10分钟

配置记忆系统

让 OpenClaw 记住你的偏好和历史对话

#Memory #Context #Storage

准备工作

  • OpenClaw deployed
  • Storage space for memory

操作步骤

1

了解记忆类型

OpenClaw 支持多种记忆方式。

命令 / 操作

All Systems
• 短期记忆:当前对话上下文 • 长期记忆:持久化的对话历史 • 用户画像:你的偏好和习惯

小提示

  • Long-term memory makes AI understand you better over time
  • Memory is stored locally, privacy is secure
2

配置记忆存储

设置记忆的存储方式和保留时间。

命令 / 操作

All Systems
设置 → 记忆配置 → 选择存储后端(本地文件/数据库)→ 设置保留时间

小提示

  • Local file storage is simplest, suitable for personal use
  • Longer retention means AI remembers more but uses more storage
3

设置记忆策略

配置哪些信息需要被记住。

命令 / 操作

All Systems
记忆配置 → 记忆策略 → 选择「自动记住重要信息」或「手动确认」

小提示

  • Auto mode is more convenient but may remember unimportant info
  • Manual mode is more precise but requires more interaction
4

管理记忆

查看和清理已存储的记忆。

命令 / 操作

All Systems
记忆管理 → 查看所有记忆条目 → 可以删除或编辑单条记忆

小提示

  • Regularly cleaning useless memories can improve response speed
  • You can export memories for backup

常见问题

AI 记不住之前说的话?
检查记忆功能是否启用,确认记忆保留时间不是太短
如何清除所有记忆?
记忆管理 → 清除所有记忆(此操作不可恢复)