dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
为 DeepSeek Harness Web(`dsh --profile web`)记录**每日 LLM 调用花费**,支持按会话 / 模型 / 天多维度查看。
English | 中文
A DeepSeek Harness Web (dsh --profile web) plugin that records daily LLM call costs and lets you inspect them per session, per model, and per day.
dsh plugin --profile web add dsh-cost-tracker
Then restart dsh web and refresh the page — the "¥ 花费统计" entry appears at the bottom of the sidebar.
If you use the npmmirror registry in China, note that newly published packages take a few minutes to hours to sync. If install reports 404, point pnpm at the official registry temporarily:
dsh plugin --profile web add dsh-cost-tracker --registry=https://registry.npmjs.org/
dsh plugin --profile web add github:lyfZhixing/dsh-cost-tracker
(No build step — nothing extra to configure.)
dsh plugin --profile web add /path/to/dsh-cost-tracker
dsh plugin --profile web remove dsh-cost-tracker
Uninstalling removes only the plugin; your local data file ~/.dsh/cost-tracker.json is kept.
Esc, or toggling the sidebar buttoninputMiss = uncached input price, inputHit = cache-hit input price, output = output pricedeepseek-v4-pro / deepseek-v4-flash) are estimates — adjust them in the Pricing tab to match your real billing~/.dsh/cost-tracker.json (records, session titles, pricing table)/cost-tracker/data) every 4 secondsQ: No records / shows 0 after install? A: The plugin only records calls made after it is installed; past calls cannot be recovered. Also check the Pricing tab — unpriced models are flagged and fall back to the default price.
Q: The numbers don't match my bill? A: Default prices are estimates. Edit them in the Pricing tab (unit: ¥ / 1M tokens) to match your actual billing.
Q: Will uninstalling lose my data?
A: No. The data file ~/.dsh/cost-tracker.json is independent; reinstalling the plugin restores it automatically.
Q: Install fails with 404 on the npmmirror registry?
A: The mirror lags on new packages. Install with --registry=https://registry.npmjs.org/ temporarily, or retry later.
dsh-cost-tracker/
├── package.json # dsh.bundle + dsh.client declarations
├── cordis.patch.yml # plugin-row insert layer applied on install
└── lib/
├── index.js # host half: usage recording, persistence, HTTP routes
└── client.js # browser half: UI (plain JS bundle, no build step)
lib/client.js is served live by the server (cache-control: no-cache) — edits take effect after a page refreshlib/index.js is host-side code — changes require restarting dsh webwindow.__ModuleLoader__.load({ id, factory }) formatMIT