Community plugin

AlaxonYegar / dsh-desktop-pet

桌面 Live2D 桌宠插件 for DSH:常驻置顶、鼠标穿透、不抢焦点、多显示器、开机自启、自带模型导入。不打包任何模型文件。

  • JavaScript
  • MIT
  • 1 stars
  • Oct 31, 2026

About this plugin

Written by the registry from verified metadata, not from the README.

dsh-desktop-pet is a DSH plugin published from the AlaxonYegar/dsh-desktop-pet repository.

  • Listing statusManifest verified
  • Manifest checkedNov 21, 2026
  • Packagedsh-desktop-pet
  • Package version1.0.0
  • Source commit272f895
  • Repository createdOct 31, 2026

Capabilities and topics

dshdsh-plugindeepseek-harnessdesktop-pet
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

dsh-desktop-pet

release license dsh-plugin platform

给你的 DeepSeek Harness 配一只桌面桌宠:常驻桌面、始终置顶、鼠标穿透(只有压在模型不透明 像素上才接收点击)、不抢焦点、不占任务栏、可拖着到处跑。

作者 AlaxonYegar | 完全免费,MIT 许可,功能无删减

本插件不含任何 Live2D 模型文件。 安装后首次启动会让你选择自己已获授权的 *.model3.json 所在文件夹。

为什么值得装

普通桌宠dsh-desktop-pet
鼠标穿透常挡点击按像素判断,空白区域全穿透
抢焦点点她就打断输入focusable: false,永不抢焦点
任务栏多一个图标skipTaskbar: true
尺寸固定五档 + 滚轮 + 快捷键
模型写死自带导入,任意 .model3.json
多显示器拖不过去支持
开机自启手动托盘一键,VBS 静默无黑框

安装

在 DSH 插件市场搜索 dsh-desktop-pet,或执行:

dsh plugin --profile web add dsh-desktop-pet

装完重开 DSH,桌面右下角会出现桌宠(首次是「选择模型」界面)。

运行时依赖

插件不打包 Electron(那会让体积从 240KB 涨到 100MB+),复用已有的:

顺序位置
1<插件目录>/electron/electron.exe(自己放)
2%USERPROFILE%\.dsh\electron\electron.exe(DSH 自带,通常已有)
3%LOCALAPPDATA%\.dsh\electron\electron.exe
4%LOCALAPPDATA%\Programs\electron\electron.exe

DSH 自带的命中第 2 条,所以多数用户开箱即用。都找不到时插件只在日志提示,不会报错、 不影响 DSH 运行。

使用

操作效果
左键按住拖动移动(整屏任意位置,含任务栏区域、多显示器)
右键单击打开/关闭操作面板
滚轮缩放
Ctrl+Alt+H隐藏 / 显示
Ctrl+Alt+L强制可交互(像素命中不准时)
Ctrl+Alt+↑ ↓放大 / 缩小
Ctrl+Alt+Q退出

托盘菜单另有:大小档位、回到右下角、始终置顶、开机自启、退出。

配置

- id: desktop-pet
  name: dsh-desktop-pet
  config:
    autostart: true      # 设为 false 则只安装、不自动拉起

工作原理

宿主半侧只做一件事:DSH 启动时 spawn 一个 Electron 进程载入 app/,然后 unref()。 桌宠是独立进程——关掉 DSH 它照常在桌面上。

有个必须处理的坑:DSH 自身环境里带着 ELECTRON_RUN_AS_NODE=1,直接 spawn 会让 Electron 以纯 Node 模式启动并崩溃(app is undefined)。插件会在子进程环境里删掉这个变量。

目录结构

lib/index.js           宿主半侧:查找 Electron、拉起桌宠
app/                   桌宠本体(Electron 应用)
  main.js              主进程:窗口、托盘、拖动、像素命中、自启
  pet.html             渲染层:Live2D 渲染 + 操作面板
  preload.js           IPC 桥
  lib/                 渲染依赖(PixiJS / pixi-live2d-display / Live2D Cubism Core)
cordis.patch.yml       挂载声明

授权

完全免费,MIT。 代码可自由使用、修改、再分发。

  • 本项目代码:LICENSE(MIT)
  • 第三方组件(Electron / PixiJS / pixi-live2d-display):MIT,声明见 NOTICE.md
  • Live2D Cubism Core:适用 Live2D Inc. 的专有许可,见 NOTICE.md
  • 模型:不在本包内。请使用你已获授权的模型。

更新日志

见 CHANGELOG.md。

Badge

Listed here? Link back with this badge — paste the snippet into your repository README.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/AlaxonYegar/dsh-desktop-pet)