[Plugin] dsh-usage:DeepSeek 账户全量用量 + 余额面板(走平台官方接口) #4349
Huasecc
started this conversation in
Show Your Plugins!
Replies: 1 comment
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
[Plugin] dsh-usage —— DeepSeek 账户全量用量 + 余额面板(走平台官方接口)
dsh-usage:在 DSH Web GUI 直接查看你的 DeepSeek 账户真实用量与余额——数据来自 DeepSeek 平台官方用量接口(
platform.deepseek.com/api/v0/usage/by_api_key/{amount,cost}),不是本机日志估算。与现有插件的区别
现有 dsh 用量插件(dsh-usage-stats、dsh-token-usage-dashboard 等)大多从本机会话日志聚合——只能看到你这台 DSH 产生的用量。dsh-usage 走平台官方接口,看到的是账户全量数据:网页控制台、手机 App、其他客户端的调用都算在内,与平台用量页(platform.deepseek.com/usage)完全一致。
dsh plugin addgit 源两者可以共存:想要账户真实花费看 dsh-usage;只看本机 DSH 消耗选日志派。
功能
DEEPSEEK_API_KEY(或设置页手动 Key),显示总额/充值/赠送deepseek_usage_query,模型可以直接查询余额与用量~/.dsh/dsh-usage-token,重启自动读取安装
dsh plugin --profile web add "github:Huasecc/dsh-usage#main"重启 web 生效。首次使用需按 README 在设置页粘贴一次平台会话令牌(F12 控制台
JSON.parse(localStorage.getItem('userToken')).value)。链接
All reactions