SoDaZilla-zzz/dsh-liquid-glass-balance-card0

dsh-liquid-glass-balance-card

DeepSeek Harness (DSH) web GUI plugin: a draggable liquid-glass floating card showing DeepSeek API balance, cumulative spend and token usage in the top-right corner.

包名
dsh-liquid-glass-balance-card
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SoDaZilla-zzz/dsh-liquid-glass-balance-card

⚙️ Configuration / 配置

API Key

Click the gear icon on the card to open settings:

点击卡片右上角的齿轮图标打开设置:

  1. Paste a DeepSeek API Key and click Save / 粘贴 DeepSeek API Key 并点击「保存」;
  2. The key is stored on the host under $DSH_HOME/storages/dsh-liquid-glass-balance-card.json; the browser only sees a masked value / Key 保存在宿主侧 $DSH_HOME/storages/dsh-liquid-glass-balance-card.json,浏览器只显示掩码;
  3. Click Clear to remove the manual key and fall back to the DSH DEEPSEEK_API_KEY / 点击「清除」可删除手动 Key,之后回退使用 DSH 自身的 DEEPSEEK_API_KEY

Manual key takes priority. If neither is configured, the card shows a clear error.

手动 Key 优先于 DSH 已配置的 DEEPSEEK_API_KEY。若两者都没有,卡片会显示明确的错误提示。

Liquid Glass Parameters / 玻璃效果参数

All parameters are adjustable in real time in the settings panel:

所有参数均可在设置面板实时调节:

Parameter / 参数Range / 范围
Transparency / 透明度0% ~ 80%
Background blur / 背景模糊0px ~ 40px
Saturation / 饱和度100% ~ 300%
Highlight intensity / 高光强度0% ~ 100%
Moving shine / 流动光线0% ~ 50%
3D thickness / 3D 立体厚度0px ~ 40px(可开关)
Side angle / 侧向角度-30° ~ 30°
Glass color / 玻璃颜色自定义取色器(保持液态玻璃特性)

Settings are saved in localStorage and a Reset to default button is provided.

参数保存在浏览器 localStorage,并提供「恢复默认」按钮。

Usage Statistics / 用量统计

The card shows cumulative spend and cumulative tokens with selectable time ranges:

卡片显示累计消费与累计 Token,可切换时间维度:

  • Today / 今天
  • Yesterday / 昨天
  • Last 7 days / 近7天
  • Last 30 days / 近30天
  • All time / 全部

Statistics are aggregated locally from DSH session logs using the official DeepSeek pricing timeline. No data is sent to any third party.

统计由宿主侧本地聚合 DSH 会话日志,并使用 DeepSeek 官方价格时间表计价,不会向任何第三方发送数据。


Usage Statistics / 用量统计

The card shows cumulative spend and cumulative tokens with selectable time ranges:

卡片显示累计消费与累计 Token,可切换时间维度:

  • Today / 今天
  • Yesterday / 昨天
  • Last 7 days / 近7天
  • Last 30 days / 近30天
  • All time / 全部

Statistics are aggregated locally from DSH session logs using the official DeepSeek pricing timeline. No data is sent to any third party.

统计由宿主侧本地聚合 DSH 会话日志,并使用 DeepSeek 官方价格时间表计价,不会向任何第三方发送数据。