All plugins

DSH / BUNDLE / CLIENT-UI

@linxin666/dsh-deepseek-usage-dashboard

v0.2.0izz-BLUE / dsh-deepseek-usage-dashboarddd648b720d

InstallableBundlesUI & client pluginsCommunity · Topic auto-analysisWeb UI

Overview

@linxin666/dsh-deepseek-usage-dashboard

Daily DeepSeek token usage dashboard and balance watch for DSH Web

README / EN

Package documentation

Registry summary

Daily DeepSeek token usage dashboard and balance watch for DSH Web

dsh.pub verifies the pinned bundle contract, runtime facts, and distribution semantics. The complete README remains in the source repository.

Read the full README on GitHub

LIMITATIONS

Known limitations

- 官方 SDK 未导出 `isTrustedApiRequest`,篱笆按其文档语义在本地等价实现(相同 Host/Origin/Sec-Fetch-Site 规则,不声明 trustedHosts)。 - provider 未上报 usage 且 turn 正常结束时该步骤不落行(用量未知);失败请求按「无 usage 且 turn 以 error/aborted 结束」统计。 - 步骤按开始时生效的 request/header 归属模型;turn 中途改 header 影响后续步骤。 - 余额端点固定为 `https://api.deepseek.com`,不可配置(按需求)。 - 费用为基于配置价格表的估算,官方账单才是权威。 - 运行期 token 桶来自官方适配器 `mapUsage`:它优先采用 `prompt_tokens_details.cached_tokens` 拼写并丢弃原生 `prompt_cache_miss_tokens`(用 `prompt_tokens - cacheRead` 推导 miss)。插件无法在运行期恢复原生字段(不 patch node_modules),当两个缓存字段语义不一致时,新采集数据的 hit/miss 分桶可能与官方账单存在偏差;插件侧参考映射 `mapWireUsage` 已按原生字段优先。 - SQLite 使用 Node 内置 `node:sqlite`;数据库为 `~/.dsh/deepseek-usage/` 下的单机级存储。