返回目录

mem9

编辑精选维护状态: 活跃

mem9-ai/mem9

每轮自动回忆 + 后台智能摄取 + 五个记忆工具,为 DSH 加持记忆。

前往 GitHub
$ dsh plugin add mem9

1,208

星标

123

Fork

TypeScript

语言

Apache-2.0

许可证

2026-03-08

创建于

2026-08-25

最近推送

Apache-2.0 的持久 agent memory 服务器,为 DeepSeek Harness 提供原生 DSH/Cordis 集成包,可托管可自托管,支持多运行时共享记忆与混合检索。

DSH 适配

原生运行时

作者声明

安全审计

未审计

最后核验

2026-08-21

许可证

Apache-2.0

01它能帮你完成什么?

  • Give DeepSeek Harness agents persistent memory across sessions and machines

    Recall, smart ingest, and memory tools that store, search, get, update, and delete memories against the mem9 server, so agent context survives restarts, laptop switches, and long-running projects

    DeepSeek Harness (dsh) users whose agents lose context between sessions

  • Share one agent memory layer across multiple runtimes and workflow platforms

    A single mem9 space that DeepSeek Harness, OpenClaw, Claude Code, OpenCode, Codex, Dify apps, and custom HTTP clients read and write together via the same store/search/get/update/delete API

    Teams running multi-agent workflows across different agent runtimes who want one shared memory instead of separate local notebooks

02如何接入 DeepSeek Harness?

前置条件

  • A mem9 endpoint — the hosted API at https://api.mem9.ai, or a self-hosted mnemo-server backed by TiDB, PostgreSQL, or db9
  • A mem9 API key for your space (returned or configured by your provisioning flow)

安装步骤

  1. 01

    Choose your mem9 endpoint: use the hosted API (https://api.mem9.ai), or self-host by applying the matching control-plane schema and starting mnemo-server with MNEMO_DSN

  2. 02

    Follow the DeepSeek Harness integration guide in dsh-plugin/README.md to install the native DSH/Cordis bundle

  3. 03

    Set your credentials: export MEM9_API_URL (hosted or self-hosted server URL) and export MEM9_API_KEY

验证接入成功

作者未说明

03DSH 适配与能力边界

DSH 适配原生运行时

Native DSH/Cordis bundle with recall, smart ingest, and memory tools, backed by the mem9 memory server (hosted API or self-hosted)

  • Persistent memory across sessions and machines

    agent conversations and durable factsmemories that survive restarts, laptop switches, and long-running projects

    memories are written to the mem9 server (hosted API or self-hosted database), not kept purely local
  • Shared multi-agent memory space

    one mem9 space with an X-API-Key (optionally X-Mnemo-Agent-Id per agent)store, search, get, update, and delete operations shared across OpenClaw, Hermes Agent, Claude Code, OpenCode, Codex, DeepSeek Harness, Dify and custom clients

    all connected runtimes read and write the same memory space
  • Hybrid recall and visual dashboard

    natural-language queries against the memory spacesemantic search, keyword search, and inspection workflows in one system, plus a dashboard to inspect and manage memory

  • Hosted or self-hosted deployment

    the hosted mem9 API (https://api.mem9.ai), or self-hosted mnemo-server on tidb / postgres / db9the same API contract either way — switching deployment is a base-URL and credential change, not a plugin rewrite

    self-hosting requires applying the control-plane schema and running mnemo-server with MNEMO_DSN

04适合谁?何时不该用?

适合

  • DeepSeek Harness (dsh) users whose agents lose context between sessions
  • Teams running multi-agent workflows across different agent runtimes who want one shared memory instead of separate local notebooks

不适合

  • mem9 is not a purely local plugin — it requires a running mem9 endpoint, either the hosted API at https://api.mem9.ai or a self-hosted mnemo-server with a TiDB, PostgreSQL, or db9 backend and the matching control-plane schema applied.
  • Memory recall and ingest are server-side operations sent over the network: with the hosted API, memories live in mem9's TiDB Cloud Starter-based service, so sensitive context may leave the local machine unless you self-host.

05兼容性、维护与安全提示

  • mem9 is not a purely local plugin — it requires a running mem9 endpoint, either the hosted API at https://api.mem9.ai or a self-hosted mnemo-server with a TiDB, PostgreSQL, or db9 backend and the matching control-plane schema applied.
  • Memory recall and ingest are server-side operations sent over the network: with the hosted API, memories live in mem9's TiDB Cloud Starter-based service, so sensitive context may leave the local machine unless you self-host.
  • Self-hosted smart ingest depends on an LLM provider API key (MNEMO_LLM_API_KEY); without it, ingest silently falls back to raw ingest behavior, which may lower memory quality.
2026-03-082026-08-19作者未说明

Apache-2.0 · actively maintained (last push 2026-08-19)

06常见问题

如何把 mem9 接入 DeepSeek Harness?

mem9 提供原生 DSH/Cordis 集成包,内置召回、智能写入和记忆工具。按 dsh-plugin/README.md 中的 DeepSeek Harness 指南安装,然后把 MEM9_API_URL 和 MEM9_API_KEY 指向托管 API 或你的自托管服务器即可。

必须自托管 mem9 服务器吗?

不必。最快的方式是直接使用托管 API(https://api.mem9.ai)。自托管同样完整支持:应用对应后端的控制面 schema(TiDB、PostgreSQL 或 db9),再用 MNEMO_DSN 启动 mnemo-server。两者 API 契约一致,以后切换只需改 base URL 和凭证。

我的 agent memory 存在哪里?

存在 MEM9_API_URL 指向的 mem9 空间里:托管 API 基于 TiDB Cloud Starter;自托管时则存在你自己的数据库。记忆的写入、搜索、更新和删除都通过 mem9 服务器 API 完成。

多个智能体可以共享同一份记忆吗?

可以。一个空间可同时服务 OpenClaw、Hermes Agent、Claude Code、OpenCode、Codex、DeepSeek Harness、Dify 应用和自定义客户端,所有运行时都能召回同一批事实。设置 X-Mnemo-Agent-Id 可以区分共享空间内的写入来源。

08数据与来源

  • 作者声明github.com8a6d5c236b12…

    | DeepSeek Harness | Native DSH/Cordis bundle with recall, smart ingest, and memory tools | [`dsh-plugin/README.md`](dsh…

  • 作者声明github.com8a6d5c236b12…

    Hermes Agent, Claude Code, OpenCode, Codex, DeepSeek Harness, and Dify guides are below.

页面基于项目公开文档、仓库元数据和 DSH Plugins 的结构化解析生成;最后核验于 2026-08-21。发现错误?提交更正。

🏆

最佳 DeepSeek Harness 插件

从全目录挑出的 12 个值得优先安装的插件,覆盖各个分类。

DSH Plugins 是独立的 DeepSeek Harness 插件市场,与 DeepSeek 官方无关,也不代表官方背书。第三方插件未经安全审计,安装前请审查源码。

每周获取最新的 DeepSeek Harness 插件,绝不滥发。