DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-deepseek-usage

d

dsh-deepseek-usage

Manifest valid

Adds a left-sidebar DeepSeek usage page with account balance, token and cache totals, 7/14/30-day stacked charts, a model breakdown, and a seven-day table, with usage read from local DSH session logs.

UI (client)hasBundlePatch

DeepSeek Usage

A persistent DSH Web UI plugin that adds a DeepSeek 用量 entry to the left sidebar and opens a visual dashboard in the main column.

Install

dsh plugin --profile <profile> add github:myname1234/dsh-deepseek-usage

The package is plain JavaScript with no build step, so the GitHub install needs no allowBuilds approval. In the Web UI, Plugins → Add plugin accepts the same GitHub spec.

What it shows

  • Account balance from DeepSeek's official GET /user/balance endpoint (total, topped-up, and granted amounts, plus the low-balance state).
  • Token usage — input, output, cache reads/writes, reasoning tokens, request count, cache-hit rate, and average tokens per request.
  • Daily trend chart for the last 7, 14, or 30 days, stacked by input/output.
  • Token mix donut and per-model breakdown.
  • Recent 7-day table with requests, tokens, and cache hit rate per day.

Token usage is folded from this Harness profile's durable Session logs (the assistant/message usage records), so it survives restarts and does not double-count inherited events in forked Sessions. Live Sessions appear through the session/event feed without waiting for a refresh.

Configuration

The bundle patch gives the Host row these optional values:

- id: deepseek-usage
  name: '@local/deepseek-usage'
  config:
    credentialRef: DEEPSEEK_API_KEY   # Harness credential reference
    pollSeconds: 5                    # browser poll interval
    balanceTtlSeconds: 60             # Host-side balance cache
    scanIntervalSeconds: 300          # new-Session discovery interval

credentialRef is resolved through ctx.credentials; the secret never reaches the browser. If the key is absent, the Host falls back to the signed-in deepseekAccount balance. Balance failures never hide token statistics.

Scope and privacy

  • Only usage whose provider or model name contains deepseek is aggregated.
  • The browser receives aggregates, model names, and wallet balances. It never receives the API key, session text, or individual message logs.
  • The dashboard link points to https://platform.deepseek.com/usage.

Development

The plugin is plain ESM + a plain JavaScript browser bundle; there is no build step. Validate with:

node --check index.js
node --check client.js

Install the directory through DSH's Plugin Manager. The Host half registers the authenticated /api/deepseek-usage Fetch route; the Client half renders into sidebar.panellist and main.

Comments

Loading…

Similar plugins

dsh-deepseek-usage

by The-five-stooges

Shows the DeepSeek account balance as a row in the sidebar footer with a refresh button, and opens a popover with the balance card, daily token and estimated-cost charts over a 7/30-day window, a per-

Tools & CapabilitiesManifest valid

★ 0

MIT

JavaScript

Sep 18, 2026

dsh plugin --profile web add dsh-deepseek-usage

by izz-BLUE

DeepSeek API usage dashboard for DSH Web: daily cache-hit/miss and output token statistics from session logs, per-model cost estimates, account balance, 7-day trends, and a composer usage summary.

Tools & CapabilitiesModels & ProvidersManifest valid

★ 3

BSD-3-Clause

TypeScript

Aug 17, 2026

dsh plugin --profile web add @linxin666/dsh-deepseek-usage-dashboard

Token usage statistics for DeepSeek Harness with a session drawer and today / last-3-day / last-7-day panels, plus configurable charts and metrics.

Tools & CapabilitiesManifest valid

★ 0

dsh plugin --profile web add dsh-token-chart

by ericw0315

Sidebar panel for account balances and local token usage, with provider/model breakdowns and a 27-week daily heatmap.

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsModels & ProvidersManifest valid

★ 3

↓ 174/wk

MIT

JavaScript

Sep 10, 2026

dsh plugin --profile web add dsh-usage-lite

by zhujiuyi

Token usage dashboard in the DeepSeek Harness sidebar: daily totals from session logs with a 12-month heatmap, per-provider breakdown over today/7d/30d/all (hourly for today), and a per-session rankin

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 2

↓ 49/wk

MIT

JavaScript

Oct 24, 2026

dsh plugin --profile web add @zhujiuyi/dsh-token-dashboard

DeepSeek balance and token usage panel for DSH, with official platform billing, a daily usage calendar, and local session-log estimates for all providers using editable per-model pricing.

Tools & CapabilitiesTerminal & ClientsManifest valid

★ 1

MIT

JavaScript

dsh plugin --profile web add deepseek-usage