dsh-chat-cost
为 DSH Web UI 的每个对话实时计算 token 费用:本对话、其子代理与整棵会话树,价格来自内置的 models.dev 快照:七家供应商、139 个有价模型,缓存读写费率按供应商实际公布的取值,DeepSeek 则使用其官方峰谷价格表。每个完成的回答都会在对话中显示自身费用,未打开的对话则按日志计价而不是整行消失。费用按区间计价,依据写入项目目录的只追加 JSONL 账本,因此已记录的工作保留当时的费率。此外还提供:按金额预算排布的工作计划、展示值得接入哪些模型的路由方案比较、以英语/中文/俄语生成的计划文档,以及当费用未归入任何计划单元时的提醒。
Live token cost for every chat in the DSH Web UI: the chat, its subagents and the whole session tree, priced from a bundled models.dev snapshot of seven providers and 139 priced models, with cache read and write rates wherever the provider publishes them and DeepSeek from its own peak and off-peak table. Every finished answer carries its own price in the transcript, and a chat that is not currently open is priced from the log instead of disappearing. Spend is costed per interval from an append-only JSONL ledger in the project folder, so logged work keeps the tariff it was billed at. On top of it: budget-aware work plans packed against a money limit, routing scenarios that show which models are worth connecting, a generated plan document in English, Chinese or Russian, and a warning when spend belongs to no plan unit.
怎么安装
dsh plugin add dsh-chat-cost 简介
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 rea…
推荐参考
信息
- 协议
- MIT
- 语言
- JavaScript
- GitHub 星标
- 0
- 月下载
- 2.2K
- 最近更新
- 2026-09-22
- 创建于
- 2026-09-12
基础安全检查
- 检查结果
- 无
- 收录来源
- curated:awesome-dsh-plugin.com, curated:awesome-dsh-plugin/awesome-dsh-plugin
- 主题标签
- ai-agents, anthropic, budget, cordis, cost-management, cost-tracking, deepseek, deepseek-harness, developer-tools, dsh, dsh-plugin, llm, llm-pricing, local-first, model-selection, observability, openai, subagent, token-usage, usage-tracking
同类推荐
TokenLedger
zh667/TokenLedger
侧边栏用量面板:把 Token 归属到实际服务该请求的中转站,站点从已有的 provider 配置中读出,无需额外配置;含今日/本月/累计三窗口、按站点与模型下钻、一年活跃度热力图,以及 New API / Sub2API / DeepSeek 余额。
dsh-context
bowenliang123/dsh-context
DSH 上下文洞察面板:Context 仪表盘 + /context命令 + Context 浏览器,查看 Context的分类组成、内容详情、演进趋势、压缩/注入事件、统计等一站式 Context 全生命周期管理。
dsh-usage-statistics-panel
HaoyueQin/dsh-usage-statistics-panel
用量统计设置面板:26 周活跃热力图、按日 Token 趋势与缓存命中率曲线、模型用量环形图与明细、时间范围筛选、汇总卡片,支持历史会话回扫与无损重建。
dsh-all-usage
ParticleLight/dsh-all-usage
支持跨多个模型、供应商、工作区与时间范围进行统一分析,并可在全部保留历史中自定义起止日期;实时呈现缓存命中率,并可分别查看模型和供应商的分类数据;单日趋势按小时、跨日趋势按日,提供 53 周 GitHub 风格热力图、连续使用、模型与工作区 Token 占比环图及 Token、成本、占比明细,以及可独立自由组合的筛选;支持查询 DeepSeek 账户余额、管理工作区别名及导出 CSV 数据;独立账本在会话删除前持久化用量,工作区被删除时同样保留并把用量汇总为一行「已删除」,增量重建只处理新增事件;重启时未变化会话不回读日志、直接复用账本(以每会话日志 revision 为变更信号);工作区注册表通过 DSH 的 domain/changed 事件自动探针同步——只对新增/删除的工作区增量重扫,未变化的已有工作区直接复用已计算账本、零全量重扫,统计严格限定已注册工作区(未登记目录一律忽略),扫描完成后通过轻量 revision 状态判断,只有 Host/统计状态变化才获取完整历史,并显示 revision 复用、实际读取、账本恢复和失败等非敏感同步健康信息;全 0 用量的重放不会覆盖已记录的真实用量,Token 口径显式声明(输入不含缓存命中,缓存读写与推理独立成桶)。中文使用本地时区,英文统一使用 UTC;API 仅限本机访问。