DeepSeek Harness Plugin Hub

发布与管理完整 Harness Profiles,发现适合你的插件。

探索

插件目录环境预设文档中心动态

社区

发布插件联系我们报告问题

相关链接

Plugin Hub GitHubDeepSeek Harness 官方项目系统状态隐私说明
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

独立、非官方社区项目,与 DeepSeek 官方无隶属、授权或背书关系。

Usage Stats Alhabor — DeepSeek Harness 插件(DSH Plugin)
DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins

dsh-usage-stats-alhabor

Usage Stats Alhabor

DeepSeek Harness 的使用统计:按会话、天、周、月和自定义日期范围汇总 Token 与成本计量,提供按模型细分、高峰时段定价、持久化每日历史记录、Settings 使用情况面板以及 /usage comm

插件会安装到这里;不确定时保持 web。

npx -y @deepseek-ai/dsh plugin --profile web add dsh-usage-stats-alhabor@0.2.17
README兼容性版本

兼容性与来源证明

Usage Stats Alhabor 以 dsh-usage-stats-alhabor 发布,当前版本为 0.2.17。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
npm
Registry 更新时间
2026/9/20

版本

0.2.17stable
2026/8/23
0.2.16stable
2026/8/23
0.2.15stable
2026/8/23
查看其余 7 个版本收起版本
0.2.14stable
2026/8/23
0.2.13stable
2026/8/23
0.2.12stable
2026/8/23
0.2.11stable
2026/8/23
0.2.10stable
2026/8/23
0.2.9stable
2026/8/23
0.2.8stable
2026/8/23

相关插件

正在加载相关插件…

最新版
0.2.17
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
1.1 MB
文件数
64
Surface
web
许可证
Apache-2.0
发布源
npm
GitHub
★ 0
周下载
54
查看源码 ↗项目主页 ↗
README Badge

点击下方 Badge 复制 Markdown,粘贴到 README 即可。

这是你的 Plugin?认领权益 · 优先安全扫描

验证 package.json 声明的 GitHub 仓库,即可管理这个公开页面。认领后,Hub 会优先安排当前版本的安全扫描,并在通过后公开展示结果。

认领这个 Plugin →
报告问题

相关插件

继续浏览 models-usage 分类下经过校验的插件。

Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编码计划配额,并提供实时令牌使用记录,同时在侧边栏条目中显示当前会话提供商今日的使用量Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage Stats@ychris12138/dsh-usage-statsdsh Web GUI 的令牌使用热力图、提供商余额和订阅配额Codex Connectdsh-codex-connect用于 DeepSeek Harness 的 ChatGPT OAuth 和 Codex 模型。

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.