DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Balance Pie — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins
B

dsh-balance-pie

Balance Pie

DSH plugin: A draggable floating balance pie chart showing the daily starting balance, each project's actual usage (calculated based on the actual decrease in balance), and the remaining balance; supports automatic recharge detection, allocation based on official peak/off-peak pricing, monthly histo

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add github:f1yan9/dsh-balance-pie#b665836afd3ab2cdd53a5a5d6bfbc8810a1a36bf
READMECompatibilityVersions

Description

DSH plugin: A draggable floating balance pie chart showing the daily starting balance, each project's actual usage (calculated based on the actual decrease in balance), and the remaining balance; supports automatic recharge detection, allocation based on official peak/off-peak pricing, monthly historical heatmaps, and Chinese/English switching.

Compatibility and provenance

Balance Pie is published as dsh-balance-pie and currently resolves to version 0.1.0. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
github
Registry updated
8/30/2026

Versions

0.1.0stable
8/30/2026

Related plugins

Loading related plugins…

Latest
0.1.0
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
Unavailable
Files
Unavailable
Surface
web
License
MIT
Source
github
GitHub
★ 1
Weekly downloads
0
Last push
8/30/2026
View source ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with the current session provider's today usage on the sidebar entryWhale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.

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