DSH Wiki DSH Wiki
Home / DSH Plugins / token-anxiety

token-anxiety

Cost anxiety, relieved on the spot.

Real-time cost tracking, an Explain command that accounts for every token spent, and a price table you can sync with a single curl.
0 star v0.1 Cost / billing GitHub

Install

The DeepSeek Harness web profile; Node.js 22+. Known limits (stated in the README): only root-session tasks are counted, so subagent sessions never appear in the widget (the projection fold collapses per session); Explain is a direct host route rather than an agent turn, so its analysis does not enter the session log and is lost on page refresh; the built-in price table is "embedded and will go stale" and has to be synced by hand.
A dsh plugin: install it into your profile, then restart dsh web.
From npm
dsh plugin --profile web add dsh-token-anxiety
Local checkout
dsh plugin --profile web add /path/to/dsh-token-anxiety
npm directly
npm install dsh-token-anxiety npm install dsh-token-anxiety@0.1.0
Sync the price table manually
curl -X POST http://127.0.0.1:3080/token-anxiety/pricing-sync -H "Content-Type: application/json" -d '{}'

Full tutorial

01After installing, restart dsh web and refresh the page
02Find the cost widget in the chat input area (composer band) and hover or click to expand it
03Look at Overview (peak/off-peak pricing status), Tasks (sortable per-task cost table), and Explain (one-click attribution for which tasks are burning money)
04When the price table goes stale, sync it by hand through the pricing-sync endpoint

config

默认货币 COP/USD/CNY(支持约 40 种,带地区格式化);语言跟随 harness locale;价格数据经 host 侧 pricing-sync 接口刷新(curl 命令见安装区),重启后覆盖值合并进默认表。README 未给出配置文件片段原文。

Features

·Live peak/off-peak pricing status (peak and valley windows shown in your local time zone), so you can see at a glance when running tasks is cheap
·A sortable per-task cost table plus one-click Explain attribution (which tasks burn money, and why)
·About 40 currencies, light and dark themes, Chinese and English, bundled with zero external dependencies

Voices

Reddit u/Snoo_57113 · 2026-08-15
I made a plugin (Token anxiety) for the deepseek harness 0.1 that shows the cost per task, the peak hours and how much a task would cost after the hike... As tips to reduce your bill I found that open research questions, typos, not being specific in the prompts and bugs in toolcalling make up 50%+ of the tokens.
11 upvotes Source
DSH Wiki · The DSH Intel Hub · By ai798 Lab
DeepSeek Harness site GitHub
Live-scraped data