MoriTang/dsh-plugins--plugins-cost-balance0

dsh-cost-balance

Out-of-tree DeepSeek Harness plugin: live cost tracking and account balance in the Web UI.

AI Analysis

核心用途是在 DSH 网页端界面实时显示 DeepSeek 账户余额和当前会话的 Token 消耗成本。适合需要根据官方计费标准精细化监控 API 开销的用户。

Package
dsh-cost-balance
Version
0.1.0
License
Apache-2.0
Last updated
Sep 3, 2026

Install

This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗

配置

字段默认说明
pricing.inputPerM2未缓存输入,每百万 token 价格(currency 单位)
pricing.outputPerM8输出,每百万 token 价格
pricing.cacheReadPerM0.5缓存命中读取,每百万 token 价格
pricing.cacheWritePerM2缓存写入,每百万 token 价格
currency¥价格与显示使用的货币符号
apiKeyEnvDEEPSEEK_API_KEYAPI key 的凭证引用(环境变量名)
baseURLhttps://api.deepseek.comAPI 端点基址,/user/balance 追加其后
refreshMs60000余额刷新间隔(毫秒)

价格表请对照 DeepSeek 当前官方价目调整;改配置保存即热生效(不需要重启)。