← 返回列表
D

dsh-balance-sidebar

v0.1.0 · 2 天前发布

DeepSeek API 余额实时显示插件:侧边栏余额行(设置上方)+ 设置→插件 明细卡片,25 秒自动刷新,复用 Harness 已配置的凭据

dshdsh-plugindeepseekdeepseek-harnessbalanceplugin

README

# dsh-balance-sidebar

DeepSeek Harness 插件:实时显示 DeepSeek API 账户余额

  • 侧边栏"设置"上方一行:● DeepSeek ¥x.xx + 更新时间 + ↻ 立即刷新(收起侧边栏时显示数值,点击即刷新)

  • 设置 → 插件 → 可配置插件:余额明细卡片(总余额 / 充值 / 赠金 / 可用 / 更新时间)

  • 每 25 秒自动刷新(Host 另有 20 秒缓存)

  • API Key 不出本机:复用 Harness 已配置的凭据(llm-deepseek 设置 → DEEPSEEK_API_KEY 凭据库),浏览器只访问同源路由 /dsh-balance
  • 安装

    从 npm(发布后)

    sh
    dsh plugin --profile web add dsh-balance-sidebar

    从源码 / 本地目录

    sh
    dsh plugin --profile web add ./dsh-balance # 相对路径以调用目录为锚点

    或 file: 形式


    dsh plugin --profile web add "file:D:/path/to/dsh-balance"

    安装后重启 dsh web 即生效(dsh.bundle.patch 声明会自动把本插件的 cordis.patch.yml 并入 profile 层栈)。

    卸载

    sh
    dsh plugin --profile web remove dsh-balance-sidebar

    依赖要求

    | 依赖 | 说明 |
    | --- | --- |
    | DeepSeek Harness | `>= 0.1

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