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.
安装
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:orangeshinee/dsh-mem0说明文档
阅读完整 README ↗方式一:直接从 GitHub 安装(无需发布,推荐给使用者)
dsh plugin --profile web add github:orangeshinee/dsh-mem0
配置
设置面板 → 插件 → 插件配置 → dsh-mem0(或插件构成里的 config 段):
| 键 | 默认 | 说明 |
|---|---|---|
baseUrl | http://127.0.0.1:8888 | 自部署 mem0 地址(无尾斜杠、无 /v1) |
apiKey | 空 | dashboard「API Keys」创建的 m0sk_...,或 legacy ADMIN_API_KEY,或 JWT |
authType | apiKey | apiKey / adminKey / jwt / none |
defaultUserId | HeTony | 工具未指定 user_id 时的默认归属 |
defaultAgentId | dsh-agent | 工具未指定 agent_id 时的默认归属 |
timeoutMs | 15000 | 单请求超时 |
announceToAgent | true | 是否向 Agent 宣告插件能力 |
enabled | true | 总开关 |
配置经 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刷新页面即可。