DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-balance-corner

d

dsh-balance-corner

Manifest valid

DeepSeek account balance at the right end of the sidebar account row; click to open the usage page or top up.

UI (client)hasBundlePatch

dsh-balance-corner

只做一件事:显示余额。 没有别的功能,也不占新的地方——不长出面板、不新占一行、不塞额外按钮,只是把金额填进侧边栏账号行右边本来就空着的那点位置。抬眼即见,不打断手上任何操作。

It does one thing: show the balance. Nothing else, and no extra real estate — no panel, no extra row, no added chrome; it only fills the empty space on the right of the sidebar's account row. Glance and go, without interrupting anything you are doing.

DeepSeek 账号余额显示在侧边栏左下角账号行的最右端,例如 ¥43.52。

A DeepSeek account balance at the right end of the sidebar's account row — for example ¥43.52.

余额显示在侧边栏左下角账号行最右端

在 DSH 里的整体位置(红框处就是余额;对话内容与头像已打码):

整体位置:红框处为侧边栏账号行最右端的余额

它是什么

  • 位置:侧边栏页脚、账号(头像)那一行的最右端,和头像同一行。
  • 内容:充值余额(人民币优先,没有人民币时显示第一个钱包)。
  • 悬停:充值余额、赠金余额、更新时间;余额不足时提示去充值,正常时提示点击查看用量。
  • 点击:交给 ego 浏览器插件(dsh-ego-browser)在它的 Agent 浏览器里打开平台用量页——那里带着你导入的 Chrome 登录态。没装 ego、或三条路由都不通时,自动回退到右侧内置浏览器。余额不足时打开充值页;读取失败时点击表示重试。
    • 第一次用要在 Agent 浏览器里登录一次 platform.deepseek.com(面板上的「复用 Chrome 登录态」可以一键带过来);登录态存在 ego 的持久 profile 里,之后不会再问。
  • < 5 元:金额变黄,点击直接去充值。
  • 不显示:账号未登录,或当前用的是 API Key 而不是 DeepSeek 账号;侧边栏收成窄栏时也不显示。

安装

dsh plugin add dsh-balance-corner

或在桌面端/市场的插件页里搜 dsh-balance-corner 安装。装完刷新页面。

依赖 DSH 0.2.2 系列(engines.dsh: ^0.2.2-rc.1),需要登录 DeepSeek 账号;用 API Key 的配置不会显示余额——那部分没有账号余额可读。

数据从哪来

走 DSH 自己的账号服务 remote.account.getBalance,也就是「设置 → 账号」用的同一条通路:请求由 Host 发出,用本机已登录的账号授权,页面里不保存也不传输任何密钥;Host 只把平台返回的 normal_wallets / bonus_wallets 的币种和余额字符串投影给页面。

刷新:打开时读一次、每 2 分钟一次、窗口重新聚焦时(上次读取超过 1 分钟)、以及任一会话有活动时(最多每 30 秒一次)。

实现说明(会改 DSH 内部结构的人看)

  • 宿主槽位 sidebar.footer.action 只用来拿一个稳定的挂载点;芯片本身用 react-dom 的 createPortal 挂到账号行元素末尾([class*="_triggerRow"],退化为 button[aria-haspopup="dialog"] 的父元素),因为账号行是 shell 写死的 [设置触发器][连接指示灯][更新角标],没有尾部插槽。
  • 账号行会被 shell 重渲染替换,组件每 2 秒检查挂载点是否还连着 DOM,掉了就重挂;一直找不到就退回显示在页脚行。
  • 客户端插件访问 Remote 必须同时注入 remote 和 remote.account,否则会报 cannot get property "remote" without inject。
  • 与 ego 的绑定走它自己的 HTTP 路由,按顺序试三条:POST /api/ego/navigate(需要观察窗正在 watch,面板开着时最快)→ POST /api/ego/open-window(走 executor 跑一段 ego 脚本,不依赖面板,会新开一个真实窗口)→ 2.5 秒后再试一次 navigate(覆盖 cast worker 冷启动)。路径前缀取页面 <base href>(与 ego 客户端同一套算法,反代挂子路径时不失效)。成功后会 sidebarRight.openTab('ego-browser:watch') 把面板露出来。任何一步都不成(路由 404、ok:false、网络异常)都落到内置浏览器那条旧路径,所以没装 ego 的用户行为不变。
  • 因此这个插件对 DSH 的账号行 DOM 结构有依赖。将来大改版若换了结构,它会退回页脚显示而不是消失。

边界

  • 只能显示,不能充值:真正的充值仍在平台页面完成。
  • 余额是平台「用量」页的充值余额,不是 token 计数;赠金单独统计,不计入充值余额。
  • 未声明数据收集:插件不发遥测,只调用 remote.account 读余额与账号状态。

License

MIT

Comments

Loading…

Similar plugins

dsh-sidebar-usage

by YQzhangsan

Keeps DeepSeek usage and account balance in a bar at the bottom of the window.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 26, 2026

dsh plugin --profile web add dsh-sidebar-usage

by dsh-plugin-lab

DSH plugin: shows your DeepSeek account balance at the bottom of the left sidebar (native UI)

Tools & CapabilitiesManifest valid

★ 4

↓ 1.4k/wk

MIT

TypeScript

Nov 14, 2026

dsh plugin --profile web add dsh-ds-balance

Shows the remaining DeepSeek account balance in the composer dock, right after the cache-hit reading, and links to the Platform usage page. Requires a signed-in DeepSeek account; API-key-only setups s

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

dsh plugin --profile web add dsh-plugin-account-balance

Real-time DeepSeek account balance in the sidebar footer with a 5-day spending chart.

Tools & CapabilitiesModels & ProvidersManifest valid

★ 0

↓ 524/wk

dsh plugin --profile web add dsh-balance

DeepSeek account balance in the dsh web sidebar footer with live config hot reload and an editable Settings → Plugins card.

Tools & CapabilitiesTerminal & ClientsModels & ProvidersManifest valid

★ 1

↓ 114/wk

MIT

JavaScript

dsh plugin --profile web add @choi-p/dsh-deepseek-balance

by novaschai7

DeepSeek account balance, today's token usage and estimated spend in the dsh Web client sidebar. · 在 dsh 侧边栏显示 DeepSeek 余额、今日 token 用量与花费估算。

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 30, 2026

dsh plugin --profile web add dsh-plugin-balance-ui