DSH Wiki DSH Wiki
首頁 / DSH 外掛 / token-anxiety

token-anxiety

成本焦慮,當場緩解。

即時算錢,Explain 指令解釋每一筆 token 的去向,價目表可用一行 curl 同步。
0 star v0.1 成本 / 計費 GitHub

安裝

DeepSeek Harness 的 web profile;Node.js 22+。已知限制(README 自述):只統計根 session 的任務,subagent session 不會出現在 widget(projection fold 依 session 同步摺疊);Explain 走 host 直連路由、不是 agent 輪次,分析結果不會進入 session 日誌,頁面重新整理就消失;內建價格表是“嵌入且會過期的”,需手動同步。
dsh 外掛:裝進 profile 後重啟 dsh web 才會生效。
從 npm
dsh plugin --profile web add dsh-token-anxiety
本機 checkout
dsh plugin --profile web add /path/to/dsh-token-anxiety
直接 npm
npm install dsh-token-anxiety npm install dsh-token-anxiety@0.1.0
手動同步價目表
curl -X POST http://127.0.0.1:3080/token-anxiety/pricing-sync -H "Content-Type: application/json" -d '{}'

完整使用教學

01安裝後重新啟動 dsh web 並重新整理頁面
02在聊天輸入區(composer band)找到成本 widget,hover 或點擊展開
03查看 Overview(尖離峰定價狀態)、Tasks(可排序的每項任務成本表)、Explain(一鍵歸因分析哪些任務在燒錢)
04價格表過期時用 pricing-sync 介面手動同步

config

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

特色功能

·即時尖離峰定價狀態(依本機時區顯示 peak/valley 時段),一眼看出什麼時段跑任務便宜
·每項任務成本的可排序表格 + 一鍵 Explain 歸因(哪些任務燒錢、為什麼)
·約 40 種貨幣、深淺色佈景主題、中英雙語,零外部相依打包

評論牆

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.
我為 DeepSeek Harness 0.1 做了一個外掛(Token anxiety):顯示每個任務的成本、尖峰時段、漲價後同一個任務要花多少錢……省錢心得:開放式研究問題、打錯字、prompt 不夠具體、工具呼叫的 bug,加起來佔了 50% 以上的 token。
11 推 原文
DSH Wiki · DSH 情報站 · ai798 Lab 出品
DeepSeek Harness 官網 GitHub
數據實際抓取