dsh-deepseek-pet
Manifest valid★ 14DeepSeek Desktop Pet: Linking the DSH Account Balance to the Desktop Blue Whale Maid (Character Art · Game Screen · Dialogue · Balance Announcement)
DeepSeek 桌宠 · DSH 插件(宿主端)
把 DeepSeek 账户余额喂给桌面上的蓝鲸女仆桌宠,并提供两个模型工具。
- 桌宠本体:
D:\DeepSeek\deepseek-pet(独立原生程序,WPF 透明置顶窗) - 本插件:只做三件事 —— 用 DSH 凭据查余额、在
127.0.0.1上开一个只读状态接口、起停桌宠进程
DSH 宿主插件 ──HTTP(127.0.0.1:47831/state)──▶ 桌宠窗口
│ 持 DEEPSEEK_API_KEY │ 只拿到余额数字
└─ ctx.credentials.resolve() └─ 每 5 秒取一次
安装
plugin_manager install_bundle D:\DeepSeek\deepseek-pet-plugin
首次安装即为新 bundle,热生效;此后修改 index.js 再装会返回
restart-required(同包替换需要重启 DSH 才会加载新的 JS 世代)。
配置(profile 的 cordis.patch.yml → dsh-pet 行)
| 字段 | 默认 | 说明 |
|---|---|---|
port | 47831 | 状态接口端口,只监听 127.0.0.1 |
petPath | D:\DeepSeek\deepseek-pet\build\DeepSeekPet.exe | 桌宠程序路径 |
credential | DEEPSEEK_API_KEY | 用哪条 DSH 凭据查余额(不写死密钥) |
apiBase | https://api.deepseek.com | 余额接口前缀 |
refreshSeconds | 60 | 缓存/刷新周期(秒) |
lowBalance | 10 | 低于该值桌宠切「担心」表情、徽章变红 |
autoStart | true | 宿主启动 3 秒后自动叫起桌宠 |
startDelayMs | 3000 | 自动启动延迟,避开宿主 boot 期 |
stopOnUnload | false | 卸载插件时是否顺手关掉桌宠(默认留着) |
长轮询与「干活事件」(v0.0.2)
- 桌宠用
GET /state?wait=25长轮询:插件把请求挂起最多 25 秒,有事件立刻返回(实测反应 < 100ms),没有事件则超时返回一次心跳。 - 插件监听两个宿主事件来判断"用户主动开始干活":
agent/inbox/inserted(用户消息进入 inbox)→ 10 秒内agent/status变为running。 自动续跑 / 子代理 / 定时任务没有这条用户消息,因此不会触发桌宠的"被吓一跳"演出。 - 事件类型:
work-start、work-end、balance(余额变化)、message(留言)、quit(软退出)。
开发与验收:不重启 DSH 也能测
插件改了 JS 之后,同包替换要重启 DSH 才生效。dev-mock-server.mjs 用完全相同的协议顶替插件:
node dev-mock-server.mjs 47835
DeepSeekPet.exe --url http://127.0.0.1:47835/state --screen on
curl "http://127.0.0.1:47835/dev/event?kind=work-start" :: 模拟"用户开始干活"→ 桌宠被吓一跳
curl "http://127.0.0.1:47835/dev/event?kind=work-end"
curl "http://127.0.0.1:47835/say?text=hello"
工具
| 工具 | 参数 | 作用 |
|---|---|---|
pet_balance | fresh? | 读余额;fresh=true 跳过 60 秒缓存 |
pet_control | action(start/stop/status/refresh/say/hide/show)、text? | 起停桌宠、立即刷新、让桌宠弹一句话 |
接口
| 路径 | 说明 |
|---|---|
GET /health | {ok:true} |
GET /state?pid=<桌宠pid> | 桌宠拉取的状态(余额+留言),先回缓存再后台补数据 |
GET /say?text=... | 让桌宠说一句话(也可以由别的脚本调用) |
GET /refresh | 触发一次强制刷新 |
安全
- API Key 只在宿主进程内使用,不进日志、不下发;桌宠只收到余额数字与货币。
- 状态接口只监听回环地址,且是只读的(
/say、/refresh也只影响桌宠显示)。
Versions
| Latest version | Published | Size |
|---|---|---|
| 0.2.14 | — | — |
| 0.2.5 | — | — |
| 0.2.10 | — | — |
| 0.2.12 | — | — |
| 0.2.3 | — | — |
| 0.2.6 | — | — |
| 0.2.13 | — | — |
| 0.2.11 | — | — |
| 0.2.4 | — | — |
| 0.2.9 | — | — |
Comments
Loading…
Similar plugins
by miku00039-01
🐋 DSH 桌宠:DeepSeek Harness 的 Windows 桌面宠物,一键启动/停止/监测服务,双击唤起 GUI,零依赖单文件 exe
★ 3
↓ 238/wk
MIT
C#
Oct 1, 2026
dsh plugin --profile web add @miku00039-01/dsh-whale-petby yanzwzz
🐋 DeepSeek 娘桌宠:住进 DeepSeek Harness Web 界面的蓝发鲸鱼女仆。工作链路、任务完成统计(用时/消耗/花费)、睡眠系统、时间感知、余额/天气/喂食按钮、完整设置面板。
★ 23
↓ 1.2k/wk
MIT
JavaScript
Oct 7, 2026
dsh plugin --profile web add dsh-whale-girl-petby txlznbzsdj-collab
DeepSeek 小蓝鲸桌宠 DSH 插件:模型可调用 pet_say 命令桌宠说话,桌宠同步对话开始/结束(思考/庆祝)
★ 3
MIT
JavaScript
Aug 18, 2026
dsh plugin --profile web add dsh-deepseek-petby aceice01
DeepSeek 鲸鱼娘桌宠:DSH Desktop 桌宠 + Web 版悬浮桌宠,晓伊神经网络语音、撒娇互动、任务完成提醒
★ 10
↓ 250/wk
NOASSERTION
HTML
Aug 15, 2026
dsh plugin --profile web add dsh-whale-petby DoloresCaritasAngelus
SeekMaid 女仆 —— DeepSeek 娘桌宠,DSH 自动启动并监控任务状态
★ 3
MIT
Python
Aug 20, 2026
dsh plugin --profile web add seekmaid-petby yuxino
DeepSeek Harness Web 的蓝鲸女仆桌宠,任务有动静时会在页面边上提醒你。
★ 5
NOASSERTION
JavaScript
Sep 20, 2026
dsh plugin --profile web add dsh-blue-whale-maid