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
U

dsh-ui-cost-meter

Ui Cost Meter

DeepSeek Harness Web GUI 插件:当前会话的实时花费,按每个模型的 token 费率计价,并以标签形式显示在编辑器下方

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

npx -y @deepseek-ai/dsh plugin --profile web add github:yuu1111/dsh-ui-cost-meter#5bb91f0fcd4206fd48a277bd64aef9065d45eecc
README兼容性版本

兼容性与来源证明

Ui Cost Meter 以 dsh-ui-cost-meter 发布,当前版本为 1.3.0。Plugin Hub 会校验它的 manifest,并保存精确安装来源,便于复现安装结果。

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

版本

1.3.0stable
2026/10/17
1.2.0stable
2026/10/11
1.1.1stable
2026/9/30
查看其余 3 个版本收起版本
1.0.2stable
2026/9/29
1.0.1stable
2026/9/17
1.0.0stable
2026/9/13

相关插件

正在加载相关插件…

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

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

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

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

认领这个 Plugin →
报告问题

相关插件

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

Experimental Cot Translation Bundle@deepseek-ai/dsh-experimental-cot-translation-bundle扩展推理的实验性机器翻译Our Free Model@ebony-vinyl/dsh-our-free-modelOur Free Model — 在 dsh 里装上这个插件即可,无需登录、注册或填 API Key,就能使用包括 DeepSeek V4.1 Flash、Kimi K3 在内的前沿模型,桌面端另有 EAC 协付渠道;2.0 起接入 LobsterAI、Qoder、TRAE、Cline、Loomy、Raccoon、MiniMax、ZCode、Gemini 十个账号渠道(原有匿名免费通道保留)(登录、账号池、积分领取、本地 OpenAI 网关与局域网转发、数据看板与运行日志),六页毛玻璃界面统一呈现。Usage@linxin666/dsh-usage用于 dsh Web GUI 的使用统计插件:检测各提供商的余额和编程套餐配额,并实时记录令牌使用情况;侧边栏 Settings 行上方显示紧凑的价格概览卡片Connect Workbuddydsh-connect-workbuddy把本机登录的 WorkBuddy 模型(国内版与国际版)接入 DeepSeek Harness:每次刷新按上游目录自动读取每个模型的积分倍率,支持逐模型图片输入开关、多账号切换与账号池自动换号,并提供每日签到、卡片与输入框里的胶囊积分读数等只读积分概览。

README

dsh-ui-cost-meter

English | 日本語

Real-time spend for the DeepSeek Harness Web GUI: one pill under the composer, beside the shipped turn/token pills, that says how much the session has cost so far.

⏱ 1 turns 71 steps · 285 tok/s    🗄 7.3M tok · Cache hit 99%    $ 0.42

The amount rides the session projection seam, so it is whole-log (paging and compaction cannot change it), it survives reloads, and it is priced from the durable provider usage the harness already logs. The pill is shaped like the shipped stats pills: clicking it opens a breakdown panel that repeats their dialog's title, rule, and label/value rows, naming each cache bucket, the unpriced tokens, and the route that priced them.

Install

dsh plugin --profile web add dsh-ui-cost-meter

Under a source checkout, add link:<path> works the same way. The plugin declares its own bundle patch, so the row appears in the profile without editing cordis.patch.yml.

Configure

Every field lives on the plugin row, and every price is per one million tokens in whatever currency symbol names.

No configuration is needed. The plugin ships a rate table for every model OpenCode Go, OpenCode Zen, and Command Code served when it was generated:

ProviderRoutesWhere the numbers come from
opencode-go37models.dev, kept only for the ids https://opencode.ai/zen/go/v1/models actually serves
opencode82the same, against https://opencode.ai/zen/v1/models
command-code89https://api.commandcode.ai/provider/v1/models for the ids, each model's page under https://commandcode.ai/models/ for Input, Output, and Cache read

Write rates only for the routes where the shipped number is wrong for you — a peak-hour price, a different plan, a provider the table has never heard of. Your key replaces the shipped one for that route:

- id: cost-meter
  name: dsh-ui-cost-meter
  config:
    symbol: '$'
    rates:
      deepseek-official/deepseek-flash:
        input: 0.15
        output: 0.6
        cacheRead: 0.003
        cacheWrite: 0
FieldMeaning
symbolPrefixed to every amount. Default $.
defaultsUse the shipped table. Default true; false prices only what rates and fallback name.
ratesUnit prices keyed by "<provider>/<model>", then "<model>". Your key wins over the shipped table.
fallbackUnit prices for every route no key matches. Omit it to leave unmatched routes unpriced.

The shipped keys carry the provider names opencode-go, opencode, and command-code. A profile that names the same provider something else gets no default for it and needs its own rates entries.

What the shipped table does not promise

One rate per route can only carry one number, so the table holds the off-peak price each provider publishes:

  • DeepSeek's list price and Command Code's V4.1 Flash and V4 Flash are exactly double at peak, which runs 01:00-04:00 and 06:00-10:00 UTC, Monday through Friday. Command Code bills V4 Flash Fast flat, and doubles everything on V4.1 Flash Fast except the cache read.
  • No provider here bills a cache write, so cacheWrite is 0, except on OpenCode Zen where the published price has one.
  • Command Code's GOAT plan is not a per-token invoice: the $10/month plan grants $60 of DeepSeek V4.1 Flash credits a month, and V4.1 Flash Fast draws on the same allowance, so the pill reads as credits burned rather than an amount owed. OpenCode Go's $10/month plan likewise meters its rates against the plan's limits.
  • Ten OpenCode Go ids and two OpenCode Zen ids that the endpoints serve have no published price anywhere upstream. The table leaves them out on purpose rather than guess.

A route with no matching rate is not guessed at: its tokens are counted as unpriced, contribute nothing to the total, and make the pill mark its amount with a trailing +. The panel then names how many tokens were left unpriced, so a missing rate is visible instead of silently wrong.

Where the numbers come from

The host half registers the costMeter session projection. It folds the durable log: a request/header sets the route, and each settled assistant/message (or assistant/attempt, which preserves a billed attempt that left no surface message) contributes the provider usage embedded in its stream. A re-reported sample for the same turn and step replaces the earlier one; llm/retry-started closes that slot so a retried attempt adds instead. Input, output, cache-read, and cache-write tokens are then priced by the route's rates, with the shipped table folded under the row's own rates.

The client half registers one entry on the conversation.composer.dock slot and renders it into the shipped stats row ([data-composer-stats]) with a React portal, so the cost pill shares that row's font, spacing, and vertical rhythm instead of starting a row of its own. Shells without that marker (DSH 0.2.1 and later) get the pill placed straight into the dock's own row, unwrapped.

The pill and its panel carry the shell's own declarations — the same --dsw-* tokens, sizes, radius, and two-column row grid as the shipped pills and their dialog — because a third-party bundle can only reach the platform modules the shell seeds, not its CSS modules.

Caveats

  • Not a billing record. The figures are the harness's own token accounting times the rates in play. The provider's invoice is the authority; a wrong rate is a wrong pill.
  • One rate per route. A provider that changes its price mid-session, or a route whose price depends on the request size, needs a rate that reflects what you actually pay.
  • Currency is yours to name. Nothing here converts between currencies.

Development

bun install
bun run build     # lib/index.js (host half) and lib/client.js (browser half)
bun test          # pricing fold, formatting, and the built bundle
bun run check     # type check
bun run lint      # biome

src/rates.generated.ts is the price list the plugin ships, and bun run rates:update rebuilds it. The generator reads models.dev plus each provider's /models endpoint for OpenCode, and each Command Code model page for Command Code. Ids upstream does not price are skipped and named on stderr, so refreshing the table is one command and a commit.

lib/ is generated and ignored by git. build.ts bundles the host half as ESM (with zod and @deepseek-ai/schemastery left external) and the browser half as CJS wrapped in the window.__ModuleLoader__.load({ id, factory }) loader format the client module system serves.

License

MIT