DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-usage-popup

d

dsh-usage-popup

Manifest valid

Peak / off-peak reminder at the start of every turn, then the turn's cost, average cache hit rate and daily total, with a live period badge in the composer status row. Practical and beautifully design

UI (client)hasBundlePatch

dsh-usage-popup

A glassmorphism usage popup for DeepSeek Harness. It tells you what the current hour costs before you spend it, and what the last turn did spend after it lands.

  • Peak / off-peak reminder at the start of every turn — red for peak hours, green for off-peak, with a live countdown to the boundary.
  • Turn receipt when the reply lands — what this turn cost, its average cache hit rate, its tokens, and the running daily total.
  • Status badge at the left of the composer status row — the current period and its countdown, always visible, no popup required.
  • Built-in DeepSeek flash and Pro pricing, plus fully custom rates for any other model.
  • Turn the popup, the badge, the glass blur, the chime, the daily total and the dwell time on or off in Settings → 消耗弹窗 / Usage popup.

Install

dsh plugin add dsh-usage-popup

Or in the GUI: Plugins → Add plugin and enter dsh-usage-popup.

Peak and off-peak

The built-in schedule follows DeepSeek's published policy:

PeriodWhen
PeakMonday to Friday, 09:00–12:00 and 14:00–18:00 (UTC+8), excluding statutory holidays
Off-peakEverything else — weekday nights, all weekend, all holidays

Off-peak bills at 50% of the peak rate. Holidays are carried in the source for 2025 and 2026; a custom window can be set in Settings when your provider differs.

Cost and cache hit rate

Nothing is billed by a remote service; every number is computed locally from the session's own tokenUsage projection:

context = uncachedInput + cacheRead + cacheWrite
hitRate = cacheRead / context
cost    = uncachedInput/1e6 * missPrice
        + cacheRead/1e6     * hitPrice
        + output/1e6        * outputPrice

Prices are per million tokens, in yuan by default. The three fields are editable, and both the miss and hit prices are halved off-peak for the built-in presets.

A turn is measured as the delta between the projection when the turn started and when it finished, so the receipt describes that turn rather than the whole conversation.

Privacy

The plugin reads token counts that Harness already keeps for the open session and stores your preferences in the renderer's local storage. It makes no network requests, sends nothing anywhere, and needs no credentials. Turning it off removes every card and badge and leaves no trace in the transcript.

Development

# render the component tree to static HTML, then screenshot it
node test/preview.mjs

# 93 assertions over the popup, the badge, the settings page and the confirm dialog
node test/client.test.mjs

The package has no build step: client.js is the browser half, index.js is a no-op Host entry, and the bundle patch inserts the single plugin row.

License

MIT

Comments

Loading…

Similar plugins

dsh-billing-badge

by devacc8

Peak and off-peak billing season in the composer statistics row, right after the cache-hit reading, with a coloured dot, a countdown to the next switch, and a panel that shows the account balance spli

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 1

MIT

JavaScript

Oct 17, 2026

dsh plugin --profile web add dsh-billing-badge

by jeff072333

DSH 插件:输入框上方显示本次对话花费、账户余额与当前峰谷时段,每条回答末尾显示该轮消耗 | DSH plugin: live spend, balance and peak/off-peak card

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Nov 3, 2026

dsh plugin --profile web add dsh-live-spend

by log-li

Peak / off-peak rate badges for the model selector (every row) and the composer tool row, judged per provider by its own time zone and schedule; the live catalog is served from the host over a fenced

Development & InfrastructureModels & ProvidersManifest valid

★ 1

↓ 705/wk

MIT

TypeScript

Sep 21, 2026

dsh plugin --profile web add dsh-peakrate

Sidebar row with today's tokens and estimated spend for DeepSeek Harness; the dialog adds 24h, 7-day, 30-day, 12-month and per-year charts, a contributions heatmap, per-request peak/off-peak pricing f

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

MIT

JavaScript

dsh plugin --profile web add dsh-usage-badge

by Hann428

DeepSeek Harness Usage tab for balance, official peak/off-peak pricing, live countdown, and platform usage link.

Tools & CapabilitiesManifest valid

★ 0

BSD-3-Clause

TypeScript

Oct 10, 2026

dsh plugin --profile web add dsh-hann-usage-dashboard

by SAS-159

Adds a recap card under the composer for the current session: turns, steps, tool calls grouped by name, the uncached / cache-read / cache-write / output token split, the cache-hit rate, and a cost ran

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Nov 12, 2026

dsh plugin --profile web add dsh-session-recap