← 返回列表
D

dsh-plugin-quota

v0.1.0 · 2 天前发布

DeepSeek account quota (balance) and session token usage for the DeepSeek Harness web UI

deepseekdeepseek-harnessdshdsh-pluginquotabalancetokenusage

README

dsh-plugin-quota

DeepSeek 账户额度(余额)与 Token 用量,以独立插件形式接入 DeepSeek Harness 的 Web 界面。

Account quota (balance) and session token usage for the DeepSeek Harness web UI, as a standalone plugin.

功能 / Features

  • 账户额度 / Account quota:实时查询 DeepSeek 账户余额(总额度 / 赠送额度 / 充值额度,按币种),带可用性状态、错误提示与重试。

  • Token 用量 / Token usage:当前会话的累计消耗(未缓存输入 / 输出 / 缓存读取 / 缓存写入 / 合计)。
  • 安装后在 设置 → 额度 分区查看(Settings → Quota)。

    安装 / Install

    sh
    dsh plugin --profile web add dsh-plugin-quota

    安装完成后重启 dsh web(或重启桌面 App),在 设置 → 额度 中查看。

    尚未发布到 npm 时,可直接从 GitHub 安装(等价):

    >
    sh

    dsh plugin --profile web add github:ArvenWang/dsh-plugin-quota


    >
    开发期安装本地副本:dsh plugin --profile web add /path/to/dsh-plugin-quota

    移除:

    sh
    dsh plugin --profile web remove dsh-plugin-quota

    工作原理 / Ho

    版本兼容矩阵

    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-plugin-quota
    Repo
    Engines
    {"node":">=22"}
    Weekly DL
    0
    Monthly DL
    0
    dsh.bundle
    {"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-settings","@deepseek-ai/dsh-client-locale"],"platform":"web"}}