跳到主内容

memos-local-plugin 使用指南

为 DeepSeek Harness 提供本地四层长期记忆(L1 轨迹 / L2 策略 / L3 世界模型 / 技能),每次用户轮次自动检索并可注册六个记忆工具。

本文为派生内容(基于 wiki / faq / compatibility_json 自动组装),非 AI 即时创作。

本文由本站基于该插件已收录的字段自动派生(wiki / faq / compatibility_json / readme),非 AI 即时创作。每节末尾标源字段。

快速上手

MemOS

— 源: plugin_wiki.wiki_content

安装与验证

dsh plugin --profile web add @memtensor/memos-local-plugin

复制以上命令在 DSH Web Profile 内运行。安装完成后在「插件列表」启用即可。

— 源: plugins.install

关键要点

  • Unified Memory API: A single API to add, retrieve, edit, and delete memory—structured as a graph, inspectable and editable by design, not a black-box embedding store.
  • Multi-Modal Memory: Natively supports text, images, tool traces, and personas, retrieved and reasoned together in one memory system.
  • Asynchronous Ingestion via MemScheduler: Run memory operations asynchronously with millisecond-level latency for production stability under high concurrency.
  • Memory Feedback & Correction: Refine memory with natural-language feedback—correcting, supplementing, or replacing existing memories over time.
  • 2026-08-17 · 🐋 MemOS Connects with DeepSeek Harness

— 源: plugin_wiki.readme_zh (fallback readme_raw)

常见问题

安装后记忆数据存在哪里?

默认存放在 $DSH_HOME/memos-plugin/ 下,未设置 DSH_HOME 时为 ~/.dsh/memos-plugin/。可通过 MEMOS_HOME 环境变量或 Cordis 配置中的 home 字段改写路径。

安装后是否需要单独配置 API Key?

默认情况下插件会复用宿主已配置的 DSH 模型凭据,无需重复填写;只有在 config.yaml 显式配置了独立 LLM provider 时才会使用对应凭据。

卸载插件会一并删除记忆数据吗?

不会。dsh plugin remove 只卸载依赖和 bundle 层,运行时目录下的 data/、skills/、config.yaml 会保留。如需删除需手动清理。

Viewer 面板地址是什么?支持远程访问吗?

默认 http://127.0.0.1:18801,仅接受 localhost 或 127.* 的 IPv4 回环地址。非回环地址会被拒绝,不支持远程访问。

自动检索和 memos_search 工具的超时是多少?

两者共享同一个绝对上限 min(recallTimeoutMs, 3000) 毫秒,默认 3000ms。配置只能缩短、不能延长。

升级插件版本需要重启 DSH 吗?

需要。导入的模块在进程生命周期内会被缓存,新增/更新/卸载 bundle 后必须重启当前 DSH profile 才能生效。

— 源: plugin_wiki.faq_json

兼容性

  • DSH: >=0.1.0-rc.5 <0.2.0
  • Node: ^22.19.0 || >=24.0.0

— 源: plugin_wiki.compatibility_json

踩坑提醒

安装前请审阅上游仓库;本指南基于已收录字段自动派生,可能滞后于最新版本。如发现与官方文档冲突,请以上游为准。

— 来源:通用规则