dsh plugins中文
← Back to popular plugin directory

Session cost statistics

Han-1413141/dsh-cost-meter · skills

DeepSeek Harness session fee statistics plug-in: the session fee, day fee, history and official price are synchronized.

★ 23GitHub stars
1Forks
2026-08-15Last updated
JavaScriptLanguage
MITLicense

Project overview

dsh-cost-meter DeepSeek Harness 会话费用统计插件(界面中英双语)

数据通道: 本会话费用:宿主注册 costUsage 会话投影(纯 token 桶 + 按模型拆分),浏览器经 useProjection('costUsage') 读取并按当前价格表计价; 全局账本 / 预算 / 余额 / 配置:costMeter/getState | updateConfig | fetchPrices | refreshBalance | resetHistory,经 Typert 网关 RPC(remote.costMeter.); 余额:调用官方 GET {baseURL}/user/balance,复用模型请求的同一把 API Key(凭证服务/环境变量),进程内缓存按 refreshMinutes 过期。

插件不导入 cordis/dsh 的 Service/Context 运行时类(仅 Node 内建模块、zod、dsh-home-paths、dsh-credentials 的纯函数),与宿主共享同一运行时实例,无重复依赖风险。 官方价格同步原理

Install command

dsh plugin --profile web add github:Han-1413141/dsh-cost-meter
View GitHub repository ↗Back to popular plugin directory