anze225-max/dsh-mimo-connect 预览 preview

anze225-max/dsh-mimo-connect

将 mimo桌面端包含的模型(内测有免费额度)自动接入 DeepSeek Harness,在 DSH 对话窗口里零配置使用。

Project Overview项目介绍

dsh-mimo-connect is a native model-provider plugin for the DeepSeek Harness that wires Xiaomi MiMo desktop client credentials straight into the DSH chat surface with zero configuration. It is installed through dsh plugin --profile desktop add dsh-mimo-connect and surfaces two built-in models, mimo-v2.6-flash and mimo-v2.6-pro, inside the picker under a dedicated MiMo group, with streaming reasoning content, image attachments, and an OpenAI-compatible endpoint proxied through the user's existing account.

The intended workflow targets developers who already keep MiMo logged in and topped up. On startup the plugin reads the Chromium SQLite cookie database at %APPDATA%\Xiaomi MiMo\Partitions\xiaomi-account\Network\Cookies in a read-only copy, extracts passToken, cUserId, and userId, runs the three-step STS redirect to obtain a serviceToken, and injects the resulting cookies into the request headers sent to mimo-server-cn.xiaomimimo.com/api/route/chat/completions. When the active conversation routes through MiMo, a quota pill appears beside the stats row showing remaining percentage with a hover tooltip for the reset date; switching to another provider hides it instantly, since the indicator only belongs to the session actually burning that quota.

Dependencies and constraints are clearly documented. The package requires Node ^22.19.0 or >=24, targets DeepSeek Harness 0.1.5, 0.1.6, and 0.1.7, and ships under the MIT license. It calls non-public endpoints, so a passToken lasts roughly thirty days before re-authentication, the gateway ignores every reasoning-effort parameter (no Off/Minimal/Low switch in the picker), and latency variability comes from upstream rather than the plugin. Users without the desktop client can run the manual login subcommand to paste cookies from browser devtools; companion subcommands include status, verify, doctor, and logout. Tests under node tests/run.mjs and a tools/ directory cover the cookie jar, session replay, and layout parity.

dsh-mimo-connect 是一个面向 DeepSeek Harness 的原生模型提供者插件,它把小米 MiMo 桌面客户端里已登录的账号额度以零配置方式接入 DSH 对话窗口。安装命令为 dsh plugin --profile desktop add dsh-mimo-connect,随后在模型选择器里选择 MiMo 分组下的 mimo-v2.6-flash 或 mimo-v2.6-pro 即可使用,截图、思维链流式输出与 OpenAI 兼容协议的端到端调用都被插件直接复用,无需用户额外申请平台 API Key。

典型用法是已经在 MiMo 客户端登录、充值的开发者:插件启动后只读查询 %APPDATA%\Xiaomi MiMo\Partitions\xiaomi-account\Network\Cookies 这个 Chromium SQLite 文件,把 passToken、cUserId、userId 抽出来走 STS 三步重定向换取 serviceToken,再以 cookie 形式发给 mimo-server-cn.xiaomimimo.com/api/route/chat/completions。会话切到 MiMo 时,输入框下方的统计行右侧会冒出一枚额度指示,悬停可看重置日;换回别的模型时该指示自动消失,附带 60 秒缓存与 15 秒退避,失败也只静默不显示。

依赖与限制方面,插件要求 Node ^22.19.0 || >=24,匹配 DSH 0.1.5、0.1.6、0.1.7,许可证是 MIT。它仅运行在 DSH 宿主进程内,没有独立常驻、不会写开机自启,但因为调用的是非公开接口,passToken 实测 30 天会过期,需要重登;网关键忽略推理档位参数,因此模型选择器没有 Off/Minimal/Low 等档位开关。首次使用若无 MiMo 客户端,可执行 login 命令走手工复制 cookie 的流程;命令面板里还有 status、verify、doctor、logout 四个辅助子命令。

Pre-install check安装前体检Compatibility · Security兼容性 · 安全性 2 warnings2 项注意
  • Only 3 stars - very few users, little community feedback星标只有 3,几乎没人在用,遇到问题缺少社区反馈
  • Desktop client: installation downloads an executable - verify the publisher and checksums桌面客户端:安装会下载可执行文件,请核对发布者与校验和
DSH walks through these 9 checksDSH 会逐条核对这 9 项

Compatibility兼容性

  • DSH, Node, OS and profile requirementsDSH 版本 / Node 版本 / 操作系统 / profile 是否满足要求
  • External dependencies and runtimes (Electron / Python / Docker, ...)外部依赖与运行时(Electron / Python / Docker 等)是否齐备
  • Conflicts with installed plugins: command names, skill / tool names, ports, duplicate MCP registration与已装插件是否冲突:命令名、skill / tool 重名、端口占用、重复 MCP 注册

Security安全性

  • Repo matches the facts registered here; archived or abandoned?仓库是否与页面登记一致,是否归档或长期停更
  • Safety of preinstall / install / postinstall and install.sh / setup.ps1preinstall / install / postinstall 与 install.sh、setup.ps1 是否安全
  • curl|bash, download-then-execute, obfuscation, unrelated domains → stop immediatelycurl|bash、下载即执行、混淆代码、无关域名 → 立刻停止
  • Typosquatting or unmaintained packages among the new dependencies新增依赖里有没有 typosquatting 或无人维护的包
  • Requested permissions vs. what the feature actually needs申请了哪些权限、是否超出功能所需(filesystem / network / shell / clipboard)
  • Any sudo / admin requirement, plus uninstall and rollback是否要求 sudo / 管理员权限,以及卸载与回滚方式

Anything uncertain must be marked unknown with a note on how to confirm it. This site's signal screen is a static snapshot, not a security audit.拿不准的必须标「未知」并说明要我怎么确认。本站的信号筛查是静态快照,不能替代安全审计。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile desktop add dsh-mimo-connect

把 anze225-max/dsh-mimo-connect 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

DSH MiMo Connect

English | 中文

License: MIT npm Node DSH

将 MiMo 桌面 App 包含的模型自动接入 DeepSeek Harness,在 DSH 对话窗口里零配置使用。

用的是你在 MiMo 客户端里已经登录、已经充值的那份额度——不需要单独申请 API Key,也不需要额外装常驻程序。

模型选择器中的 MiMo 分组

会话切到 MiMo 时,输入框下方会直接显示剩余额度;用别的模型时它不出现。

剩余额度与统计行同排

悬停可看到重置日。

悬停显示重置日

为什么需要它

MiMo 客户端的额度本来只能在客户端里用。想在 DSH 里用上它,通常只有两条路:

做法 代价
单独申请平台 API Key 走的是平台计费,与客户端额度是两套账,等于重新花钱
用第三方反代工具 需要额外装一个常驻程序,还要配开机自启

这个插件是第三条路:直接复用客户端已经登录的凭证,把客户端那份额度接进 DSH。不额外申请 Key、不额外装程序、不写开机自启。

特性

  • 零配置:客户端已登录,插件装上就能用,不弹任何提示。
  • 复用客户端额度:用的是你在 MiMo 客户端里的那份额度,不是平台计费。
  • 无常驻进程:不启动代理、不注入进程、不写注册表自启项。关掉 DSH 就什么都不剩。
  • 剩余额度就地可见:会话切到 MiMo 时,输入框下方直接显示剩余额度与重置日;用别的模型时它不出现。
  • 可脱离客户端使用:没装客户端也能让插件单独登录一次,之后与客户端无关。
  • 跟随账号:客户端换账号或退出登录,插件自动跟随。
  • 支持图片输入:模型支持时可直接粘贴图片。
  • 思考过程可见:思维链以流式事件呈现。

安装

dsh plugin --profile desktop add dsh-mimo-connect
dsh --profile desktop

(把 desktop 换成你实际使用的 profile:web / desktop / dsh-tui)

装好后在模型选择器里选择 MiMo 分组下的模型即可。

也可以从源码安装:

dsh plugin --profile desktop add github:anze225-max/dsh-mimo-connect

凭证来源

插件按下面的顺序解析凭证,前者存在就不打扰你:

顺序 来源 说明
1 $DSH_HOME/.mimo-connect-auth.json 插件自己登录后保存
2 MiMo 客户端的 cookie 只读复用,不修改客户端任何文件
3 都没有 提示运行 login 命令

客户端的 cookie 读取位置:

%APPDATA%\Xiaomi MiMo\Partitions\xiaomi-account\Network\Cookies

该文件是 Chromium 的标准 SQLite cookie 库,插件复制到临时文件后只读查询,避免与运行中的客户端争锁。MiMo 的 cookie 值是明文存储的(value 有值、encrypted_value 为空),因此不需要 DPAPI 解密。

命令行

dsh plugin --profile desktop exec dsh-mimo-connect status    # 查看登录状态
dsh plugin --profile desktop exec dsh-mimo-connect verify     # 真实调用一次模型
dsh plugin --profile desktop exec dsh-mimo-connect doctor     # 本地诊断
dsh plugin --profile desktop exec dsh-mimo-connect login      # 单独登录(不用客户端)
dsh plugin --profile desktop exec dsh-mimo-connect logout     # 删除插件自己的凭证

Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →

← 上一个 Prev dsh-goal-mode-enhance 下一个 Next dsh-godot-tool →