返回目錄

dsh-usage

編輯精選維護狀態: 活躍

aisland-sjl/dsh-usage

持久 Dock 與可自定義的餘額與用量面板:活動熱力圖、雙通道對比,本地優先且隱私安全。

前往 GitHub
$ dsh plugin --profile web add "github:Aisland-SJL/dsh-usage"

112

星數

16

Fork

JavaScript

語言

MIT

授權條款

2026-08-16

建立於

2026-10-02

最近推送

MIT 授權、本地優先的 DeepSeek Harness(`dsh web`)外掛,提供常駐餘額/用量停靠面板與活動熱力圖,對比 DSH 與 Claude Code 通道,且訊息文字絕不離開本機。

DSH 整合

原生執行環境

作者聲明

安全稽核

未稽核

最後核實

2026-08-30

授權條款

MIT

01它能幫你完成什麼?

  • Keep DeepSeek Harness balance, credit and token usage permanently visible inside the dsh web GUI

    A persistent floating dock plus a customizable balance / token-usage panel (today, month, cache hit) that glows green when healthy and folds into a balance pill on collapse

    DeepSeek Harness (dsh web) users who want their balance and token stats glanceable at all times instead of buried in logs

  • Compare DSH vs Claude Code channel usage and inspect cache hit rates locally

    A channel-share ratio bar, a 14-day usage log with per-model drilldown, and a 28-day activity heatmap

    Users who run both DeepSeek Harness and Claude Code and want a local-only dashboard of cross-channel token usage

02如何將外掛接入 DeepSeek Harness?

先決條件

  • DeepSeek Harness `web` profile with `@deepseek-ai/dsh >= 0.1.0-rc.6`

安裝步驟

  1. 01

    $ dsh plugin --profile web add "github:Aisland-SJL/dsh-usage"

  2. 02

    Restart `dsh web`, then hard-refresh the browser.

    $ dsh web

驗證整合成功

  • After restarting `dsh web` and hard-refreshing the browser, the dock appears at the bottom-left.

復原

  • dsh plugin --profile web remove dsh-usage

03DSH 整合程度與能力邊界

DSH 整合原生執行環境

Installed as a `dsh web` plugin via `dsh plugin --profile web add`; runs a persistent floating dock and balance/usage panel inside the DeepSeek Harness web GUI (`dsh web`).

  • Persistent floating dock

    DeepSeek Harness web GUI (`dsh web`)→Always-visible balance pill/dock at bottom-left that mirrors your pins and folds into a tiny pill when the sidebar collapses

    Persists widget layout, accent, background and panel opacity in localStorage
  • Balance & usage panel (seven widgets)

    Credential references from `~/.dsh/.credentials.yaml`→Balance breakdown, today/month token totals, cache hit rates, channel share and usage log with per-model drilldown

  • Local-only usage API

    Loopback-only GET requests→JSON provider list, unified balance snapshot and per-day/per-model token aggregates via `/api/usage/*`

    Serves three loopback-only GET endpoints; non-loopback callers get `403`Credentials resolved server-side through Harness's credentials seam; secrets are never cached or echoed
  • Activity heatmap & dual-channel comparison

    DSH token usage and Claude Code `~/.claude/projects` JSONL→28-day × 6-band activity heatmap and a DSH-vs-Claude Code channel ratio bar

    Parses and discards Claude Code logs line-by-line; only aggregated numbers reach the cache

04適合誰?何時不該用?

適合

  • DeepSeek Harness (dsh web) users who want their balance and token stats glanceable at all times instead of buried in logs
  • Users who run both DeepSeek Harness and Claude Code and want a local-only dashboard of cross-channel token usage

不適合

  • Do not expose these loopback endpoints through a reverse proxy to LAN or the public internet.
  • Requires the DeepSeek Harness `web` profile with `@deepseek-ai/dsh >= 0.1.0-rc.6`.

05相容性、維護與安全提醒

  • Do not expose these loopback endpoints through a reverse proxy to LAN or the public internet.
  • Requires the DeepSeek Harness `web` profile with `@deepseek-ai/dsh >= 0.1.0-rc.6`.
  • Providers without a public balance API show an explicit "no public balance interface" state — the plugin never guesses a balance.
2026-08-162026-08-18v0.2.0

MIT — actively maintained (latest release v0.2.0, 2026-08-16)

06常見問題

如何在 DeepSeek Harness 中安裝 dsh-usage?

執行 `dsh plugin --profile web add "github:Aisland-SJL/dsh-usage"`,接著重啟 `dsh web` 並硬重新整理瀏覽器。停靠面板會出現在左下角。需要 DeepSeek Harness 的 `web` 設定檔(`@deepseek-ai/dsh >= 0.1.0-rc.6`)。

dsh-usage 有什麼前置要求?

需要 DeepSeek Harness 的 `web` 設定檔,且 `@deepseek-ai/dsh >= 0.1.0-rc.6`。各提供方的憑證(如 `DEEPSEEK_API_KEY`)存放在 `~/.dsh/.credentials.yaml`;此軟體只讀取憑證參照,絕不直接接觸密鑰。

dsh-usage 如何與 DeepSeek Harness 連線?

它是一個 `dsh web` GUI 外掛。它提供三個僅限 loopback 的 GET 端點,並透過 Harness 的憑證通道在伺服器端解析憑證;上游呼叫強制 HTTPS 並做 DNS 鎖定。它不在 agent 內部執行,而是在 `dsh web` 介面中渲染懸浮停靠面板。

dsh-usage 與一般的用量統計工具有什麼不同?

它專為 DeepSeek Harness 打造:鏡像你的固定項(pins),對比 DSH 通道與 Claude Code 通道(解析 `~/.claude/projects` 的 JSONL),並且全程本地優先——訊息文字絕不離開本機,採用隱私優先、僅 loopback 的設計。

如何更新或移除 dsh-usage?

更新用 `dsh plugin --profile web update dsh-usage`,移除用 `dsh plugin --profile web remove dsh-usage`。移除後,下次重啟 `dsh web` 時停靠面板即消失;若需復原,重新執行 add 指令即可。

08資料與來源

  • 作者聲明github.com6b67e6d400dc…

    for the [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) Web GUI (`dsh web`).

  • 作者聲明github.com6b67e6d400dc…

    Requires a DeepSeek Harness `web` profile (`@deepseek-ai/dsh >= 0.1.0-rc.6`).

  • 作者聲明github.com6b67e6d400dc…

    dsh plugin --profile web add "github:Aisland-SJL/dsh-usage"

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

🏆

最佳 DeepSeek Harness 外掛

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

廣告

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

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