dsh-deepseek-cny-cost
Manifest valid★ 1DeepSeek Harness plugin: a live CNY cost estimate for the chat you are reading, priced with DeepSeek's peak / off-peak rates.
dsh-deepseek-cny-cost
See what the chat you are reading has cost, in CNY, inside the DeepSeek Harness Web GUI.
A small badge sits under the composer next to the session statistics:
≈¥0.0123
- The number is the running total for the chat you are looking at; switching chats switches the number, and it grows as the chat works;
- Hovering (or a screen reader) reveals the breakdown: uncached input, cache-hit input, and output tokens, each with its own cost;
- It renders only while the selected provider is a DeepSeek official route, because third-party relays are not billed at DeepSeek's peak / off-peak rates.
How it prices
It reads two projections the session already exposes and issues no requests of its own:
| Data | Source |
|---|---|
| Token usage | tokenUsage (uncachedInputTokens, cacheReadTokens, cacheWriteTokens, outputTokens) |
| Current model | modelSelection |
Prices come from the official Models & Pricing page (checked 2026-10), in CNY per million tokens:
| Model | Cache hit | Cache miss | Output |
|---|---|---|---|
deepseek-flash | 0.04 | 2 | 8 |
deepseek-v4-pro | 0.30 | 9 | 27 |
Those are peak rates. Off-peak is half of peak; peak is Beijing time Monday–Friday (excluding Chinese statutory holidays) 09:00–12:00 and 14:00–18:00, and every other hour — weekends and holidays included — is off-peak.
- Cache writes are billed at the cache-miss input rate, matching DeepSeek's rule that there is no separate write fee;
- Legacy names
deepseek-v4-flashanddeepseek-v4-flash-vision-expare priced as Flash, per the official note; - An unknown model name hides the badge instead of inventing a price.
Known limits
- An estimate, not an invoice. It excludes per-request Search / Fetch charges; the official bill wins.
- Chats that switched models are priced with the currently selected model, because
tokenUsageis a whole-chat total with no per-model split. - Holidays: the built-in table covers 2026. A year without an entry falls back to weekends only, so its holiday weekdays would be priced as peak.
- Shown for DeepSeek official providers (
deepseek-official,deepseek-account, or any new provider id starting withdeepseek).
Install
Desktop: Plugins → Add plugin, enter the absolute path of this directory (the installer records a link: dependency), then install and enable. Restart DSH completely if it asks, then refresh the page.
Command line, for a non-desktop profile:
dsh plugin --profile web add /absolute/path/to/dsh-deepseek-cny-cost
Develop
node --check client.js
node tools/test-cny-cost.mjs # pricing, peak windows, formatting, slot registration, component behavior
client.js is the whole browser half: a lazy factory registered through window.__ModuleLoader__.load({ id, factory }), with React supplied by the host module table. To make an edit take effect, remove the bundle and install it again from the same source (ambiguous-install otherwise).
License
MIT.
Comments
Loading…
From the same category
by awesome-dsh-plugin
A curated list of plugins for DeepSeek Harness (dsh) · DeepSeek Harness 插件精选列表
★ 19.7k
CC0-1.0
Python
Oct 20, 2026
by 0xsline
DeepSeek Harness (DSH) ecosystem: curated plugins, tools, and infrastructure from dsh-external/hub and the public dsh-plugin topic.
★ 1.2k
CC0-1.0
Python
Oct 16, 2026
by pax-beehive
Open-source CLI, schemas, resolver, and DSH agent tools for DSH Plugin Hub
★ 386
MIT
TypeScript
Oct 20, 2026
by xiajiajun516
DeepSeek Harness (DSH) backup & restore plugin — export, import, migrate and sync your complete DSH configuration, plugins, MCP servers, skills and workspace. One-click migration to another machine.
★ 217
MIT
TypeScript
Oct 18, 2026
dsh plugin --profile web add dsh-config-managerby yjh051108
推荐组件(非必须):DeepSeek Harness 运行时注入器;已随 dsh-routing-suite 单仓库化保留,本仓库继续维护/发布。
★ 165
TypeScript
Oct 16, 2026
dsh plugin --profile web add @dsh-external/dsh-super-injectorby jigjoy-ai
A CLI that turns a goal into a pull request - and a sandbox for testing concurrent AI coding agents on the Mozaik runtime.
★ 124
MIT
TypeScript
Oct 13, 2026