DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

@dougen/dsh-deepseek-usage

Deepseek Usage

DeepSeek Harness 侧边栏插件:显示当前提供商的账户余额或订阅使用情况(DeepSeek、Moonshot/Kimi、GLM、OpenRouter、Kimi Coding、OpenCode、MiniMax,以及 Claude Code 和 Codex OAuth 令牌)、提供商查询状态页面,以及每个令牌

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add @dougen/dsh-deepseek-usage@0.19.2
README兼容性版本

兼容性与来源证明

Deepseek Usage 以 @dougen/dsh-deepseek-usage 发布,当前版本为 0.19.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/11/4

版本

0.19.2stable
2026/11/2
0.19.1stable
2026/11/2
0.18.16stable
2026/10/29
查看其余 19 个版本收起版本
0.18.15stable
2026/10/28
0.18.14stable
2026/10/28
0.18.13stable
2026/10/28
0.16.0stable
2026/10/27
0.15.0stable
2026/10/25
0.14.2stable
2026/10/25
0.14.1stable
2026/10/25
0.14.0stable
2026/10/24
0.13.0stable
2026/10/23
0.12.1stable
2026/10/16
0.12.0stable
2026/10/16
0.11.1stable
2026/10/14
0.11.0stable
2026/9/29
0.10.2stable
2026/9/24
0.10.1stable
2026/9/19
0.10.0stable
2026/9/19
0.9.2stable
2026/9/19
0.9.1stable
2026/9/19

相关插件

正在加载相关插件…

最新版
0.19.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
217.6 kB
文件数
12
Surface
web
许可证
MIT
发布源
npm
GitHub
★ 8
周下载
7,115
安全扫描
✓ v0.19.2 扫描通过
最近提交
2026/11/2
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题
0.4.4stable
2026/8/23

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — 在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在内的前沿模型,桌面端另有 EAC 协付渠道;2.0 起接入 LobsterAI、Qoder、TRAE、Cline、Loomy、Raccoon、MiniMax、ZCode、Gemini 十个账号渠道(原有匿名免费通道保留)(登录、账号池、积分领取、本地 OpenAI 网关与局域网转发、数据看板与运行日志),六页毛玻璃界面统一呈现。Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Client Ui Model Capabilities@linxin666/dsh-client-ui-model-capabilities为自定义 pi-ai 提供商声明每个模型的能力(图像输入和推理力度),可直接在 Models 设置卡片中编辑;写入官方 llm-pi-ai 设置命名空间,不更改 DSH 源代码。Codex Subscriptiondsh-codex-subscription在 DeepSeek Harness 中通过 OAuth 使用 ChatGPT 和 Codex 订阅,支持配额、安全重置、网络搜索、图像和快速模式,并可通过 ChatGPT 移动应用(Beta)控制 DSH

README

dsh-deepseek-usage icon

dsh-deepseek-usage

中文文档

A DeepSeek Harness (DSH) sidebar plugin that shows, right in the DSH main window, how much money or quota is left on the account behind the currently selected model, and what that model costs right now — without leaving DSH. It supports nine providers and a Chinese / English UI.

The sidebar card: balance, current unit prices and the billing-window dot

Balance mode (DeepSeek, Kimi, Z.ai, OpenRouter…): the account balance, the current model's input / cache / output unit prices, and the peak / off-peak indicator in the top-right corner.

Subscription usage: remaining quota per billing window

Subscription mode (Kimi For Coding, OpenCode, MiniMax, Claude Code / Codex…): one D-shaped gauge per usage window — the number in the middle is the remaining quota, the grey arc is what has been used, the green arc is what is left (red once 80% is used), and the badge names the window (5H = 5-hour, 7D = weekly, 1M = monthly).

What this plugin does

DSH lets you switch between many model providers, but each provider hides its account status on a different website. This plugin resolves the provider behind the model you have selected in DSH and puts a live status card for that account at the bottom of the sidebar:

  • Account reading. Two forms, depending on what the provider offers:
    • Balance providers (DeepSeek, Moonshot / Kimi, Z.ai, OpenRouter) publish the account balance, so the card shows it with its currency symbol (¥ / $).
    • Subscription providers (Kimi For Coding, OpenCode, MiniMax, Claude Code, OpenAI Codex) publish no balance, only usage windows. The card draws one gauge per window — 5-hour, weekly, monthly, whatever the endpoint returns — and shows how much of each quota remains, turning red once 80% is used.
    • The card always follows the selected model, so switching provider switches the reading; no per-provider setup beyond the credential.
  • Unit prices of the current model. The card lists input, input-cache and output prices for the billing period in effect right now, in the provider's own currency. When a provider bills by time of day — DeepSeek's official peak / off-peak schedule (Mon–Fri 09:00–12:00 and 14:00–18:00 Beijing time is peak, evenings, weekends and holidays are off-peak) or OpenRouter's time-of-day pricing — an orange / green dot marks which window is active, and hovering it shows the time left until the next switch.
  • Reliable numbers. It refreshes every 30 seconds, immediately on click and when the model changes. Until the first answer arrives it shows a placeholder (—) rather than a guess, and a model the price table does not cover gets no price at all. The interface follows the DSH language (Chinese / English) and light / dark theme.

[!NOTE] GitHub Copilot, Google, Amazon Bedrock, Azure and other credential kinds this plugin deliberately does not handle will get a short reason in the card instead of a number.

Installation and usage

Step 1 — configure the provider's credential. The plugin queries each provider with the key you already use for that provider: fill it on the Models page in DSH, or export it as an environment variable (DEEPSEEK_API_KEY, MOONSHOTAI_API_KEY, ZAI_API_KEY, OPENROUTER_API_KEY, KIMI_CODING_API_KEY, OPENCODE_API_KEY, MINIMAX_API_KEY, …). The deepseek-account route is the exception: it needs no key — sign in to DeepSeek inside DSH and the card reads that account grant.

Step 2 — install the plugin into the web profile:

dsh plugin --profile web add @dougen/dsh-deepseek-usage

Step 3 — restart dsh web and open the URL it prints. The card sits at the bottom of the sidebar, below the Cordis panel button; click it to refresh right away.

Using a Claude Code / OpenAI Codex subscription (OAuth)

An API key cannot read these subscriptions — they share an OAuth token instead. When DSH detects Claude Code or OpenAI Codex (or a provider mapping targets one of them), a token field appears on the plugin's own page (Plugins → @dougen/dsh-deepseek-usage), under the provider mappings. Paste the token there and the sidebar card starts reporting that subscription's remaining quota:

  • Claude Code — on a machine signed in to Claude Code, copy claudeAiOauth.accessToken from ~/.claude/.credentials.json (on macOS: the Claude Code-credentials keychain item). A token minted by claude setup-token also works.
  • OpenAI Codex — copy tokens.access_token from ~/.codex/auth.json into the token field, and tokens.account_id into the account ID field.

Tokens are stored through DSH's credential service (~/.dsh/.credentials.yaml) and never leave this machine: no response, log line or page element carries one back. The Clear button removes them again.

Uninstall
dsh plugin --profile web remove @dougen/dsh-deepseek-usage

Then restart dsh web.

Supported DSH versions

Use a plugin version that matches your DSH:

DSH versionPlugin version to install
0.2.x (from 0.2.0-rc.1 on)0.11.0 or later
0.1.x (from 0.1.0-rc.6 on)0.10.x, or 0.11.0 or later

Run dsh --version to check your DSH version. Installing without an explicit version picks the newest compatible release automatically; if the newest release does not match your DSH, pin an exact one, e.g. @dougen/dsh-deepseek-usage@0.10.2.


中文文档

一个 DeepSeek Harness(DSH) 的侧边栏插件:在 DSH 主界面就能看到当前选中模型背后的账户还剩多少钱 / 多少额度、这个模型此刻什么价。覆盖九家提供商,界面支持中文与英文。

这个插件是干嘛的

DSH 可以切换很多家模型提供商,但每家的账户状况藏在不同的网站后台。这个插件会解析你在 DSH 里当前选中的模型属于哪家提供商,把那个账户的实时状态卡片放进 DSH 主界面侧边栏底部:

  • 账户读数,按提供商公开的内容分两种形态:
    • 余额类(DeepSeek、Moonshot / Kimi、智谱 Z.ai、OpenRouter)公开账户余额,卡片直接显示带币种符号(¥ / $)的余额。
    • 订阅类(Kimi For Coding、OpenCode、MiniMax、Claude Code、OpenAI Codex)没有余额可查,只公开用量窗口。卡片按接口返回的窗口各画一个仪表盘——5 小时、周、月,返回几个画几个——显示每份额度还剩多少,已用达到 80% 时剩余弧变红。
    • 卡片始终跟随当前选中的模型,切换提供商即切换读数;除凭据外不需要针对某家提供商再做任何配置。
  • 当前模型的单价。卡片列出输入 / 输入缓存 / 输出的单价,按此刻生效的计费时段取值,币种跟该提供商保持一致。有的提供商按时段计价——DeepSeek 官方峰谷(北京时间周一至周五 09:00–12:00、14:00–18:00 为高峰,夜间、周末、节假日为空闲)或 OpenRouter 的分时定价——卡片会用一枚橙 / 绿指示灯标出当前时段,悬浮可见距下次切换还剩多久。
  • 数字可靠。每 30 秒自动刷新,点击卡片或切换模型时立即刷新。第一次响应回来之前显示占位符 —,不猜数;价格表未收录的模型干脆不显示价格。界面跟随 DSH 语言(中文 / 英文)与明暗主题。

[!NOTE] GitHub Copilot、Google、Amazon Bedrock、Azure 等本插件有意不处理的凭据形态,卡片上会写明原因而不是给一个数字。

如何安装和使用

第 1 步——配置提供商的凭据。 插件用你给该提供商配的那把 Key 查询:在 DSH 设置的模型页填好,或导出为环境变量(DEEPSEEK_API_KEY、MOONSHOTAI_API_KEY、ZAI_API_KEY、OPENROUTER_API_KEY、KIMI_CODING_API_KEY、OPENCODE_API_KEY、MINIMAX_API_KEY 等)。deepseek-account 是例外:它不需要密钥——在 DSH 里登录 DeepSeek 账号即可,卡片读的是登录留下的授权。

第 2 步——把插件装进 web profile:

dsh plugin --profile web add @dougen/dsh-deepseek-usage

第 3 步——重启 dsh web,打开它打印的地址。卡片位于侧边栏底部、Cordis 面板按钮下方;点击卡片可立即刷新。

使用 Claude Code / OpenAI Codex 订阅(OAuth)

API Key 读不到这两种订阅——它们走 OAuth 令牌。当 DSH 检测到 Claude Code 或 OpenAI Codex(或有映射目标指向其中之一),插件详情页(Plugins → @dougen/dsh-deepseek-usage)的提供商映射下方会出现令牌填写框。把令牌粘贴进去,侧边栏卡片即可开始显示该订阅的余量:

  • Claude Code——在已登录 Claude Code 的机器上,从 ~/.claude/.credentials.json 复制 claudeAiOauth.accessToken(macOS 在钥匙串项 Claude Code-credentials 里)。claude setup-token 产生的令牌也能用。
  • OpenAI Codex——从 ~/.codex/auth.json 复制 tokens.access_token 填进令牌框,tokens.account_id 填进账号 ID 框。

令牌经 DSH 的凭据服务保存在本机(~/.dsh/.credentials.yaml),任何响应、日志、页面元素都不会把它带出去;点清除按钮即可删除。

卸载
dsh plugin --profile web remove @dougen/dsh-deepseek-usage

然后重启 dsh web。

支持的 DSH 版本

插件版本要与 DSH 版本相配:

DSH 版本应安装的插件版本
0.2.x(0.2.0-rc.1 起)0.11.0 及以后
0.1.x(0.1.0-rc.6 起)0.10.x,或 0.11.0 及以后

运行 dsh --version 查看你的 DSH 版本。不带版本号安装会自动取最新的兼容版本;最新版与你的 DSH 不匹配时,指定确切版本,例如 @dougen/dsh-deepseek-usage@0.10.2。