ankesu/dsh-live2d-pet
DeepSeek Harness 的 Live2D 桌宠:在 Web UI 中渲染 Cubism 模型,支持状态驱动表情与鼠标追踪。· DSH 桌宠的 Live2D 渲染插件
Project Overview项目介绍
This is a native DSH plugin that adds a floating Live2D companion pet to the DeepSeek Harness web UI. It renders Cubism 4 models using pixi-live2d-display on a transparent floating canvas, and ships with pre-built sample models from Live2D Inc. To install, you can pull the main branch for the default Haru human model, or check out the feat/tororo or feat/hijiki branches for cat models, then run pnpm install to automatically build the client code. The bundled configuration already points to the correct model path, so no extra setup is needed after install.
The pet responds to DSH conversation session states, switching expressions automatically based on whether DSH is idle, thinking, running tools, or finished. It supports mouse tracking that makes the pet’s head and eyes follow your cursor, and you can drag the pet anywhere on the screen, with position saved automatically to local storage. A toggle button added to the DSH header lets you quickly show or hide the pet any time, and your toggle preference persists across page refreshes and app restarts. This plugin is ideal for DSH users who want a fun, interactive companion element added to their workflow interface.
The plugin is released under the MIT license, while the bundled sample models are copyrighted by Live2D Inc. and provided under their sample license for testing purposes. It includes a URL shim script to rewrite Node.js built-in imports to browser-safe modules during the build process, and handles common development pitfalls like off-screen drag offsets and broken state linkage after toggling. You can add your own personal custom Live2D model by updating the simple configuration to point to your model file, no full rebuild of the plugin source code is required for this change.
这是一个专为DeepSeek Harness(DSH)开发的原生桌面宠物插件,它基于pixi-live2d-display渲染Cubism 4格式的Live2D模型,在DSH的Web界面中生成一个浮动桌宠。插件支持状态联动表情切换、鼠标位置跟随、自由拖拽调整位置,还在DSH顶栏提供一键开关按钮,开关状态和拖拽位置会跨刷新、重启持久保存。默认附带Live2D官方的Haru人型样例模型,也可以切换分支获取黑白猫型模型。
用户安装后可根据喜好切换不同模型:默认主分支是人型Haru,切换到feat/tororo分支获得白猫Tororo,切换到feat/hijiki分支获得黑猫Hijiki,切换分支后重新执行构建命令就能使用新模型。用户也可以导入自己的自定义Live2D模型,只需修改配置文件指向模型路径即可,不需要重新编译项目源码。这个插件适合想要给DSH界面增加趣味陪伴元素的用户日常使用。
该插件采用MIT许可协议,附带的官方样例模型归Live2D Inc.所有,仅用于测试,生产使用建议替换为自有模型。安装过程中pnpm会自动执行构建脚本生成可用产物,配置文件已默认指向对应模型,无需额外配置。插件内置了URL垫片处理Node内置模块的浏览器兼容问题,同时修复了常见开发陷阱避免运行异常。
请帮我安装这个 DSH 插件。安装前先完成【兼容性检查 + 安全性检查】,检查通过再动手。
插件:dsh-live2d-pet(ankesu/dsh-live2d-pet)
仓库:https://github.com/ankesu/dsh-live2d-pet
本站详情页:https://www.yhbd.top/plugins/ankesu-dsh-live2d-pet/
本站登记:类型 client · 归类 原生 DSH 插件 · 许可证 NOASSERTION · ⭐ 3 · 最近提交 2026-09-03 · 主语言 JavaScript
按下面顺序执行,每步先把结论告诉我,再进入下一步:
【1 兼容性检查】
① 我这边:DSH 版本、Node 版本、操作系统、当前 profile(web / desktop)。
② 读它的 README、package.json、插件 manifest,列出它要求的 DSH 版本 / Node 版本 / 操作系统 / 外部依赖 / 需要另外先装的运行时。
③ 逐条比对,结论只写「满足 / 不满足 / 未知」三种;不满足的给出可行替代方案。
④ 检查是否和我已装的插件冲突:命令名重复、skill / tool 重名、端口占用、重复注册的 MCP server。
【2 安全性检查】
① 仓库可信度:和上面「本站登记」是否一致;star / fork 数、创建时间、最近提交,是否归档或长期停更。
② 安装脚本:逐行看 package.json 的 preinstall / install / postinstall,以及 install.sh、setup.ps1 之类脚本。出现 curl|bash、下载后直接执行、混淆代码、访问与插件功能无关的域名,立刻停下来告诉我,不要继续装。
③ 依赖:列出新增依赖,标出无人维护、或与知名包拼写近似的可疑包(typosquatting)。
④ 权限与副作用:它会读写哪些目录、访问哪些域名、需要哪些 DSH 权限(filesystem / network / shell / clipboard 等),以及怎么卸载和回滚。
⑤ 如果它要求 sudo / 管理员权限,或权限明显超出功能所需,先停下来问我。
【3 安装】
上面两步没有「不满足」和「高危项」时才执行;用官方推荐方式安装,不要自行提权。
【4 汇报】
用表格输出:检查项 / 结论 / 依据 / 是否需要我决策。拿不准的一律写「未知」并说明要我怎么确认——不要猜,也不要替我决定。
Send this message to DSH in your current session: it verifies compatibility and security first (answering met / not met / unknown item by item) and only installs once everything checks out — it will stop and ask you if it finds a high-risk item. The box scrolls; the copy is the full prompt. CLI install commands may not be accurate across systems, so DSH is the safer route.把上面这条消息直接发给当前会话里的 DSH:它会先核对兼容性与安全性(逐条给「满足 / 不满足 / 未知」),确认没问题再安装,有高危项会停下来问你。框内可滚动,复制到的是完整提示词;安装命令不一定准确,发给 DSH 更稳。
- 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 web add dsh-live2d-pet
把 ankesu/dsh-live2d-pet 加入你的 DSH 配置(web profile)即可启用。
READMEREADME
dsh-live2d-pet
A Live2D companion pet for DeepSeek Harness — renders a Cubism model as a floating companion in the Web UI, with state-driven expressions, mouse tracking, drag repositioning, and a header toggle button.
DSH 桌宠 Live2D 插件:在 Web UI 里渲染一个 Cubism 模型作为浮动桌宠,支持状态联动表情、鼠标跟随、拖拽摆位、顶栏一键开关。
🐱 Haru/ 人型(默认分支)

The bundled official Haru sample model (Live2D Inc.):
附带官方 Haru 示例模型(© Live2D Inc.):

🐱 Tororo Cat pets / 白猫宠物(分支)
The official Tororo & Hijiki cat sample models
(Live2D Inc.) run as
pets on the feat/tororo
branch — cats with ear/tail/paw parameters, parameter-snapshot expressions
(no exp3 files needed), and the sample's Idle/Tap motions:
官方 Tororo & Hijiki 猫示例模型(© Live2D Inc.)在
feat/tororo
分支上作为宠物运行——猫有耳朵/尾巴/爪子参数、参数快照表情(无需 exp3 文件)、
以及自带 Idle/Tap 动作:

🐱 Hijiki Cat pets / 黑猫宠物(分支)

Switch to a branch for cat pets: / 切到分支即可用猫宠物:
- White cat Tororo:
git checkout feat/tororo→pnpm build→ configuremodel: tororo/tororo.model3.json- Black cat Hijiki:
git checkout feat/hijiki→pnpm build→ configuremodel: hijiki/hijiki.model3.json(both branches use the same parameter-snapshot client; only the model path differs)
Table of Contents / 目录
- Features / 功能
- Cat pets (branch) / 猫宠物(分支)
- Install / 安装
- Enable / 启用(必读)
- Configuration / 配置
- State → Expression map / 状态表情映射
- Debug handles / 调试句柄
- Bring your own model / 换自己的模型
- Architecture & pitfalls / 架构与排雷
- Development / 开发
- License / 许可
Features / 功能
| English | 中文 | |
|---|---|---|
| 🐳 Real Live2D | Powered by pixi-live2d-display (Cubism 4), rendered on a transparent floating canvas | 基于 pixi-live2d-display(Cubism 4)渲染,透明浮动画布 |
| 👀 Mouse tracking | Head turns and gaze follow your cursor (ParamAngleX/Y, ParamEyeBallX/Y); the iris is written every frame so expression snapshots can't clobber it |
头部与视线跟随鼠标;瞳孔每帧写入,表情快照覆盖不了 |
| 😊 State-driven expressions | The model's .exp3.json expressions map to harness activity states (idle/waiting/thinking/tool/done/failed/sleep/…) plus hover & drag |
表情按 AI 活动状态切换(idle/waiting/thinking/tool/done/failed/sleep…)+ hover/拖拽反馈 |
| 🎬 Idle motion + fidgets | The model's idle motion runs constantly; random tap motions play as idle micro-antics | 常驻待机动作;空闲时随机播小动作(发呆/挠头) |
| 🎛️ Config-driven geometry | Size / position / offsets come from cordis.patch.yml — tweak without rebuilding |
大小/位置/偏移全在 cordis.patch.yml 配置,改配置不用重编译 |
| 🖱️ Drag repositioning | Drag the pet anywhere; the offset persists in localStorage (with a viewport sanity-clamp against off-screen bugs) |
可拖拽到任意位置,偏移持久化(带防怼出屏幕的钳制) |
| 💾 Toggle button & persistence | A ✨ header button (next to the dsh-emoji-wallet 💰 button) shows/hides the pet instantly; state survives refreshes & restarts | 顶栏 ✨ 按钮(dsh-emoji-wallet 钱包 💰 旁边)一键开关,状态跨刷新/重启保留 |
| 🔗 Session state linkage | Watches the DSH conversation session — deep thinking / sleep / celebrate are time-driven | 监听 DSH 会话——深思考 / 睡觉 / 庆祝等按时间驱动 |
Showing the opening section of the README — the full document lives in the repository以上为 README 开头摘要,完整文档在仓库内 · View the full README on GitHub →在 GitHub 查看完整 README →
MemTensor/memmy-agent
OpenPetsHQ/openpets
PC2005-cloud/dsh-pet
zenstory-ai/oh-story-dsh
QCYTSN/dsh-dafeiyu
vlln/whale-girl
Ayase34/gal-view
ChisaAlter/WhaleIsle