社群維護的 DSH 插件(MIT),把 DeepSeek Harness 變成用量與成本追蹤器:每次呼叫的 token/快取記錄、峰谷計費、餘額查詢、日曆熱力圖與多格式匯出。
DSH 整合
原生執行環境
作者聲明
安全稽核
未稽核
最後核實
2026-09-05
授權條款
MIT
01它能幫你完成什麼?
追蹤 DeepSeek Harness 每次模型呼叫的 token 用量與花費
Web UI 中的「用量與成本」「餘額查詢」分頁——每次呼叫的 token/快取記錄、峰谷計費、日曆熱力圖、CSV / JSON / PNG 匯出
想監控開支並與官方控制台核對用量的 DeepSeek Harness 使用者
查詢 DeepSeek 餘額並匯出用量報告
由 DEEPSEEK_API_KEY 支撐的餘額查詢分頁;最多 2000 筆記錄的 CSV / JSON / PNG 長圖匯出至任意目錄
需要月度成本核對與可分享用量報告的個人與團隊
02如何將外掛接入 DeepSeek Harness?
先決條件
- 已安裝 DeepSeek Harness(`npm install -g @deepseek-ai/dsh`、桌面端軟體或 `npx @deepseek-ai/dsh web`)
- 推薦方法 A 需要 pnpm:`npm install -g pnpm`(或 `corepack enable`)
- 在「設定 → 模型」中設定 DEEPSEEK_API_KEY 以啟用餘額查詢
安裝步驟
- 01
桌面端(推薦):安裝插件 → 推薦 → 用量與成本追蹤 → 安裝,再點「立即重啟服務」
- 02
指令:`dsh plugin --profile web add @feiyang666/dsh-usage-plugin`
$ dsh plugin --profile web add @feiyang666/dsh-usage-plugin
- 03
重啟 dsh web 服務(`dsh web` / 完全退出並重新開啟桌面端軟體)
$ dsh web
驗證整合成功
- 重新整理 http://127.0.0.1:3080——在「對話」與「追蹤」之後應出現「用量與成本」與「餘額查詢」分頁
- 發送一則訊息,「用量與成本」面板應顯示本次呼叫的 token / 花費記錄
復原
- 移除插件:`dsh plugin --profile web remove @feiyang666/dsh-usage-plugin`,然後重啟軟體
03DSH 整合程度與能力邊界
透過 `dsh.bundle.patch` + `dsh.client` 宣告的原生 DSH 插件——一行指令安裝(`dsh plugin --profile web add @feiyang666/dsh-usage-plugin`)即同時接入主機端與客戶端
用量與成本追蹤
DeepSeek Harness 的每次模型呼叫→每次呼叫的 token + 快取命中記錄、依 DeepSeek 價格的峰谷計費、按模型與按提供方表格、日期篩選
餘額查詢
已設定的 DEEPSEEK_API_KEY→DeepSeek 帳號餘額
用量日曆熱力圖
已記錄的呼叫→按月每日用量熱力圖,依花費/呼叫數著色,含峰谷拆分與每日統計
CSV / JSON / PNG 匯出與匯入
用量記錄(最多 2000 筆)→CSV / JSON / PNG 長圖匯出至任意資料夾(自動開啟),以及 JSON/CSV 合併匯入
04適合誰?何時不該用?
適合
- 想監控開支並與官方控制台核對用量的 DeepSeek Harness 使用者
- 需要月度成本核對與可分享用量報告的個人與團隊
不適合
- 餘額查詢需要在「設定 → 模型」中設定 DEEPSEEK_API_KEY;未設定時查詢會失敗並顯示「DEEPSEEK_API_KEY not configured」.
05相容性、維護與安全提醒
- 餘額查詢需要在「設定 → 模型」中設定 DEEPSEEK_API_KEY;未設定時查詢會失敗並顯示「DEEPSEEK_API_KEY not configured」.
- 支援 Windows / macOS / Linux:路徑依平台處理,資料夾選擇器使用各系統原生機制;餘額查詢與匯出不依賴 Windows 專用指令.
- 自 v1.9.2 起記錄存放在固定專用資料目錄(寫入繞過模型沙箱);請勿手動修改 node_modules 下的檔案——更新會覆寫它們.
MIT · DeepSeek Harness 社群插件,活躍維護中(最新發布 v1.16.5,2026-08-29)
06常見問題
怎麼安裝 dsh-usage-plugin?
推薦:在 DeepSeek Harness Desktop 中進入「安裝插件」→「推薦」→「用量與成本追蹤」→「安裝」,再點「立即重啟服務」。或指令:`dsh plugin --profile web add @feiyang666/dsh-usage-plugin`,然後重啟 `dsh web`。
餘額查詢需要 API Key 嗎?
需要——在「設定 → 模型」中設定 DEEPSEEK_API_KEY(與對話使用同一把 Key)。未設定時查詢會失敗並顯示「DEEPSEEK_API_KEY not configured」.
用量記錄存在哪裡?
自 v1.9.2 起,記錄存放在固定的專用資料目錄(可用 DSH_USAGE_DATA_DIR 覆寫),不再隨工作區變動,切換工作區或更新軟體都不會遺失歷史。
如何移除插件?
執行 `dsh plugin --profile web remove @feiyang666/dsh-usage-plugin` 並重啟;`dsh plugin` 會自動從 profile 的 bundles 清單中移除該插件。
07相關的 DSH 工作流程
dsh-context
作者 bowenliang123
A context insight plugin officially recommended by DeepSeek Harness, for context composition, evolution and Multi-Agent details. DeepSeek Harness官方推薦的上下文洞察外掛,透視上下文組成與演進,以及多Agent 協作與通訊。
deepseek-harness-control-center
作者 feibi-mochi
DeepSeek Harness control center for balance, usage, peak/off-peak pricing, encrypted multi-account switching, health checks, reminders, recharge, and session controls. / 餘額、用量、峰谷計費、加密多賬戶、健康檢查、提醒、充值與會話控制
dsh-context-doctor
作者 zhenyu98
DSH 上下文注入審計外掛:統計 AGENTS.md 指令鏈/技能目錄/工具 schema 的 token 成本,檢測重複與衝突;Web UI 圓環面板 + context_audit 工具。Context Doctor for DeepSeek Harness: audit instruction-chain / skill catalog / tool schemas token cost.
dsh-balance-plugin
作者 yxxbc
deepSeek 餘額監控與用量統計(DSH 動態 Cordis 外掛):餘額監控 · 官方充值入口 · 用量統計 · 三方外掛管理
08資料與來源
dsh-usage-plugin is a **usage & cost tracker** plugin in the DeepSeek Harness ecosystem (a DSH plugin shipped as a Host…
**installation is one command** — no YAML editing, no manual file copying.
此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-09-05。發現錯誤?提交更正。
最佳 DeepSeek Harness 外掛
從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。
