← 返回列表
D

@hunterchcl/dsh-usage-meter

v1.2.0 · 1 天前发布

DeepSeek Harness Balance/Usage plugin: Usage and balance meter for DeepSeek Harness (DSH), providing real-time usage statistics and balance information.

deepseekdeepseek-harnessdshdsh-pluginusagebalancepricing

README

dsh-usage-meter



English | 中文

想要看到自己账户的余额吗?想要看到自己一句话烧了多少钱,又不需要过多的分析功能?想要看到涨价对自己的钱包有多大的影响? 这个插件正适合你

在界面右上方显示DeepSeek 官方API的余额和本会话已使用的金额;鼠标悬停额度可查看按具体细节。价格表与峰谷定价可在设置页配置。

界面语言:UI 文案随 DSH 所选择的语言自动切换(中文 / English)。在 DSH 设置页「通用 → 语言」切换语言即可实时生效;未设置时跟随浏览器语言。


功能



  • 会话顶部提示:

  • - 余额:调用 DeepSeek 官方 GET https://api.deepseek.com/user/balance;非官方 API / 未配置 Key / 查询失败时余额会隐藏。
    - 本会话:显示当前 session 已使用额度(人民币,两位小数)。鼠标悬停显示明细。UI具体:<img width="577" height="321" alt="image" src="https://github.com/user-attachments/assets/119c5da4-76db-4655-a26e-9a4ed08d1e2f" />

  • 设置页「余额 / 用量」:余额详情、以及 计价设置

  • - 有峰谷定价开关,在打开开关时会按照峰谷定价的时间对每一次请求进行计算,能得到准确的金额数据,即使这次对话跨越了峰谷时段
    - <img width="584" height="326" alt="image" src="https://github.com/user-attachments/assets/8aaa7332-59f7-
    查看完整 README →

    版本兼容矩阵

    DSH 版本状态说明
    dsh@0.1.0-rc.6 ✅ 兼容 cordis patch ✅
    dsh@0.1.0 ✅ 兼容 标准 patch ✅
    dsh@0.2.0 ⚠️ 待验证 待实测(API 可能在变)
    dsh@0.3.0+ ❓ 未知 尚未发布

    💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正

    元数据

    License
    MIT
    npm
    @hunterchcl/dsh-usage-meter
    Repo
    git+https://github.com/HunterCHCL/dsh-usage-meter.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-locale","@deepseek-ai/dsh-client-ui-slots","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-ui-conversation","@deepseek-ai/dsh-client-web-react","@deepseek-ai/dsh-client-connection","@deepseek-ai/dsh-api-remotes"]}}