dsh-cost-gauge
DeepSeek Harness 花费仪表:左侧靠上的方形浮动窗,显示 DeepSeek API 会话花费,指针指示当前峰谷费率(标准/翻倍),余额低于阈值时顶部红灯闪烁报警。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wjingshan/dsh-cost-gauge说明文档
阅读完整 README ↗配置
余额阈值既可在浮动窗里点齿轮改,也可在 profile 的 cordis.patch.yml 里覆盖:
- update:
- id: cost-gauge
config:
threshold: 10 # 余额报警阈值(人民币)
baseUrl: 'https://api.deepseek.com'
apiKeyEnv: 'DEEPSEEK_API_KEY'
refreshSeconds: 30 # 余额查询缓存秒数
覆盖时需完整重述该行需要的全部 config 键(patch 按行整体替换 config,不做深合并)。