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.

Account Meter — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-account-meter

Account Meter

DeepSeek Harness (dsh) 右侧账户计量小框:多账户(DeepSeek / Kimi 等)余额 + DSH 内消费统计,当前接入账户高亮,消费口径标注「DSH 消耗」,设置页可视化账户配置。A right-side account meter for the DeepSeek Harness Web GUI: per-provider balance, DSH-local spend, active-account highlight and a visual account edito

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

npx -y @deepseek-ai/dsh plugin --profile web add dsh-account-meter@0.1.3
READMECompatibilityVersions
侧边栏计量条多账户明细卡统计看板

Compatibility and provenance

Account Meter is published as dsh-account-meter and currently resolves to version 0.1.3. 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/22/2026

Versions

0.1.3stable
8/18/2026
0.1.1stable
8/18/2026

Related plugins

Loading related plugins…

Latest
0.1.3
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
440.4 kB
Files
11
Surface
web
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
34
Last push
8/18/2026
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.

Usage@linxin666/dsh-usageUsage statistics plugin for the dsh web GUI: per-provider balance and coding-plan quota detection plus a live token usage ledger, with the current session provider's today usage on the sidebar entryWhale 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 editinCommandcode Provider@mars-sea/dsh-commandcode-providerUnofficial DeepSeek Harness LLM provider plugin for Command Code, ported from pi-commandcode-provider (MIT). Registers the 'commandcode' provider route with a Models-page card and live model catalog.Plugin Subscriptionsdsh-plugin-subscriptionsUse ChatGPT (Codex), Claude, Grok (X Premium), GitHub Copilot, and Google Antigravity subscriptions as DeepSeek Harness LLM providers, with OAuth login from the web Settings page

README

dsh-account-meter

English | 中文

DeepSeek Harness (dsh) Web GUI 的账户计量小框:在左侧栏设置按钮上方显示 DSH 今日 token 总消耗与计价金额,点击展开查看每个 API 账户的余额与今日消耗,并在设置页提供可视化账户配置。

多账户(DeepSeek / Kimi / 任意服务商)余额与消费一目了然,「DSH 消耗」口径明确标注,绝不和账户总消费混淆。

截图

侧边栏计量条(设置按钮上方):

侧边栏计量条

点击展开的多账户明细卡(余额 + 今日 DSH 消耗 + 当前接入高亮):

多账户明细卡

设置页统计看板(今日汇总 + 按模型 / 会话明细):

统计看板

功能

  • 侧边栏常驻条(设置按钮上方):[DSH] 今日 105.2M · ¥22.31 ⟳
    • 显示 DSH 今日 token 总消耗(含缓存读取)与按峰谷价折算的估算金额
    • 30 秒自动刷新 + 手动刷新按钮
    • 侧边栏收起为窄轨时显示紧凑 ¥ 按钮,悬停查看详情
  • 展开明细卡(向上弹出):每个账户一行
    • 账户余额(官方接口查询)+ 今日 DSH 消耗 tokens / 金额
    • 「当前接入」高亮角标(跟随当前选中的模型自动切换)
    • 底部汇总全部账户总余额 + 更新时间
  • 设置页「账户计量」区块(统计看板 tab 内):可视化编辑账户列表
    • 添加 / 删除账户,配置 API Key 引用、余额接口、模型前缀、Provider 标识等
    • 保存即写入 ~/.dsh/settings.yaml,侧边栏下次刷新生效,无需重启
  • 统计看板(设置 → 插件 → 统计看板):按模型 / 会话的调用日志、token 用量、费用估算、CSV 导出

数据口径(重要)

数据口径来源
账户余额账户级(真实)服务商官方接口(DeepSeek /user/balance、Kimi /v1/users/me/balance)
今日消耗 tokens仅 DSH 内扫描 ~/.dsh/sessions 会话日志聚合
计价金额估算内置价格表 × 峰谷时段(2026-08-17 起 DeepSeek 峰谷定价)

⚠️ 消费是 DSH 这个软件里的用量,不含你在 DeepSeek 官网 / 其它工具里用同一 API Key 的消耗。官方不提供"账户总消耗"查询接口,只有余额接口。

安装

dsh plugin --profile desktop add dsh-account-meter
# 或本地源码安装
dsh plugin --profile desktop add /path/to/dsh-account-meter

然后重启 dsh(profile 非热加载)。侧边栏设置按钮上方即出现余额条。

配置

方式一:设置页可视化(推荐)

设置 → 插件 → 统计看板 → 底部「账户计量 · 账户列表」→ 添加账户 → 保存。

方式二:直接编辑 settings.yaml

在 ~/.dsh/settings.yaml 添加:

account-meter:
  accounts:
    - id: deepseek
      name: DeepSeek
      keyRef: DEEPSEEK_API_KEY
      baseURL: https://api.deepseek.com
      balancePath: /user/balance
      modelPrefixes: [deepseek-]
      providerKeys: [deepseek, deepseek-official]
      logo: 深
      color: '#4d7cfe'
    - id: kimi
      name: Kimi
      keyRef: KIMI_CODING_API_KEY
      baseURL: https://api.moonshot.cn
      balancePath: /v1/users/me/balance
      modelPrefixes: [moonshot-, kimi-]
      providerKeys: [moonshot, kimi]
      logo: K
      color: '#2fae78'

字段说明:

字段说明
id稳定标识(唯一)
name展示名称
keyRef~/.dsh/.credentials.yaml 里的 API Key 引用名
baseURL余额接口基址
balancePath余额接口路径
modelPrefixes会话日志中归属该账户的模型名前缀(消费拆分依据)
providerKeys当前模型选择的 provider 标识(「当前接入」判断)
logo / color展示用

accounts 留空时自动使用内置默认(DeepSeek + Kimi)。

新增服务商示例(OpenRouter)

account-meter:
  accounts:
    - id: openrouter
      name: OpenRouter
      keyRef: OPENROUTER_API_KEY
      baseURL: https://openrouter.ai
      balancePath: /api/v1/credits
      modelPrefixes: [openrouter/, deepseek/]
      providerKeys: [openrouter]
      logo: OR
      color: '#ff6b35'

同时需在 ~/.dsh/.credentials.yaml 配置 OPENROUTER_API_KEY,否则余额显示"未配置 API Key"。

开发

# 目录结构
lib/index.js    # host 半:余额查询 + 消费估算 + /api/dsh-usage(/config) 路由 + 会话投影
lib/client.js   # client 半:侧边栏条 + 展开卡 + 设置页账户编辑器 + 统计看板
cordis.patch.yml # bundle patch:插件行插入 profile 加载器
  • 数据接口:GET /api/dsh-usage(余额+消费)、GET|POST /api/dsh-usage/config(账户配置读写)
  • 消费统计:扫描 ~/.dsh/sessions 的 session.jsonl.zstd,按 assistant/message 的 usage 聚合,按模型名前缀归账户,按峰谷价表计价
  • 计价:DEFAULT_PRICES(基础价)+ DEFAULT_PRICE_SCHEDULE(2026-08-17 起峰谷价),可在 settings 的 prices/priceSchedule 覆盖

License

MIT © 54singa


Fork 自 dsh-usage-dashboard-plus,大幅改造为多账户架构。