dsh-token-receipt
Manifest validPrint daily, weekly, monthly, 30-day, 90-day, and all-time token usage and estimated model costs as a receipt, with clipboard image copy and PNG export.
Token Receipt
Print daily, weekly, monthly, 30-day, 90-day, and all-time DeepSeek Harness token usage and estimated model costs as a tactile receipt, then copy the image or save a PNG.
| Dark · Daily | Light · Monthly |
|---|---|
![]() | ![]() |
Features
Token Receipt turns local DeepSeek Harness usage records into a printable receipt:
- Period navigation. Switch between Day, Week, Month, 30 days, 90 days, and All views, step across dates for Day, Week, and Month without leaving the panel, and replay the paper-feed print animation automatically on every period change.
- Estimated model costs. Break down spending per model across input, output, cache read, and cache write tokens using public models.dev rates.
- Multi-currency display. Match the default currency to your interface language, or switch manually between
USD,CNY, andJPY. - Tactile receipt feed. Watch a stepped paper-feed animation with a torn paper edge and a barcode whenever you print or switch periods, with automatic
prefers-reduced-motionsupport. - High-DPI export and sharing. Click Copy image to copy a 3x PNG directly to your clipboard for instant pasting and sharing, or Save PNG to download a local image.
- Multilingual themes. Use the interface in English, Simplified Chinese, or Japanese across light and dark themes.
[!NOTE] Displayed costs are reference estimates calculated from public models.dev catalog rates, not provider invoices. All session and token usage data stays local on your device, and only public price rates are fetched online.
Installation
Install from npm
Open Plugins in DeepSeek Harness, click Add plugin, and enter:
dsh-token-receipt
Or install with the plugin_manager tool:
{
"action": "install_bundle",
"target": "dsh-token-receipt"
}
Install from a local checkout
Pass the local repository path to plugin_manager:
{
"action": "install_bundle",
"target": "/absolute/path/to/dsh-token-receipt"
}
If DeepSeek Harness reports restart-required, restart the app once to activate the plugin.
Updating on DSH Desktop
After an update that changes the plugin's browser UI (client.js), fully quit DeepSeek Harness and reopen it. Closing the plugin panel, toggling the plugin, or closing the window is not enough: DSH Desktop loads browser plugin bundles only when the app window starts. Uninstalling and reinstalling is not required. Version 1.1.1 and later show a Reload UI banner when they detect that the installed version is newer than the loaded page.
Usage
- Open Token receipt from the left sidebar.
- Select Day, Week, Month, 30 days, 90 days, or All (use the date controls on Day, Week, and Month to step across dates or return to today). Switching periods plays the paper-feed print animation automatically.
- Choose
USD,CNY,JPY, or Follow language in the Currency menu. - Click Copy image to copy a 3x PNG directly to your clipboard for instant pasting and sharing, Save PNG to download the receipt image, or Replay print to run the paper-feed animation again.
Compatibility and development
Token Receipt requires the following runtime versions:
- DeepSeek Harness
>=0.2.2-rc.3 <0.3.0 - Node.js
^22.19.0 || >=24.0.0
Run syntax checks and the test suite from a local checkout:
npm run check && npm test
License
Licensed under the MIT License.
Receipt printer interaction inspired by dqnamo's Receipt Printer, with pricing resolution adapted from dsh-context. See THIRD_PARTY_NOTICES.md for Apache-2.0 and SIL Open Font License 1.1 notices.
Comments
Loading…
Similar plugins
Shows token and CNY cost per turn and per session in the harness's own statistics form, a whole-account bill over 1/7/30-day windows with cost-per-unit-of-work trends, and an advisor that re-measures
★ 0
dsh plugin --profile web add dsh-cost-auditPer-model token cost tracking with configurable cache-hit/miss, output and peak-window pricing, a live session cost bar, and unconfigured-model flags.
★ 0
dsh plugin --profile web add dsh-cost-trackerby LAwLi3tCoding
DSH API usage and cost ledger with per-pool reports and CNY/USD display
★ 0
MIT
JavaScript
Sep 22, 2026
dsh plugin --profile web add dsh-api-ledgerby Ayowait
DSH ??????????:????????????????Token ?????
★ 1
MIT
JavaScript
Oct 23, 2026
dsh plugin --profile web add dsh-usage-insightsby Jannchie
Cost tracking priced from an online catalogue (models.dev + OpenRouter, 8000+ models, each call priced at its own instant): a per-turn cost line, a Cost tab attributing spend to tool output / model ou
★ 10
↓ 951/wk
MIT
JavaScript
Oct 23, 2026
dsh plugin --profile web add dsh-billby jiuwu02
读取全部会话日志,汇成 token 全景:累计总量、缓存命中率、峰谷分时成本、日历热力图、趋势曲线、折叠式会话树与工作区分布、CSV / JSON 导出,另带上下文清理 / 压缩与提示词优化两组工具。
★ 0
MIT
JavaScript
Nov 14, 2026
dsh plugin --profile web add dsh-token-panorama
