返回顶部
m

memori记忆模块

Long-term memory for OpenClaw agents using the Memori SDK. Capture conversations and intelligently recall context across sessions automatically.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.7
安全检测
已通过
282
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

memori

Memori - OpenClaw的自动长期记忆

在后台自动运行的持久化记忆集成。无需命令,无需手动管理——只需安装,你的智能体就能记住。

核心工作流程

Memori通过OpenClaw生命周期钩子自动运行:

每次响应前(智能回忆)

Memori自动:
  1. 1. 搜索相关的历史对话
  2. 将匹配的上下文注入智能体的提示词中
  3. 实现跨会话的连续性——无需搜索命令

每次响应后(高级增强)

Memori自动:
  1. 1. 捕获对话轮次(用户+助手)
  2. 发送至Memori后端进行智能处理
  3. 提取事实、去重并建立索引——无需存储命令

你无需管理记忆——它自动运行。

安装

bash
openclaw plugins install @memorilabs/openclaw-memori

配置

添加到你的 ~/.openclaw/openclaw.json:

json
{
plugins: {
entries: {
openclaw-memori: {
enabled: true,
config: {
apiKey: ${MEMORIAPIKEY},
entityId: openclaw-user
}
}
}
}
}

配置选项

  • - apiKey(必填):来自 memorilabs.ai 的 Memori API 密钥
  • entityId(必填):该用户记忆的唯一标识符

获取你的 API 密钥:https://app.memorilabs.ai/signup

工作原理

Memori使用OpenClaw生命周期钩子自动运行:

javascript
beforepromptbuild → 智能回忆(注入相关记忆)
agent_end → 高级增强(存储对话轮次)

零命令需求——记忆在后台自动运行。

Memori自动完成的功能

后端智能(由Memori SDK处理):

  • - 从对话中智能提取事实
  • 自动去重与合并
  • 按相关性进行语义排序
  • 时间衰减(旧记忆逐渐淡出)
  • 隐私过滤(不存储机密信息)

插件角色(在OpenClaw中运行):

  • - 将对话传输至Memori后端
  • 将回忆到的记忆注入提示词
  • 设置后零配置

你无需配置要捕获的内容——后端会自动处理。

验证

检查插件是否正常运行:

bash

验证插件已安装


openclaw plugins list

在网关输出中检查Memori日志

查找以 [Memori] 为前缀的条目

配额管理

检查当前API配额:

bash
memori quota

示例输出:

_
| \/ | ()
| |\/| |/ \ \ / \| | |
| | | | / | | | | | (_) | | | |
|| ||\|| || ||\/|| |_|
perfectam memoriam
memorilabs.ai

+ 最大记忆数:100
+ 当前记忆数:0

+ 你当前未超出配额。

使用此命令监控使用情况,并在需要时升级。

性能

  • - 自动去重防止记忆膨胀
  • 语义排序确保相关记忆优先呈现
  • 零手动命令——始终在后台运行

隐私与数据处理

透明的数据流:

  • - ✅ 对话发送至Memori后端(https://api.memorilabs.ai)
  • ✅ 传输和存储数据均加密
  • ✅ 通过API密钥和entityId控制数据
  • ✅ 随时通过Memori仪表盘删除记忆
  • ✅ 不与第三方共享
  • ⚠️ 仅在信任Memori处理对话数据时安装

后端自动过滤敏感数据(API密钥、密码、机密信息)。

详情请参阅:Memori隐私政策

记忆持久性

记忆在以下情况下保持持久:

  • - 会话重启
  • 网关重启
  • 系统重启
  • OpenClaw升级

所有存储由Memori后端处理——无需本地数据库。

故障排除

插件未加载:

  • - 验证 openclaw.json 中 enabled: true
  • 检查API密钥:echo $MEMORIAPIKEY
  • 重启网关:openclaw gateway restart

未捕获记忆:

  • - 检查网关日志中的 [Memori] 错误
  • 验证API端点可访问
  • 测试API密钥:memori quota

未回忆记忆:

  • - 确保 entityId 在会话间保持一致
  • 验证记忆存在:memori quota 显示计数 > 0
  • 检查日志中的回忆错误

配额超出:

  • - 运行 memori quota 检查使用情况
  • memorilabs.ai 升级
  • 或通过仪表盘清除旧记忆

了解更多

  • - npm包:https://www.npmjs.com/package/@memorilabs/openclaw-memori
  • GitHub:https://github.com/MemoriLabs/Memori
  • 文档:https://memorilabs.ai/docs/memori-cloud/openclaw/overview/
  • API仪表盘:https://app.memorilabs.ai/
  • 支持GitHub Issues

备注

此技能向智能体介绍Memori插件。该插件需通过npm单独安装。安装后,记忆捕获和回忆将自动进行——无需任何命令。

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 memori-1776124451 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 memori-1776124451 技能

通过命令行安装

skillhub install memori-1776124451

下载

⬇ 下载 memori v1.0.7(免费)

文件大小: 2.85 KB | 发布时间: 2026-4-15 13:23

v1.0.7 最新 2026-4-15 13:23
Version 1.0.7 of the memori skill

- Updated description to clarify Memori provides long-term memory and automatic context recall for OpenClaw agents.
- Minor revisions in wording to improve clarity and consistency throughout documentation.
- No changes in features, configuration, or functionality.
- No code or behavioral updates; documentation only.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部