DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

Plugin Api Balance — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
P

dsh-plugin-api-balance

Plugin Api Balance

侧栏实时额度小卡:显示 DeepSeek 账户总额度(充值 + 赠送,多币种合计),旁边并排高峰/空闲计价时钟(高峰红色、空闲醒目绿色)。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:geitaHer0/dsh-plugin-api-balance#6d5ed148edee0e4097625a4fe9d032ed4fe76f34
README兼容性版本
Plugin screenshot

兼容性与来源证明

Plugin Api Balance 以 dsh-plugin-api-balance 发布,当前版本为 0.1.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/10/19

版本

0.1.0stable
2026/10/19

相关插件

正在加载相关插件…

最新版
0.1.0
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 0
周下载
0
最近提交
2026/10/19
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Cost Meterdsh-cost-meterDeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(14 家,含 WorkBuddy 官方积分、OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询Codex Subscriptiondsh-codex-subscription在 DeepSeek Harness 中通过 OAuth 使用 ChatGPT 和 Codex 订阅,支持配额、安全重置、网络搜索、图像和快速模式,并可通过 ChatGPT 移动应用(Beta)控制 DSHConnect Workbuddydsh-connect-workbuddy把本机登录的 WorkBuddy 模型接入 DeepSeek Harness,并提供只读的积分概览与模型管理。Deepseek Web Logindsh-deepseek-web-login非官方 DSH 插件:将 chat.deepseek.com 网页模型用作 DSH LLM 提供商(浏览器登录捕获 + PoW 求解 + SSE 流式传输 + 基于提示的工具调用),提供商路由为 deepseek-web

README

dsh-plugin-api-balance

中文简介

在 DSH 侧栏底部放一枚实时账户额度小卡:读取 DeepSeek 账户的充值余额与赠送余额,按币种求和后显示总额度(多币种用 + 连接),悬停展开每个钱包的明细与更新时间,点击刷新。

额度旁边并排一枚计价时段时钟:显示北京时间,并按 DeepSeek 峰谷定价(北京时间工作日 09:00–12:00、14:00–18:00,法定节假日除外)显示「高峰」(醒目红色 + 脉冲圆点)或「空闲」(绿色),悬停可看完整窗口、下次切换时间与倒计时。

  • 数据复用官方 account/getBalance,不新增凭证或网络路径;

  • 默认每 15 秒轮询,页面重新可见和点击时也会刷新;

  • 未登录 / 读取失败 / 无余额分别显示对应状态,不臆造 0;

  • 配置项 refreshIntervalMs(默认 15000,低于 5000 回退默认值)。

  • image

Live DeepSeek account credit chip for the DSH Web client sidebar.

What it does

The plugin mounts one component into the sidebar's sidebar.footer.action seat and keeps it current:

  • reads the account's remaining credit through the existing account/getBalance Remote (@deepseek-ai/dsh-api-account-controller) — the same call the Settings → Account page uses, so no new host code, credentials, or network path exists;
  • polls every refreshIntervalMs (default 15 s), re-reads whenever the browser tab becomes visible again, and re-reads on click;
  • shows the total credit: every wallet (topped-up and granted) is summed per currency, so the chip reports what the account can actually spend. A multi-currency account shows one total per currency joined with + (¥1.00 + $2.00); amounts use the Platform Web client's currency format (two decimals, digit grouping, <0.01 for positive sub-cent amounts);
  • opens the shipped HoverCard primitive on hover or keyboard focus: a heading, the 总额度 / Total credit row, a divider, one label / amount line per wallet, and a footer with the freshness stamp and the refresh hint. The primitive owns the card's surface, portal, placement, viewport clamping, and pointer grace, so the card cannot be clipped by the layout frame and the pointer may rest on it;
  • renders 未登录 / 不可用 when the account is signed out or the read fails, instead of inventing a zero balance. The card explains the same state;
  • sits a peak-tariff clock beside the credit chip: the current Beijing time with a 高峰 / 空闲 tag, the countdown to the next switch in the tooltip, and a red warning pill with a pulsing dot while DeepSeek's peak price window is active.

Configuration

FieldDefaultMeaning
refreshIntervalMs15000Poll interval in milliseconds; values below 5000 fall back to the default.

Peak-tariff clock

DeepSeek publishes a peak/idle tariff in Beijing time (UTC+8): calls are peak Monday to Friday 09:00–12:00 and 14:00–18:00, excluding Chinese statutory holidays; every other period — weekends and holidays included — is idle, at half the peak price.

The clock beside the chip shows the current Beijing time and the active period. During peak the pill turns warning red (red text, red ring, red 高峰 tag, and a pulsing dot); the native tooltip carries the full windows and the countdown to the next switch. In the collapsed rail the clock is hidden, like the chip's label and amount.

The holiday dates live in lib/client.js as STATUTORY_HOLIDAYS, copied from the State Council's annual arrangement notice (currently 2026, 国办发明电〔2025〕7号). When the next year's notice is published, append its holiday dates there; a year without an entry falls back to the weekday + time rules only.

Installing as a profile bundle

The package is meant to live in a durable home outside the session workspace (for example ~/.dsh/plugins/dsh-plugin-api-balance):

  • add it to the profile's dependencies as link:<that path>;
  • append dsh-plugin-api-balance to dsh.profile.bundles in the profile's package.json;
  • let the package manager create the node_modules link, then restart DSH.

dsh.bundle.patch points at this package's cordis.patch.yml, which inserts the api-balance row. That is why the row shows up in the sidebar's Plugins page as a manageable bundle row (per-row enable/disable, whole-bundle enable, uninstall) instead of being an untracked file:/// row in the user's patch layer.

The row config lives in the bundle layer; a user-patch override with the same id still wins, so refreshIntervalMs can be tuned per installation without touching the package.

Layout

PathRole
lib/index.jsNode half. Empty apply; the row exists so the Loader mounts the package.
lib/client.jsBrowser half: the hand-written window.__ModuleLoader__.load bundle (dictionaries, snapshot store, chip component, hover-card content, peak-tariff clock, plugin body).
cordis.patch.ymlBundle patch inserting the api-balance row.

The browser half only requests baseline modules (react, react/jsx-runtime, and @deepseek-ai/dsh-client-ui-primitives for its HoverCard), so it needs no build step and no dsh.client.external entries. Editing lib/client.js is picked up live: client-hmr stat-polls every row's bundle and republishes it through /plugins/events; the browser reloads that row's module graph in place, so a rewritten bundle shows up without a manual page refresh.