guoliyuan97-png/dsh-game-hud ↗★ 4
dsh-game-hud
游戏风格悬浮窗,显示余额、上下文及峰谷定价 适合需要直观监控账户余额、上下文剩余量及计费时段的用户。
安裝
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:guoliyuan97-png/dsh-game-hud說明文件
閱讀完整 README ↗配置
所有配置项都有默认值,可通过 DSH 设置 → 插件 → dsh-game-hud 界面编辑(保存后 HUD 实时生效,无需重启),或在 profile 的 cordis.patch.yml 中覆盖:
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
maxBalance | number | 20 | 血条满格金额(CNY)。余额超过此值显示满格,低于按比例减少 |
lowAlert | boolean | true | 低余额红光告警开关:余额(血条)低于 lowThreshold 时,悬浮窗四周闪烁红光 |
lowThreshold | number | 10 | 告警阈值(%)。仅血条触发,蓝条(上下文)不触发 |
priceTable | object | {} | 可选:按模型覆盖峰谷单价(元/百万 tokens)。未覆盖的模型用内置价格表 |
cordis.patch.yml 示例:
- insert:
- id: game-hud
name: 'dsh-game-hud'
config:
maxBalance: 50
lowAlert: true
lowThreshold: 10
priceTable:
# 官方价(元/百万 tokens),2026-09-10 12:00 起生效
deepseek-v4-flash:
peak: { input: 2.0, output: 8.0, cacheHit: 0.04 }
valley: { input: 1.0, output: 4.0, cacheHit: 0.02 }