DSH Plugins Marketplace

DSH Plugins

Plugins

/

dsh-balance-chip

d

dsh-balance-chip

Manifest valid

Live DeepSeek API balance in the sidebar footer plus an always-visible bottom-right pill: status dot and amount, refreshed every 60 seconds, the API key is read from the local credential store and nev

UI (client)hasBundlePatch

dsh-balance-chip

Show your DeepSeek API balance directly inside the DSH app, in two places:

  1. Bottom-right pill – always visible, non-blocking (pointer-events: none), dot + amount, auto-refresh every 60 s
  2. Sidebar footer – beside Settings (dot in rail mode)

Screenshot: DeepSeek balance pill in the bottom-right corner of the DSH app

  • 🟢 green ≥ $5 · 🟠 orange < $5 · 🔴 red on errors
  • Tooltip shows currency and last update time
  • Your API key never ships with this plugin – it is read at runtime from your local DSH credential store, and the only network call goes to the official api.deepseek.com/user/balance endpoint from the host side.

Prerequisites

Your DeepSeek API key must be stored in the DSH credential store under the reference DEEPSEEK_API_KEY (this is the same place the built-in DeepSeek provider uses – the web UI's Models page writes it there). If the reference is missing, the displays show Key?.

Install

dsh plugin --profile web add github:AKUSH99/dsh-balance-chip

Restart dsh web (or use the market's one-click restart). No build step, no dependencies.

Requires dsh web 0.1.0-rc.6 or newer (same base as the plugin market).

Installation alternatives

  • Plugin Market: once listed, open Settings → Plugin Market in the app, search "balance", one-click install.
  • Prebuilt package: the latest release ships a ready tarball – the market offers it as the faster install path without any build step.

How it works

| Part | What it does | |---|---| | lib/index.js (host) | Resolves the key via the credentials service, polls GET https://api.deepseek.com/user/balance every 60 s, serves the cached state at GET /dsh-balance | | client/client.js (web) | Registers a sidebar.footer.action item and a shell.overlay pill that fetch /dsh-balance and render dot + amount |

No telemetry, no external dependencies, everything stays on your machine.

Troubleshooting

  • Key? in the chip/pill – no DEEPSEEK_API_KEY reference in your credential store. Store your key via the web UI's Models page (or the credentials service), then reload.
  • while loading – the first poll hasn't finished yet; wait a few seconds.
  • Red dot / error – the host couldn't reach api.deepseek.com/user/balance; check your network and key validity.

中文说明

在 DSH 应用内实时显示 DeepSeek API 余额:右下角常驻胶囊(不阻挡点击)+ 侧边栏底部状态点,每 60 秒自动刷新。余额低于 5 美元显示橙色,出错显示红色,悬停可见币种与更新时间。API Key 绝不内置:运行时从本机 DSH 凭证库读取,仅向官方余额接口发起请求。使用前请确认凭证库中存在 DEEPSEEK_API_KEY 引用(与内置 DeepSeek 提供方相同,网页端模型页面会写入)。

FAQ

Why two displays? The sidebar chip is subtle and always in reach; the bottom-right pill gives an at-a-glance status without blocking clicks (pointer-events: none). How fresh is the value? The host polls the official balance endpoint every 60 seconds; both displays refresh from that cached state. Does polling cost tokens? No – the balance endpoint is separate from the chat API and does not consume paid tokens. Currency? The official API reports the account currency; the displays show it as-is.

License

MIT

Compatibility

DSH 0.1.5-rc.2: errorDSH 0.1.6-alpha.1: errorDSH 0.1.5-rc.1: errorDSH 0.1.5-alpha.2: errorDSH 0.1.5-alpha.1: errorDSH 0.1.3-alpha.2: errorDSH 0.1.2-rc.1: errorDSH 0.1.2-alpha.5: errorDSH 0.1.2-alpha.4: errorDSH 0.1.2-alpha.3: errorDSH 0.1.2-alpha.2: error

Versions

Latest versionPublishedSize
1.0.1

Similar plugins

dsh-gateway-wallet

Live remaining balance for the current API key from Sub2API, New API, or official DeepSeek, plus actual spend when the site publishes it, not a local token estimate.

Tools & CapabilitiesManifest valid

0

dsh plugin --profile web add dsh-gateway-wallet

Real-time DeepSeek API usage: account balance with low-balance alerts (browser notification on threshold crossing), token & request stats (total/today/last-60s windows, per-model and per-session), est

Tools & CapabilitiesManifest valid

0

177/wk

dsh plugin --profile web add dsh-deepseek-usage

by 02Muller25

安装在deepseek的插件,能够实时显示当前api的余额,30秒自动刷新一次

Tools & CapabilitiesManifest valid

11

MIT

JavaScript

Aug 15, 2026

dsh plugin --profile web add api-balance

Shows DeepSeek API balance and tells whether the current moment is peak or off-peak pricing time, with a live countdown to the next switch.

Tools & CapabilitiesManifest valid

0

dsh plugin --profile web add dsh-balance

Permanent composer-dock balance card: real-time DeepSeek API account balance with 5-minute auto-refresh, a manual refresh button, and low-balance color warnings.

Tools & CapabilitiesManifest valid

0

dsh plugin --profile web add dsh-ibka-balance

DeepSeek API balance + per-call cost tracker: durable per-call cost ledger from real usage chunks with official Beijing peak/off-peak (x2) pricing, 60 s balance polling, and a sidebar footer action sh

Tools & CapabilitiesManifest valid

0

45/wk

dsh plugin --profile web add ds-balance