Preface¶
When using DeepSeek with dsh-go, if you only care about cost and current pricing, you might want a tool that doesn’t track tokens but focuses purely on money. This article introduces dsh-go-money-meter, a plugin for the dsh-go native interface that displays balance, unit prices, and estimated spending.
Plugin Overview¶
- Name: dsh-go-money-meter
- Maintainer: FL1213
- Repository: https://github.com/FL1213/dsh-go-money-meter
- Category: Online tools
- Purpose: DeepSeek balance, current token pricing, and estimated cost (amounts only — no token statistics)
Core Features¶
Status Bar (one line above the input box, ≤24 characters)¶
Format example: 余¥8.13 谷入1·出4 今¥2.86
Displays:
- Balance
- Current peak/off-peak period and switch countdown
- Current unit price (input/output)
- Today’s estimated cost
Two Native Panels¶
Found under the “Plugins” tab / All Features:
-
Balance & Unit Price Panel
- Balance (top-up and gift balance shown separately)
- Platform cumulative spend
- Current model
- Current peak/off-peak period and switch countdown
- Current unit price
- Estimated cost for this session / today / this month
- Savings from cached tokens
- How many more tokens your balance can cover
- Monthly projection
- Switchable status bar preset, low-balance threshold, and unit price source -
Price List Panel
- deepseek-flash / deepseek-v4-pro unit prices for cache hit / input (cache miss) / output during off-peak and peak hours
Turn Footnote¶
Displays the estimated cost for the current turn, e.g. ¥0.03
Installation & Activation¶
Install command:
dsh plugin --profile web add dsh-go-money-meter
After installation, restart the engine as prompted by the App, or go to “Settings → Engine” in the App to restart.
The native interface requires the host to have the dsh-go bridge:
- The local phone engine includes it by default
- Not available when connecting via DSH Remote
Data & Privacy¶
- Balance: Local DeepSeek platform login (
deepseek-account-platform/defaultin$DSH_HOME/.credentials.yaml), with a fallback to theDEEPSEEK_API_KEYenvironment variable to query the official balance API. Read-only; no keys are stored. - Platform cumulative: Cumulative spend returned by the official account API, used as a billing reference. API data may be delayed by a few minutes.
- Cost estimation: Reads the
usagefield (input / cache read / cache write / output) of each reply in the local session log, converted at the official unit price in effect at the time of the event. Logs from forked / copied conversations are deduplicated by message ID to avoid double-counting. - The ledger stores only token counts and amounts; it does not read conversation content, save message text, or send any data to third parties.
Data files are located in $DSH_HOME/dsh-go/:
- dsh-go-money-meter.state.json
- .settings.json
- .ledger.json
- Optional price override file: .prices.json
Uninstalling the plugin will not delete these data files.
Pricing & Methodology¶
Built-in DeepSeek official prices (CNY per million tokens, verified 2026-11-23):
| Model | Cache Hit (Off-peak / Peak) | Input Cache Miss (Off-peak / Peak) | Output (Off-peak / Peak) |
|---|---|---|---|
| deepseek-flash | 0.02 / 0.04 | 1 / 2 | 4 / 8 |
| deepseek-v4-pro | 0.15 / 0.30 | 4.5 / 9.0 | 13.5 / 27.0 |
Peak hours: Weekdays (excluding statutory holidays) 9:00–12:00 and 14:00–18:00 Beijing Time. All other periods (including weekends and holidays) are off-peak, where prices are half of peak prices.
- Cache hits are billed at the cache-hit rate; cache writes are billed at the cache-hit rate; reasoning tokens are already included in output and are not double-counted.
- “Today / This Month / This Session” figures are estimates: back-calculated from local session logs. They may differ slightly from the official real-time bill. “Platform Cumulative” comes from the official API but may lag by a few minutes. Both are subject to DeepSeek’s official billing.
Settings¶
Changes take effect immediately upon selection in the panel and are saved to $DSH_HOME/dsh-go/dsh-go-money-meter.settings.json:
- Status bar preset: Standard / Compact / Balance only
- Low-balance threshold: ¥5 / ¥10 / ¥20 (status bar changes color below threshold)
- Unit price source: Built-in prices / Custom prices
Custom prices: Write a JSON file with the same structure as the built-in table at $DSH_HOME/dsh-go/dsh-go-money-meter.prices.json, then switch the unit price source to “Custom.”
Known Limitations¶
- Only supports DeepSeek official account balance; balance APIs for other providers are not yet integrated into the UI.
- Balance requires a local DeepSeek platform login (or a provided
DEEPSEEK_API_KEY); otherwise the panel will only show estimated costs. - The turn footnote only applies to turns that occurred after the plugin was loaded; historical turns are not retroactively populated.
- After an official price change, the built-in price table needs to be updated (edit
prices.jsonor wait for a new release).
Compatibility¶
- dsh-go App ≥ 1.0.9
- DSH engine
0.2.1-rc.2up to (not including)0.3.0 - Node.js 22.19+
The native interface only appears on hosts with the dsh-go bridge; the local engine includes the bridge by default.
Uninstallation¶
dsh plugin --profile web remove dsh-go-money-meter
Summary¶
dsh-go-money-meter keeps the dsh-go native interface focused on money and pricing, making it easy to adjust strategies around peak/off-peak periods, monitor balance, and track estimated spending. The version described in this article is available on GitHub: https://github.com/FL1213/dsh-go-money-meter