dsh-chat-cost
为 DSH Web UI 的每个对话实时计算 token 费用:本对话、其子代理与整棵会话树,价格来自内置的 models.dev 快照:七家供应商、139 个有价模型,缓存读写费率按供应商实际公布的取值,DeepSeek 则使用其官方峰谷价格表。每个完成的回答都会在对话中显示自身费用,未打开的对话则按日志计价而不是整行消失。费用按区间计价,依据写入项目目录的只追加 JSONL 账本,因此已记录的工作保留当时的费率。此外还提供:按金额预算排布的工作计划、展示值得接入哪些模型的路由方案比较、以英语/中文/俄语生成的计划文档,以及当费用未归入任何计划单元时的提醒。
- 形态
- Plugin 插件
- 安装
- npm 包安装
- 需要密钥
- 否
- 近月下载
- 1,300
- 最近推送
- 16 天前更新
项目说明
From README
dsh-chat-cost Live token cost for every chat in the DeepSeek Harness (dsh) Web UI: the chat itself, its subagents and the whole session tree, priced from a bundled multi-provider catalog, with an append-only JSONL cost log written into your project folder.
English 中文 Русский Keywords: DeepSeek Harness plugin, dsh plugin, dsh-plugin, token cost, cost per chat, subagent cost, session tree cost, LLM spend tracking, token usage, cost log, JSONL, local-first, DeepSeek V4.
1 Flash, DeepSeek V4 Pro, OpenAI GPT-5, Anthropic Claude, Google Gemini, Kimi K3 (Moonshot), xAI Grok, Mistral, cache read and cache write pricing, peak and off-peak pricing, Cordis plugin.
Status Working end to end, and verified against a running host rather than only in tests: the bundled seven-provider catalog, the pricing engine (peak tiers, cache read and write rules), the Host half that walks the session tree, prices ev
Original description
DeepSeek Harness (dsh) plugin: live token cost of every chat, its subagents and the whole session tree — DeepSeek, OpenAI, Anthropic, Gemini, Kimi, Grok and Mistral prices from a bundled catalog, plus an append-only JSONL cost log in your project folder.
安装方式
npm 包安装 · 安装无需配置
dsh plugin --profile web add dsh-chat-costnpm test # 153 tests; the schema checks need a DSH profile for the validatornpm run prices # refresh the bundled catalog before a release安全能力
静态扫描源码得到的权限画像 —— 回答的是「它要动什么」,而不是「它好不好」
- 执行命令
- 写入文件
- 读取文件
- 访问网络
未发现已知红线(明文传输、安装期执行代码、凭据外传等)。
能力与红线来自 awesome-dsh-plugin 的静态扫描结果(CC0 公有领域),本站未逐行复核源码; 它只覆盖能被静态识别的模式,不等于安全审计结论。
为什么是这个分数
近 17 天内有提交;README 给出了可直接复制的安装命令;装完即可用,无需额外配置;近月 npm 下载 1300 次,star 不多但真在被使用。
- 维护活跃
- 86
- 实用度
- 94
- 生态热度
- 62
- 上手便捷
- 100
- 信号质量
- 100
- 数据置信度
- 100%
相关插件
dsh-budget
PerryLink/dsh-budget
在 llm/stream 瀑布上做按插件粒度的用量预算与费用上限:按模型用量记账、会话与月度预算的预警/阻断、延迟窗口与碳足迹估算。
loongsuite-pilot
alibaba/loongsuite-pilot
Local-first telemetry collector for AI coding agents — unified OpenTelemetry events for Claude Code, Codex, Cursor and more. Token usage, cost, traces and security audit, exported anywhere.
dsh-cost-meter
Han-1413141/dsh-cost-meter
会话与当日 API 费用统计、预算图框(已用%)、官方余额、历史看板,支持峰谷计价与官方价格一键同步。