dsh-piggy-bank
Manifest valid★ 1dsh plugin: DeepSeek balance display
dsh-piggy-bank
DeepSeek Harness (DSH) Web 插件:一个可拖动的悬浮存钱罐,实时显示 DeepSeek 账户余额,并在余额发生变化时弹出扣减 / 增加动画。
功能
- 悬浮存钱罐:可拖动位置,支持 卡通猪 / 蓝色鲸鱼 / 黑金龙纹 / 陶瓷 4 种内置透明 PNG 样式,也可导入外部
.svg作为自定义样式。 - 余额展示:余额显示在存钱罐上方,带深色文字背景。
- 自动刷新:页面打开、任务开始 / 结束时立即刷新;对话运行期间按设定间隔(默认 30 秒)自动查询,仅在页面可见时轮询。
- 余额动画:查询时存钱罐摇晃;余额下降时抖动并显示
-¥xx.xx(淡入淡出 5 秒);余额增加时以金色显示+¥xx.xx。 - 设置界面:在 DSH 的设置侧边栏中,可调整「查询时间间隔(秒)」(5–600)、切换样式、添加自定义 SVG。
数据来源为 DeepSeek 官方接口
GET https://api.deepseek.com/user/balance。DeepSeek 开放平台未提供 token 用量 / 费用 / 账单接口,因此本插件只展示余额,不做本地用量记账或费用估算。
安装
本插件为纯 Node.js 实现,跨平台通用,一键安装:
node scripts/install.mjs
也可以使用各平台快捷脚本:
- Windows(CMD):
scripts\install.cmd - Windows(PowerShell):
scripts\install.ps1 - macOS / Linux:
./scripts/install.sh
安装脚本会自动:找到 dsh profile(默认 web)→ 复制插件 → 在 profile 的 package.json 中登记依赖和 bundle → 执行 pnpm install。
完成后再重启 dsh web 并硬刷新页面(Windows: Ctrl+Shift+R;macOS: Cmd+Shift+R)。
可选参数
node scripts/install.mjs --profile headless # 安装到其它 profile
node scripts/install.mjs --no-install # 只复制/登记,不运行 pnpm install
发布到 npm / GitHub 后,也可用 DSH 自带命令安装:
dsh plugin --profile web add dsh-piggy-bank
前置条件
~/.dsh/.credentials.yaml中已配置DEEPSEEK_API_KEY。- Node.js ≥ 20,pnpm 可用。
- DSH 已初始化 web profile(
~/.dsh/profiles/web)。
结构
| 文件 | 作用 |
|---|---|
lib/index.js | host 端:注册 /dsh-piggy-bank/status 与图标路由、监听 turn/end、注册设置命名空间。 |
lib/client.js | client 端:悬浮存钱罐 + 余额动画 + 设置卡片 + 定时查询。 |
assets/ | 4 种内置存钱罐透明 PNG(卡通猪 / 蓝色鲸鱼 / 黑金龙纹 / 陶瓷)。 |
scripts/install.mjs | 跨平台一键安装脚本。 |
cordis.patch.yml | 把插件行插入 DSH host 组合。 |
License
MIT
Comments
Loading…
From the same category
DeepSeek Harness plugin for Reactive Resume: bridges your resumes and job applications into a Harness session over MCP.
★ 41.7k
↓ 156/wk
MIT
Aug 24, 2026
dsh plugin --profile web add dsh-plugin-reactive-resumeby Tencent
Let AI agents use your real, logged-in browser without interrupting your work. CLI + extension for browser automation across any shell-capable AI agent.
★ 8.6k
↓ 6.1k/wk
MIT
TypeScript
Oct 10, 2026
dsh plugin --profile terminal add @wxg-prc-cpg/browser-skill-dsh-pluginby yjh051108
dsh-routing-suite — injector + router-standard kit: install the runtime injector first, then the task-aware reasoning-mode router preset (measured P1-P23).
★ 7k
MIT
JavaScript
Sep 18, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby Q00
Agent OS: the agent gets smarter on its own. We just hold the line: Interview-gated, staged evaluation, budgeted evolution loop. MCP server, 14 runtimes: Claude Code, Codex CLI, Gemini CLI, OpenCode,
★ 6.2k
MIT
Python
Oct 7, 2026
by dsh-market
The plugin market inside DeepSeek Harness — browse, search, one-click install · DSH 可视化插件市场
★ 6.1k
↓ 112.4k/wk
MIT
TypeScript
Oct 10, 2026
dsh plugin --profile web add dshmarketby superdesigndev
OpenRouter for agent tools. Join community here: https://discord.gg/6mQYYfFMAn
★ 5k
NOASSERTION
Python
Oct 11, 2026
dsh plugin --profile web add treg-dsh