DeepSeek Harness Plugin Hub

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

探索

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

社区

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

相关链接

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

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

DeepSeek Harness Plugin Hub
ProfilesPlugins分类动态文档登录管理 Profiles
ProfilesPlugins分类动态文档登录
← Plugins
A

dsh-api-usage-dashboard

Api Usage Dashboard

DSH (DeepSeek Harness) 插件:零配置 API 使用情况仪表板——24 小时柱状图、按天深入查看、按提供商和模型着色,数据汇总自本地会话日志。

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

npx -y @deepseek-ai/dsh plugin --profile web add github:LENS-Views/dsh-api-usage-dashboard#d33ec638099df999eb13963ced4f17e5e7148d71
README兼容性版本

兼容性与来源证明

Api Usage Dashboard 以 dsh-api-usage-dashboard 发布,当前版本为 1.0.2。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

DSH 兼容范围
*
运行环境
web
发布来源
github
Registry 更新时间
2026/11/5

版本

1.0.2stable
2026/11/5

相关插件

正在加载相关插件…

最新版
1.0.2
DSH
*
HMR
重启进程
Tree shaking
未声明可安全裁剪
解包体积
未提供
文件数
未提供
Surface
web
许可证
MIT
发布源
github
GitHub
★ 2
周下载
0
最近提交
2026/11/5
查看源码 ↗
README Badge

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Whale Widgetdsh-whale-widgetDSH Web 界面右下角的 DeepSeek 余额小鲸鱼挂件:余额/今日已用/峰谷定价、自定义泡泡点击序列(文本/余额/今日/峰谷/图片/随机语句与并列加权选择)、逐行样式与字体、悬浮快捷编辑、音效与每轮消耗、自定义角色/动图/音效、吸附与翻转自定义Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Connect Workbuddydsh-connect-workbuddy把本机登录的 WorkBuddy 模型(国内版与国际版)接入 DeepSeek Harness:每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。Cost Meterdsh-cost-meterDeepSeek Harness 会话费用统计插件:本会话成本、当日费用、历史记录与官方价格同步,支持多厂商多模型价格计费(内置 170+ 模型 ID 价格目录与自动匹配)、主流 Coding Plan 订阅额度查询与显示(16 家,含 WorkBuddy 官方积分、OpenDesign 工作区查询、含小米 MiMo Token Plan 控制台 Cookie 查询、SCNet Token Plan 本地 Credits 计量与火山方舟 Volcano Ark Coding Plan AK/SK 签名查询

README

DSH API Usage Dashboard

你的模型 API 用了多少,一屏看完 · Know exactly where your tokens go

中文 · English

DSH API usage dashboard: 24-hour token chart, per-model usage and the breakdown table


🇨🇳 中文

装完就有数据,不用配任何东西

这是一个 DeepSeek Harness(DSH)插件。装上之后,左侧边栏多一个图标,点开就是你的模型 API 用量仪表盘——每个 provider、每个模型、每个小时,调用了多少次、烧了多少 token。

不需要填接口地址,不需要贴 API key,不需要另接 Prometheus / Langfuse。 插件直接读 Harness 自己的会话记录,你以后新接任何一家模型,第一次调用就会自动出现在图里。

为什么是它

常见做法痛点这个插件
登录各家控制台看账单要一个个平台切,且只能看到总额一个面板汇总所有 provider
接 Langfuse / Helicone 等平台要改代码、要出网、有延迟零侵入,装完即用
自己写脚本解析日志要维护、没界面、不能下钻现成的 24 小时图 + 按天钻取

你的数据一步都不出门:没有外部请求、不读取 API key、只在本机开一个 loopback 路由。

功能

  • 🕐 24 小时柱状图:固定 00:00–23:00 全刻度,没调用的时段留空槽,图形不会因为"一天只有几小时"而失真
  • 📅 按天钻取:日期选择器 + 最近 7 天快捷标签,随时回看某一天的小时分布
  • 🖱️ 完全可交互:悬停出虚线定位线 + 气泡(时间段 / tokens / 请求数),点击可钉住柱子对照
  • 🔀 Tokens / 请求次数 一键切换,Y 轴自动取整(1/2/5×10ⁿ)+ 网格线
  • 🎨 彩色系列:Tokens 蓝 / 请求 琥珀;每个 provider、每个模型各有固定颜色,颜色贯穿卡片、迷你图、明细表
  • 📊 按模型分组:每个模型一张 24 小时迷你柱图,看谁在烧 token 一目了然
  • 🧾 明细表:provider 汇总 + 模型明细,调用 / 输入 / 缓存 / 输出 / 合计 / 占比一目了然
  • 🌗 跟随宿主主题、中英双语、60 秒自动刷新

三步装上

  1. 在 DSH 的插件管理器里选 install_bundle
  2. 输入包名 dsh-api-usage-dashboard(已发布到 npm),也可以指向本地目录
  3. 侧边栏点柱状图图标 → 完成

首次打开会扫一遍全部会话日志(23 个会话约 1–2 秒),之后走缓存,基本秒开。

不想用 npm 也行:把仓库拷到本地用目录路径安装,或者直接填 git 地址 github:LENS-Views/dsh-api-usage-dashboard(本仓库 public,无需构建步骤)。

统计口径

指标含义
调用次数会话里记录的模型调用条数(含压缩摘要等非对话调用)
输入 tokens未命中缓存的输入(inputTokens)
缓存 tokens命中提示缓存的输入(cacheReadTokens)
输出 tokens模型生成(outputTokens)
合计 tokenstotalTokens = 输入 + 缓存 + 输出

同一 provider 下按模型分行;不同 provider 即使模型同名也分开统计。

隐私边界

  • 只读本机 ~/.dsh/sessions 下的会话日志
  • 不读取、不转发任何 API key
  • 不向任何外部服务发请求
  • 只注册一个 127.0.0.1 路由,非本机请求直接 403

配置

cordis.patch.yml 的 config 可调,全部有默认值,不改也能用:

- insert:
    - id: api-usage-dashboard
      name: 'dsh-api-usage-dashboard'
      config:
        cacheTtlMs: 20000    # 扫描结果缓存(毫秒),0 = 每次重扫
        maxSessions: 0       # 只扫最近 N 个会话,0 = 全部
        scanConcurrency: 4   # 并发读取会话数(1–8)

常见问题

金额(¥)呢? 还没做。需要每个 provider 的单价,而自建网关通常不公开牌价;有单价就能加。

能统计不经过 Harness 的请求吗? 不能。它统计的是 Harness 实际发出的模型调用——这也正是"不会算错"的原因。

会拖慢 DSH 吗? 不会。扫描在宿主进程里做、结果按 20 秒缓存,界面每 60 秒取一次。

作者

  • LENS-Views — 项目发起、需求与验收、发布
  • DSH Agent(deepseek-flash) — 实现:宿主侧用量聚合、面板与图表、发布脚本与文档

本项目在 DeepSeek Harness 的会话里由人类与 AI agent 结对完成:设计与验收归人类,代码与文档由 agent 起草。这也是它存在的原因——想要一个"装完就看见"的用量面板,于是直接在这个 harness 里把它写出来了。

关于署名方式:AI 协作者以纯文本署名。它没有自己的 GitHub 账号与邮箱(不会借用 DeepSeek 或任何第三方账号,以免被误认为官方身份),因此不会出现在 contributors 图和 @ 提及里——这是刻意为之,不是遗漏。若将来 DeepSeek 为它提供官方账号,这里的署名与提交 trailer 会同步更新。

许可证

MIT


🇬🇧 English

Install it, and the data is already there

A DeepSeek Harness (DSH) plugin that adds a model API usage dashboard to the sidebar: requests and tokens per provider, per model, per hour.

No endpoint to configure, no API key to paste, no extra collector to run. It reads Harness's own session records, so any provider you add later shows up automatically on its first call.

Why this one

  • One panel for every provider instead of switching between vendor consoles that only show a grand total
  • Zero integration — no SDK changes, no egress, no agent to deploy, unlike hosted observability platforms
  • Durable by construction — it reads the session log, the same source Harness replays from, instead of keeping a parallel counter that can drift

Nothing leaves your machine: no outbound requests, no API keys read, one loopback-only route.

Features

  • 🕐 Full 24-hour axis (00:00–23:00), empty hours kept as slots so the shape never lies
  • 📅 Per-day drill-down: date picker plus the last seven days as quick chips
  • 🖱️ Interactive bars: hover for a guide line and a tooltip (time range / tokens / calls), click to pin one for comparison
  • 🔀 Tokens ⇄ Requests switch, auto-rounded Y axis (1/2/5×10ⁿ) with gridlines
  • 🎨 Color-coded series: blue for tokens, amber for requests; a stable hue per provider and per model, reused across cards, mini charts and the table
  • 📊 Per-model mini charts so the heavy hitters are obvious at a glance
  • 🧾 Breakdown table: calls, input, cached, output, total and share per provider and model
  • 🌗 Host theme aware, bilingual, refreshes every 60 seconds

Quick start

# inside DeepSeek Harness: plugin manager → install_bundle
dsh-api-usage-dashboard
  1. Open DSH's plugin manager and choose install_bundle
  2. Enter the package name dsh-api-usage-dashboard (published on npm), or point it at a local folder
  3. Click the bar-chart icon in the sidebar

The first open scans every session log (about 1–2 s for 23 sessions), then serves from cache.

No npm needed: install the folder directly, or point install_bundle at github:LENS-Views/dsh-api-usage-dashboard (public repo, no build step).

What is counted

MetricMeaning
RequestsRecorded model calls, including compaction and other non-chat calls
Input tokensPrompt tokens not served from cache (inputTokens)
Cached tokensPrompt tokens served from cache (cacheReadTokens)
Output tokensTokens generated by the model (outputTokens)
Total tokenstotalTokens = input + cached + output

Models are listed under their provider; the same model name under two providers stays two rows.

Privacy

  • Reads only local session logs under ~/.dsh/sessions
  • Never reads or forwards an API key
  • Makes no outbound request
  • Registers a single 127.0.0.1 route; non-loopback callers get 403

Configuration

Every field has a default:

- insert:
    - id: api-usage-dashboard
      name: 'dsh-api-usage-dashboard'
      config:
        cacheTtlMs: 20000
        maxSessions: 0
        scanConcurrency: 4

FAQ

Where is the money column? Not implemented: it needs a unit price per provider, and self-hosted gateways rarely publish one. Give it prices and it can be added.

Does it see traffic that bypasses Harness? No — it counts the calls Harness actually made, which is also why the numbers stay honest.

Does it slow DSH down? No. Scanning happens in the host process and its result is cached for 20 seconds.

Authors

  • LENS-Views — project initiator, requirements, review, release
  • DSH Agent (deepseek-flash) — implementation: host-side aggregation, panel and charts, publish tooling, documentation

The project was built in a DeepSeek Harness session, pairing a human with an AI agent: the human owns the design decisions and acceptance, the agent drafts the code and docs. That is also why it exists — the fastest way to get a zero-config usage panel was to write one from inside the harness.

On attribution: the AI collaborator is credited in plain text. It has no GitHub account or email of its own (none is borrowed from DeepSeek or any third party, so nothing here suggests an official identity), which is why it does not appear in the contributors graph or in @ mentions — intentional, not an oversight. If DeepSeek ever issues it an official account, this credit and the commit trailers will be updated.

License

MIT