dsh-whale-balance
Curated pickMaintenance: Activeenchangcui340-cloud/dsh-whale-balance
DSH 鲸鱼余额展示 UI 插件。
Install
dsh has no central install command — add this plugin’s entry (documented in its README below) to your profile or patch config, then restart.
How installs work20
stars
0
forks
JavaScript
Language
MIT
License
2026-08-16
Created
2026-08-17
Last push
README
dsh-whale-balance
DeepSeek Harness 原生插件:页面右下角一只小鲸鱼,气泡里实时显示 DeepSeek 账户余额。装上即用,随 DSH 启动自动加载。
快速使用
- 按下方「安装」装好后,重启
dsh web; - 右下角自动出现小鲸鱼并显示余额——默认就是内置的鲸鱼图,无需配置图片;
- 点一下小鲸鱼 = 手动刷新;按住拖动 = 换位置;每 60 秒自动刷新一次。
想换成自己的图片?在 profile 的 cordis.patch.yml 里加 imagePath 配置:
- insert:
- id: whale-balance
name: 'dsh-whale-balance'
config:
imagePath: 'C:\你的图片.png' # 图片的绝对路径;不填/填错都自动用内置鲸鱼图
安装(三步)
-
把
dsh-whale-balance文件夹放进~/.dsh/profiles/web/node_modules/; -
在
~/.dsh/profiles/web/package.json的dependencies里加:"dsh-whale-balance": "file:./node_modules/dsh-whale-balance" -
在
~/.dsh/profiles/web/cordis.patch.yml里加上面的 insert 段——这步是加载插件,必做;只有里面的imagePath一行可选(不填就用内置鲸鱼图)。
重启 dsh web,完成。
功能
- 🐳 余额来自官方
GET /user/balance,免费、不耗额度 - 🖼️ 内置鲸鱼图(
lib/assets/DSniang02.png),也可用imagePath指定任意 PNG - 🖱️ 可拖动、点击刷新、每 60 秒自动刷新
- 🌗 明暗主题自适应,运行时零 token
目录结构
.
├── package.json # dsh.client 声明(客户端 bundle 靠它被发现)
├── lib
│ ├── index.js # Host 半边:/dsh-whale/whale.png + /dsh-whale/balance
│ ├── client.js # Client 半边:挂件 UI(fetch + setInterval)
│ └── assets # 内置鲸鱼图 DSniang02.png
├── README.md
└── LICENSE
环境要求
DEEPSEEK_API_KEY(Settings → Models 页面,或~/.dsh/.credentials.yaml)curl(Windows 10+ / macOS / Linux 均自带)
License
MIT
More in UI & Experience
dsh-web-ui
by zhu1090093659
Plugin and skin collection for DeepSeek Harness (DSH) Web UI - task board, git graph, right-side panel, remote mobile UI, pet, live token stats, and skin center.
dsh-better-sidebar
by omdsh-dev
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
dsh-tui
by ccch1mneyyy
Claude Code 风格全屏终端 TUI:像素鲸鱼顶栏、双流光大字、实时工作状态行、思考流式展开、双击 Esc 时间回溯、上下文进度条 + TPS 仪表;接入 Agent preset(standard/code/minimal/cordis)、Skills、MCP、Goals、Todos、子代理,/ 命令注册表与随附技能(audit/bug/review/practice/pr_comments/release-notes/vuln-check);纯插件挂载零核心改动。
openpets
by alvinunreal
Local first, desktop companion platform with animated pets, plugin SDK and coding-agent integrations.
