原生 DSH 外掛,在 DeepSeek Harness 介面內顯示工作階段 / 當日費用、預算、官方 + 自訂 Provider 餘額與 Token 熱圖。透過 `dsh plugin --profile web add dsh-cost-meter` 安裝;重新啟動 dsh web。需要 Node.js ≥ 20。
DSH 整合
原生執行環境
作者聲明
安全稽核
未稽核
最後核實
2026-08-23
授權條款
MIT
01它能幫你完成什麼?
Track DeepSeek Harness session and daily API cost, budget and official balance in the UI
Per-session and daily cost badges, budget %, official/custom-provider balance bars, a 26-week token-usage heatmap, and a history ledger — all in the sidebar and settings
DeepSeek Harness users who want real-time spend visibility, peak/off-peak pricing alerts and multi-vendor Coding Plan quota tracking
02如何將外掛接入 DeepSeek Harness?
先決條件
- Node.js ≥ 20
- DeepSeek Harness with the `dsh plugin` command (`npm install -g @deepseek-ai/dsh`)
安裝步驟
- 01
Run `dsh plugin --profile web add dsh-cost-meter` (or pin a tag: `dsh plugin --profile web add github:Han-1413141/dsh-cost-meter#v1.5.41`)
$ dsh plugin --profile web add dsh-cost-meter
- 02
Restart `dsh web` for the plugin rows, Typert manifest and client bundle to be scanned at startup
$ dsh web
驗證整合成功
作者未說明
復原
- Uninstall with `dsh plugin --profile web remove dsh-cost-meter`.
03DSH 整合程度與能力邊界
Native DSH plugin (web profile) that shows session/daily cost, budgets, balances and token usage inside the DeepSeek Harness UI.
Cost & balance dashboard
DSH session usage (input/cache/output tokens)→Per-session and daily cost, budget %, official balance (3-segment bar), custom-provider balance via configurable HTTP
Balance queries go only to the official domain (api.deepseek.com); the API key is never sent to non-official baseURLsPeak/off-peak pricing + alerts
Real-time usage timestamps→Peak windows (UTC 01:00–04:00, 06:00–10:00) with popup + system-notification alerts before switching; weekend all-off-peak rule from 2026-08-23
Budget and overspend alerts only notify; they do not block callsMulti-vendor billing
provider+model usage across OpenAI/Anthropic/Gemini/Mistral etc.→Per-provider/per-model isolated billing with a 90+ model price catalog and auto-matching; 8 Coding Plan quota queries
Price sync can overwrite official same-name model prices; custom model entries are unaffected
04適合誰?何時不該用?
適合
- DeepSeek Harness users who want real-time spend visibility, peak/off-peak pricing alerts and multi-vendor Coding Plan quota tracking
不適合
- Per-model history backfill depends on the host session log still being on disk; calls whose log was cleaned can only be reconstructed as an 'unassigned model' residual row.
05相容性、維護與安全提醒
- After installing or updating the plugin you must restart `dsh web` for the plugin rows, Typert manifest and client bundle to load.
- Balance queries require network access to api.deepseek.com and a valid API key; the key is only ever sent to the official domain, and requests to a non-official baseURL are refused for balance.
- Per-model history backfill depends on the host session log still being on disk; calls whose log was cleaned can only be reconstructed as an 'unassigned model' residual row.
MIT · 由 facts pack 抓取(README 分支 master)
06常見問題
怎麼安裝 dsh-cost-meter?
執行 `dsh plugin --profile web add dsh-cost-meter`(或固定到發布 tag),然後重新啟動 `dsh web`。外掛列與用戶端 bundle 在啟動時掃描載入。
我的 API Key 會發到哪裡?
餘額查詢只透過模型請求所用的同一把 API Key 發往官方網域(api.deepseek.com)。若 baseURL 指向非官方網域,餘額查詢會被拒絕;模型請求不受影響。
什麼是峰谷計價?
2026-08 起,峰時段為 UTC 01:00–04:00、06:00–10:00(峰時價),其餘為谷時價(半價)。2026-08-23 起週末全天按谷價。外掛在切換前會彈出視窗並可發送系統通知提醒。
超過預算時會阻擋呼叫嗎?
不會。預算與超支提示僅作提醒,不會阻止模型呼叫。
07相關的 DSH 工作流程
dsh-usage-stats
作者 ychris12138
為 DeepSeek Harness Web GUI 提供提供方餘額、訂閱額度與 Token 用量分析。
tokdash
作者 jingbiaomei
智慧體儀表盤:以熱力圖、成本追蹤與 Token 計數視覺化各提供方的會話與配額用量,幫助分析與最佳化。
dsh-balance-meter
作者 ghost011118
在 DSH Web 輸入框下方即時顯示 DeepSeek 賬戶餘額與本場會話花費,自動抓取官方價格並支援峰谷計價。
dsh-plugin-langfuse
作者 linyp
Langfuse 可觀測性外掛:以 OpenTelemetry 追蹤樹匯出會話至 Langfuse OTLP 端點
08資料與來源
DeepSeek Harness 会话费用统计插件(界面中英双语)
dsh plugin --profile web add dsh-cost-meter
此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-23。發現錯誤?提交更正。
最佳 DeepSeek Harness 外掛
從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。
