ChenYiming-aaa/dsh-account-stats
ChenYiming-aaa★ 1JavaScript最后同步: 2026-08-17
用于 dsh web 的 DeepSeek 账户统计插件:实时余额 + 每次会话费用,支持官方分时段计价
README 摘要
dsh-account-stats DeepSeek 账户统计插件(dsh web 用):在输入栏右侧显示 实时余额 与 本次会话消费 ,并支持悬停查看明细(估算 / 本轮余额变化 / 账户累计变化)。 - 宿主端 :注册 account 会话投影——实时调用 DeepSeek /user/balance (每 60 秒轮询 + 每轮结束即时结算),按官方定价页(https://api-docs.deepseek.com/zh-cn/quick start/pricing/) 分时计价 (高峰 = 北京 9:00–12:00 / 14:00–18:00,空闲半价),按模型(deepseek-v4-flash / v4-pro)分别计费;非 DeepSeek 计费模型(如 opencode 免费模型)自动跳过。 - 客户端端 : AccountChip 注册到输入栏右侧( conversation.input.right slot),无需修改任何第三方 bundle。 安装 方式一( dsh plugin ,npm 发布后): 方式二(一键脚本): 脚本会把插件复制到 $DSH HOME/profiles/node modules/dsh-account-stats/ ,并在 $DSH HOME/profiles/web/cordis.patch.yml 追加插件行(幂等,重复执行不会重复添加)。 方式二(手动): 1. 把 dsh-account-stats 目录复制到 $DSH HOME\profiles\node modules\ ( $DSH HOME 默认 C:\Users\ \.dsh ) 2. 在 $DSH HOME\profiles\web\cordis.patch.yml 追加: 3. 重启 dsh web (插件化加载需要重启一次),刷新页面即可看到输入栏右侧的余额 chip。 需要 API Key:通过 dsh 的凭据服务保存 DEEPSEEK API KEY (Web 的模型设置页可写入),或设置环境变量。 配置说明 配置项 默认值 说明 baseUrl https://api.deepseek.com 余额接口地址 apiKeyEnv DEEPSEEK API KEY 凭据引用名 refreshMs 60000 余额轮询间隔(毫秒) timeoutMs 10000 余额请求超时 pricing.defaultModel deepseek-v4-flash 未识别模型时的兜底(当前不计费,见下) pricing.models 官方两档价格 分时价格表(元/百万 tokens) 价格按官方定价页配置;官方改价后请同步更新 cordis.patch.yml 中的 pricing.models 。 不在价格表中的模型(如 opencode 的…
在 GitHub 查看完整 README →分类
DeepSeek Harness: Everything is a Plugin.
★ 182,325
amruthpillai/reactive-resumeA one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!
★ 41,477
anywhere-labs/deepseek-harness-desktop为 DeepSeek Harness (DSH) 插件生态打造的现代化桌面端解决方案。万物皆「插件」,桌面本身也是「插件」。
★ 17,784