返回目錄

dsh-cost-meter

編輯精選維護狀態: 活躍

han-1413141/dsh-cost-meter

DeepSeek Harness 會話與當日 API 費用、預算與官方餘額統計外掛:歷史看板、峰谷計價與官方價格一鍵同步。

前往 GitHub
$ dsh plugin --profile web add dsh-cost-meter

265

星數

24

Fork

JavaScript

語言

MIT

授權條款

2026-08-13

建立於

2026-09-08

最近推送

原生 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`)

安裝步驟

  1. 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

  2. 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 整合程度與能力邊界

DSH 整合原生執行環境

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 baseURLs
  • Peak/off-peak pricing + alerts

    Real-time usage timestampsPeak 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 calls
  • Multi-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.
2026-08-132026-08-22v1.5.41

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 起週末全天按谷價。外掛在切換前會彈出視窗並可發送系統通知提醒。

超過預算時會阻擋呼叫嗎?

不會。預算與超支提示僅作提醒,不會阻止模型呼叫。

08資料與來源

  • 作者聲明github.com6221646c8c5a…

    DeepSeek Harness 会话费用统计插件(界面中英双语)

  • 作者聲明github.com6221646c8c5a…

    dsh plugin --profile web add dsh-cost-meter

此頁面根據專案公開文件、儲存庫中繼資料與 DSH Plugins 的結構化解析所產生;最後核實於 2026-08-23。發現錯誤?提交更正。

🏆

最佳 DeepSeek Harness 外掛

從全目錄挑出的 12 個值得優先安裝的外掛,涵蓋各個分類。

DSH Plugins 是獨立的 DeepSeek Harness 外掛市集,與 DeepSeek 官方無關,也不代表官方背書。第三方外掛未經安全稽核,安裝前請審查原始碼。

每週取得最新的 DeepSeek Harness 外掛,絕不濫發。