Sttrevens/dsh-cost-meter

插件 ⭐ 1 MIT web-ui

dsh 插件:在 Web 界面中显示每轮 USD 成本徽章(会话总计 + 每消息页脚,悬停显示明细),基于令牌使用量乘以可配置的定价表计算得出。

catalog 简介:dsh plugin: per-turn USD cost badge in the Web UI (session total + per-message footer, hover breakdown) from token usage x a configurable pricing table.

安装

The plugin reads `~/.dsh/cost-pricing.json` on boot (override the path with the
`DSH_COST_PRICING` env var or the row's `config.pricingPath`). On first run it
writes the default table to that path; edit it and restart `dsh web` to apply
changes. A model without a `models` entry falls back to `default` (zero cost
when no `default` is present).

## Install

The package declares a `dsh.bundle` manifest, so `dsh plugin add` installs it
**and** adds it to the profile's bundle layers automatically — no manual patch
edit:

Sttrevens/dsh-cost-meter 加入你的 DSH 配置(web profile)即可启用。

README

展开完整 README 收起

README 内容为空。