DSH Plugins Marketplace

DSH Plugins

Plugins

/

UI & Experience

/

dsh-price-chip

D

dsh-price-chip

Identified

Sidebar chip showing the current DeepSeek price period (peak or off-peak), the selected model's price per million tokens for cache hits, cache misses and output, the account balance and today's spend.

dsh-price-chip

A DeepSeek Harness sidebar chip that answers two questions at a glance: which price period is it right now, and what does the model I am talking to cost.

The chip sits at the bottom of the left sidebar. It shows:

  • the current DeepSeek price period — off-peak or peak (Beijing time);
  • the model bound to the open session;
  • the model's price per 1M tokens for cache hit / cache miss / output, in CNY;
  • the DeepSeek account balance and today's spend, refreshed every 30 seconds.

Clicking the chip opens a popover with the three prices and their unit, the account balance, today's spend, and when the price period next switches.

Install

dsh plugin add github:DQS-PUBLIC/dsh-price-chip

Then restart the harness. The chip appears in the sidebar footer; the collapsed sidebar shows a ¥ badge instead of the text.

Requires DeepSeek Harness 0.2.x with the web UI.

Price periods

DeepSeek bills discounted prices outside its peak windows. The plugin treats 09:00–12:00 and 14:00–18:00, Monday to Friday, Beijing time as peak, and skips mainland China's statutory holidays (the holiday table is in client.js / index.js and needs a yearly edit). Everything else is off-peak.

Prices per 1M tokens (CNY, off-peak / peak):

ModelCache hitCache missOutput
deepseek-flash0.02 / 0.041.00 / 2.004.00 / 8.00
deepseek-v4-pro0.15 / 0.304.50 / 9.0013.50 / 27.00

The table is copied from the official pricing page (https://api-docs.deepseek.com/zh-cn/quick_start/pricing/) and is editable in one place per half of the plugin if prices change.

How the numbers are produced

  • Balance comes from the signed-in DeepSeek account through the harness account service. When no account is connected the chip shows —.
  • Today's spend is computed from this machine's session logs: every assistant message that reported token usage today is priced at the rate that applied at its own timestamp, then summed. Sessions are read through sessionQuery, cached for 20 seconds on the host.
  • The chip polls one same-origin route, /model-pricing/usage, every 30 seconds. Nothing leaves the machine, and the plugin has no third-party dependencies and no build step.

Layout

index.js          host half: prices, holiday table, today's-spend aggregation, route
client.js         client half: sidebar slot, chip, popover, styles, zh/en strings
cordis.patch.yml  loader row
locale/           zh.json, en.json
icon.svg          source icon

License

MIT

Comments

Loading…

Similar plugins

dsh-deepseek-billing-period

by zi7tian

DeepSeek Harness (dsh) web plugin: shows whether DeepSeek API pricing is peak or off-peak, plus a countdown to the next switch, below the composer.

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Oct 28, 2026

dsh plugin --profile web add dsh-deepseek-billing-period

by Arun1016

Account balance and per-session cost pill for DeepSeek Harness (dsh) web GUI: official peak/off-peak pricing, per-model breakdown, no credentials stored.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 0

MIT

TypeScript

Oct 18, 2026

dsh plugin --profile web add dsh-cost

by LucienLL

DeepSeek Harness plugin: peak/off-peak price watch, live account balance with tiered low-balance alerts, and a top-up button for the main web UI

Models & ProvidersManifest valid

★ 0

MIT

JavaScript

Aug 26, 2026

dsh plugin --profile web add dsh-peak-price-panel

by ybbms777

DeepSeek Harness (DSH) plugin: deepseek_pricing_tier — is the DeepSeek API on peak (full price) or off-peak (half price) right now, and when does it flip. Zero network, no API key.

Manifest valid

★ 0

MIT

JavaScript

Oct 18, 2026

dsh plugin --profile web add dsh-deepseek-pricing

Shows DeepSeek peak/off-peak pricing status, a countdown to the next rate change, and the estimated session cost as inline text beside the model selector.

UI & ExperienceManifest valid

★ 0

dsh plugin --profile web add @imnotndesh/dsh-peak-pricing-warning

by GooDAnDReaDY

Session cost chip in the DeepSeek Harness conversation header showing live token usage by bucket, peak/off-peak tariff pricing, and a countdown to the next tariff switch.

Tools & CapabilitiesUI & ExperienceTerminal & ClientsSessions & MessagesModels & ProvidersManifest valid

★ 0

↓ 1.1k/wk

MIT

JavaScript

Sep 25, 2026

dsh plugin --profile web add @goodandready/dsh-cost-meter