DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Usage Stats Alhabor — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-usage-stats-alhabor

Usage Stats Alhabor

Usage statistics for DeepSeek Harness: aggregated token and cost metering per session, per day, per week, per month and over custom date ranges, with per-model breakdown, peak-hour pricing, durable daily history, a Settings usage panel and the /usage comm

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-usage-stats-alhabor@0.2.17
READMECompatibilityVersions

Compatibility and provenance

Usage Stats Alhabor is published as dsh-usage-stats-alhabor and currently resolves to version 0.2.17. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
web
Release source
npm
Registry updated
9/20/2026

Versions

0.2.17stable
8/23/2026
0.2.16stable
8/23/2026
0.2.15stable
8/23/2026
Show 7 more versionsCollapse versions
0.2.14stable
8/23/2026
0.2.13stable
8/23/2026
0.2.12stable
8/23/2026
0.2.11stable
8/23/2026
0.2.10stable
8/23/2026
0.2.9stable
8/23/2026
0.2.8stable
8/23/2026

Related plugins

Loading related plugins…

Latest
0.2.17
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
1.1 MB
Files
64
Surface
web
License
Apache-2.0
Source
npm
GitHub
★ 0
Weekly downloads
54
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

Related plugins

More verified plugins in models-usage.

Whale Widgetdsh-whale-widgetDeepSeek balance whale widget in the bottom-right corner of the DSH Web interface: balance/today’s usage/peak-off-peak pricing, customizable bubble click sequence (text/balance/today/peak-off-peak/image/random phrases and parallel weighted selection), per-line styles and fonts, floating quick editinUsage Stats@ychris12138/dsh-usage-statsToken usage heatmap, provider balances, and subscription quotas for the dsh web GUICodex Connectdsh-codex-connectChatGPT OAuth and Codex models for DeepSeek Harness.Ui Usage Billing@kenz1117/dsh-ui-usage-billingUsage billing dashboard for DeepSeek Harness: sidebar cost metrics plus a full dashboard modal, priced from a current multi-provider catalog with real usage aggregated from session logs.

README

📊 dsh-usage-stats

API spend monitoring for DeepSeek Harness: per-request detail, previous-period comparisons, and chart-backed history in one panel.

See every token you pay for.

English · 简体中文 · Español · Português · हिन्दी


Compatibility

AspectStatus
HarnessDeepSeek Harness 0.1.0-rc.8
Node^22.19.0 || >=24.0.0
SurfacesHost + web client (Settings → Usage tab); the /usage command

What you get

dsh-usage-stats turns the session event stream into a complete spend-monitoring panel:

  • Summary cards — today / this week / this month / all-time, each with a signed percentage delta against its previous period (yesterday / last week / last month).
  • Per-request conversation detail — every priced request's start time, turn/step, model, input/output/cache-read/cache-write tokens, cost at the request-time price, and peak badge; durable through restarts via the session projection seam (bounded ring, requestLog config).
  • Day / week / month views — current-vs-previous comparison panels (cost, tokens, calls, peak calls + deltas) with the period's per-day lines.
  • History panel — a dependency-free daily-cost bar chart (peak-tinted bars, hover details) plus a per-day table (cost / tokens / calls / peak, per-model drill-down), 90 days by default (~a year in the durable layer).
  • Custom range — any from/to dates: range total, daily chart, per-week lines, per-model breakdown.
  • Pricing — built-in USD table merged with config.prices; peak-hour pricing anchored at request start (peak.hours windows × multiplier, or explicit peak.prices); calendar bucketing follows peak.timezone.
  • Carbon & latency — token→carbon bridge (tokens × kWh/token × PUE × regional grid intensity) and per-model latency percentiles.

Quick start

# 1. Add the bundle to your profile (tarball channel)
pnpm pack
dsh plugin --profile web add ./dsh-usage-stats-<version>.tgz

# 2. Restart and verify the row
dsh web --restart
dsh --profile web --dump-config | grep -A2 'id: usage'

Then type /usage in a conversation and open the Settings → Usage tab.

Install & remove

  • npm channel (published versions): dsh plugin --profile web add dsh-usage-stats-alhabor — npm registry, released from tags.
  • git channel (latest main): dsh plugin --profile web add "github:PerryLink/dsh-budget#main" — the prepare script builds with production dependencies only.
  • tarball channel: run pnpm pack in this repo, then dsh plugin --profile web add ./dsh-usage-stats-<version>.tgz.
  • remove: dsh plugin --profile web remove dsh-usage-stats.

Configuration

Every key is a Schemastery-validated cordis field (defaults inline in cordis.patch.yml).

KeyDefaultMeaning
prices{}Per-model per-1M-token prices, merged over the built-in USD table
defaultPrice{input: 1.0, output: 3.0}Fallback for models absent from both tables
peak.enabled / timezone / hours / weekendOffpeak / multiplier / pricestrue / Asia/Shanghai / [[9,12],[14,18]] / true / {input:2, output:2, cacheRead:2, cacheWrite:2} / {}Peak-hour pricing: requests starting inside a window (Mon–Fri only — weekends are all-day off-peak since DeepSeek's 2026-08-23 rule) price through peak.prices (or base × multiplier); day/month bucketing follows peak.timezone
modelAliases{}Dated/legacy model ids → canonical pricing id
currency{code: CNY, rate: 1.0, decimals: 2}Display currency (amount = computed × rate; for direct CNY pricing set rate: 1.0 and fill prices with CNY rates)
outputLanguagezh/usage output language: en / zh
historyDays90Days of per-day history kept in the panel snapshot (1..365; the durable layer keeps ~a year per session)
requestLog.enabled / sizetrue / 200Per-request detail switch and per-session ring size (10..2000)
carbon.enabled / region / pue / energyKwhPerTokentrue / global / 1.58 / 0.000007Carbon bridge (regions: global, us, eu, china, india, uk, france, iceland)
latency.enabled / windowSizetrue /

Surfaces

SurfaceKindNotes
/usagecommandOverview (session/today/yesterday/this week/last week/this month/last month/all-time)
/usage models | days | sessions | week <monday> | range <from> <to>commandModel breakdown / daily history / session list / one week / custom range
Settings → Plugins → Usagesettings tabSummary cards, conversation detail, day/week/month comparisons, custom range, history chart
usage/status, usage/rangeTypert RemoteClient channel (the tab consumes these two methods)

Permissions & data

  • Permissions: session:append (command audit only), native-code:none; no outbound network.
  • Data: everything shown is a read-only aggregate over official session events; the plugin never appends custom event types to the session log (the rc.8 read path refuses unknown types) — durable state lives entirely in session projections.
  • Fail loud: invalid prices, timezones, ratios, regions, and bounds fail at mount time.

Known limits

  • Per-request detail is bounded per session (latest 200 by default); older requests live on only in the aggregates.
  • Previous-period deltas show "new"/"flat" when the durable history is shorter than one full period.
  • Built-in prices drift; override entries with config.prices.

Development

pnpm install        # node ^22.19 || >=24
pnpm run typecheck  # tsc: src + tests against the local harness checkout
pnpm run typecheck:ci  # tsc against the published 0.1.0-rc.8 types (no paths)
pnpm test           # vitest: 80 tests
pnpm run build      # tsc declarations + tsdown bundles (lib/)
pnpm run verify:self-contained  # dependency specs resolve from the registry
pnpm run verify:artifacts       # built ESM face + typert manifest + client bundle
pnpm pack           # the published tarball

Topics

dsh, dsh-plugin, deepseek-harness, deepseek, cordis, budget, cost-tracking, carbon-footprint, latency-benchmark, token-usage

Contributors

  • @PerryLink — creator and maintainer: aggregation, budget governance, carbon and latency ports, the Settings tab, and the five-language docs.

PerryLink DSH Plugin Family

This project is one of the 29 DeepSeek Harness plugins maintained by PerryLink. If this one helps you, the others likely will too:

PluginOne-liner
dsh-auto-reviewSecond-model auto-review on the approval chain, fail-closed by default
dsh-background-agentsDurable background child agents with a Web UI sidebar, messaging and interrupt
dsh-budgetCost governance for DeepSeek Harness: budgets, carbon, and latency in one panel.
dsh-checkpoint-rewindClaude Code /rewind-equivalent: snapshots, session forks, one-shot restore
dsh-claude-moveMigrate Claude Code sessions, memory, skills and CLAUDE.md into DSH
dsh-clickCross-platform native desktop control for DeepSeek Harness — Windows first.
dsh-composer-historyTerminal-style input history for the web composer: arrows, Ctrl+R search
dsh-defendPrompt-injection, jailbreak, and secret-leak defense for DeepSeek Harness.
dsh-doublecheckEngineering-discipline guard: requirements grill, test gates, adversary review
dsh-drawUnified static-image generation routing for DeepSeek Harness.
dsh-fastRead-only performance diagnostics for DeepSeek Harness.
dsh-githubGitHub PR/issues integration for DSH, every write gated by approval
dsh-library

License

Apache License 2.0 © 2026 dsh-budget contributors

200
Per-model latency percentiles and their window
refreshIntervalMs5000Settings tab polling interval (reserved)
Local document knowledge base for DeepSeek Harness.
dsh-local-aiLocal-model (Ollama) integration for DeepSeek Harness.
dsh-lsp-actionsLSP diagnostics, formatting, completion, code actions and rename over language servers
dsh-maskPII masking middleware for DeepSeek Harness — anonymize personal data before it reaches the model, restore it at the display layer.
dsh-mcp-panelRead-only MCP runtime panel: /mcp command + Settings tab with status, tools and errors
dsh-mementoApproval-gated cross-session memory: ctx.memory seam + SQLite + memory tool
dsh-observeOpenTelemetry and Langfuse observability exporter for DeepSeek Harness.
dsh-output-stylesClaude Code outputStyles-equivalent runtime style switching
dsh-permission-rulesClaude Code-style declarative allow/deny/ask permission rules with audit
dsh-plugin-guidePlugin-development knowledge base as an on-demand agent skill
dsh-scoreMulti-dimensional quality scoring for DeepSeek Harness plugins.
dsh-session-pinPin sessions in the Web sidebar with durable ordering
dsh-session-syncCross-device session sync for DeepSeek Harness — a dedicated git mirror of your session store.
dsh-skill-pack-securitySecurity-audit skill pack: secret scan, dependency and supply-chain review
dsh-talkVoice-first session loop for DeepSeek Harness: talk to it, hear it answer.
dsh-test-driveIsolated install-and-smoke test drives for DeepSeek Harness plugins.
dsh-translateVendor parameter translation and deterministic JSON repair for DeepSeek Harness.