← 返回列表
D

dsh-deepseek-quota-bar

v0.5.0 · 3 天前发布

DeepSeek API quota widget for the dsh web GUI: floating bottom-right card with a blood-bar of remaining balance vs month-opening balance, plus today/month spend and current conversation cost (fork of dsh-deepseek-quota).

dshdsh-plugindeepseekdeepseek-harnesspluginquotabalanceusagecostweb

README

dsh-deepseek-quota-bar

DeepSeek API 额度血条插件 for DeepSeek Harness (dsh) web GUI:
右下角悬浮卡片,血条直观显示「余额 / 本月额度」,并展示今日与本月使用量(官方数据优先)。

A floating bottom-right widget for the dsh web GUI: a blood-bar of your remaining
DeepSeek API balance vs the month-opening balance, plus today's and this month's
spend (official platform data when configured).

功能 Features

  • 🩸 血条:剩余比例 = 当前余额 / 月初余额快照(≥50% 绿 / ≥20% 橙 / <20% 红)

  • 📅 今日/本月使用量:配置 DEEPSEEK_PLATFORM_TOKEN 后为官方精确数据;未配置时自动降级为余额差值估算

  • 💬 当前对话费用:按官方价格表(含峰谷定价)对会话日志计价,含安装前历史

  • 🖱️ 可拖动:按住卡片任意位置拖动,位置持久化(localStorage)

  • 🪟 透明背景:不遮挡视野

  • 📉 可折叠:一键折叠为只显示血条的迷你卡,再点展开

  • 🌗 跟随浅色/深色主题

  • ⏱️ 余额每 60s 自动刷新,支持手动刷新
  • 安装 Install

    ```sh
    dsh plugin --profile web add github:jiangli07/dsh-de

    查看完整 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
    dsh-deepseek-quota-bar
    Repo
    git+https://github.com/jiangli07/dsh-deepseek-quota-bar.git
    Engines
    {}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"platform":"web","inject":["slots"]}}