DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

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

dsh-balance-pie

Balance Pie

DSH 插件:可拖拽悬浮余额饼图,展示每日初始余额、各项目真实消耗(按余额实际下跌统计)与剩余余额;支持充值自动识别、官方峰谷计价分摊、按月历史热力图与中英文切换。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:f1yan9/dsh-balance-pie#b665836afd3ab2cdd53a5a5d6bfbc8810a1a36bf
README兼容性版本

兼容性与来源证明

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

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

版本

0.1.0stable
2026/8/30

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编码计划配额,并提供实时令牌使用记录,同时在侧边栏条目中显示当前会话提供商今日的使用量Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。

README

dsh-balance-pie

English · 中文

A DSH plugin · balance monitor / real spending / history heatmap

A plugin for DeepSeek Harness (DSH). It shows a draggable floating pie chart in the DSH web UI with the daily initial balance, real per-project spending and remaining balance; collapses to a sidebar bar; and ships a monthly history heatmap with a per-day spending table.

✨ Features

  • 🥧 Draggable floating pie: today's initial / real spending / remaining at a glance
  • 📊 Real spending: computed from actual balance decreases (top-ups/refunds handled automatically, survives restarts)
  • 💰 Top-up detection + one-click recharge button (jumps to the official top-up page)
  • 📅 History: GitHub-style monthly heatmap (days without records shown white) + per-day table (date / spend / remaining)
  • 🗂 Local persistence: daily state + per-day JSONL logs (throttled writes, 90-day retention)
  • 📐 Adaptive sidebar: horizontal bar when expanded, vertical bar + balance on the collapsed rail
  • ⚙️ Settings hub「Balance」: parameters & history sub-pages, live-applied
  • 🌐 i18n zh/en (auto-follows DSH language) with optional currency conversion for display

🚀 Quick Start

Prerequisites: DSH with a configured DeepSeek API key.

The repository ships a prebuilt bundle (lib/) and declares the dsh.bundle manifest — install it straight from GitHub, one line:

dsh plugin --profile web add github:f1yan9/dsh-balance-pie

Restart DSH web, then open the web UI — the floating pie appears bottom-right.

Uninstall:

dsh plugin --profile web remove dsh-balance-pie

Manual install: clone the repo (or place the package folder into $DSH_HOME/profiles/node_modules/dsh-balance-pie/) and append an insert block to the profile's cordis.patch.yml; restart DSH web. Rebuilding from source: node build.mjs (esbuild is auto-detected).

📖 Usage

  • Floating pie: drag to reposition; hover a slice for details; use — (minimize), ⚙ (settings), ↻ (refresh) and the recharge icon buttons.
  • Sidebar: minimized state becomes a bar chart (horizontal when expanded, vertical + balance on the narrow rail); click it to expand the pie back.
  • Settings(Balance): the parameters sub-page holds all options (polling, currency, prices, history, language…); the history sub-page shows the heatmap and table.

⚙️ Configuration

Edit in the settings drawer(Balance section), or via cordis.patch.yml in your DSH profile. Common options:

OptionDescriptionDefault
pollIntervalMsBalance poll interval10000 ms
pricesJsonPer-model off-peak prices (per 1M tokens)presets for deepseek-v4-flash
peakMultiplierPeak-hour price multiplier2
languageUI language (auto follows DSH)auto
displayCurrencyDisplay currency (converted)auto (account currency)
fxRatesJsonCNY→target-currency rates JSON{"USD":0.14,"EUR":0.13,"GBP":0.11,"JPY":20,"KRW":190}
topUpUrlRecharge page URLofficial top-up page

🛠 Development

node build.mjs        # rebuild lib/ (esbuild is auto-detected: HARNESS_ROOT → local pnpm store → npm i -D esbuild)
node test/run.mjs     # typecheck → build → smoke → unit

📁 Data Storage

Plugin data lives under $DSH_HOME/dsh-balance-pie/:

  • daily-state.json — daily state (anchor, real spending, top-up baselines, today's top-up total)
  • history/YYYY-MM-DD.jsonl — per-day history logs (90-day retention)

💱 Display conversion

Snapshot money fields (anchor/current/usedTotal/projects[].used/remaining/topUpToday) are converted by fxRatesJson into displayCurrency (auto = account currency, no conversion); language and displayCurrency ride the snapshot. The history route serves { records, fx: { displayCurrency, rate } } — records stay in the account currency, clients convert for display. topUpToday (Σ today's merged top-up/grant deltas) accrues, resets at midnight, and is restored on same-day restarts.

❓ FAQ

  • Spending doesn't match the bill? Spending is real (balance decreases); per-project amounts are split by estimated usage — calibrate prices in settings if needed.
  • Initial balance resets after restart? No — anchor and spending are persisted locally and restored on same-day restarts.
  • Top-up not reflected? Top-ups are detected on the next poll (default 10 s); already-spent historical top-ups cannot be retro-fixed.
  • Where is history stored? $DSH_HOME/dsh-balance-pie/history/ — remove the directory to clear all history.

📄 License

MIT