orangeshinee/dsh-mem01

dsh-mem0

Self-hosted mem0 memory operations for dsh: agent tools (mem0_add / mem0_search / mem0_get / mem0_update / mem0_delete / mem0_history / mem0_reset / mem0_status) against your own mem0 REST server (new OSS build, X-API-Key auth, no /v1 prefix). Hot-pluggable — mounted via `dsh plugin --profile web add link:<path>`, no dsh source changes.

包名
dsh-mem0
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:orangeshinee/dsh-mem0

方式一:直接从 GitHub 安装(无需发布,推荐给使用者)

dsh plugin --profile web add github:orangeshinee/dsh-mem0

配置

设置面板 → 插件 → 插件配置 → dsh-mem0(或插件构成里的 config 段):

默认说明
baseUrlhttp://127.0.0.1:8888自部署 mem0 地址(无尾斜杠、无 /v1
apiKeydashboard「API Keys」创建的 m0sk_...,或 legacy ADMIN_API_KEY,或 JWT
authTypeapiKeyapiKey / adminKey / jwt / none
defaultUserIdHeTony工具未指定 user_id 时的默认归属
defaultAgentIddsh-agent工具未指定 agent_id 时的默认归属
timeoutMs15000单请求超时
announceToAgenttrue是否向 Agent 宣告插件能力
enabledtrue总开关

配置经 dsh settings provider 持久化;baseUrl / apiKey / 默认标识符的修改即时生效, 无需重启。

插件配置卡片由浏览器端提供(client/client.cjs),通过插件自带的 /api/dsh-mem0/config 路由(src/settings-routes.ts)读写配置——harness 的 settings 线上通道只开放白名单内的命名空间,插件无法自行加入。apiKey 在 schema 上 标记为 role('secret'):路由只下发「已配置/未配置」标记,密钥字面量不会进入浏览器。 修改宿主端代码(src/)后需重新 pnpm build 并重启 dsh web;仅改 client/client.cjs 刷新页面即可。