Ethanz11-creat/dsh-billing-tui
Ethanz11-creat★ 0JavaScript最后同步: 2026-08-19
Peak/off-peak billing plugin for DeepSeek Harness (dsh) — real-time token costing, ASCII whale receipts, TUI status line & /billing command
README 摘要
dsh-billing-tui DeepSeek Harness (DSH) 峰谷计费插件 —— 实时监听会话 token 用量、按 DeepSeek 官方峰谷定价计算费用、生成鲸鱼 ASCII 账单小票,并在 TUI 状态行实时显示费用。 专为 [dsh][] (DeepSeek Harness) 及其 TUI 终端界面设计,同时兼容 Web UI。安装后即可在对话流里用 /billing 打印一张完整的收银台风格账单。 [dsh]: https://github.com/deepseek-ai/dsh 效果 在 TUI 对话流里运行 /billing ,会持久打印一张完整的鲸鱼 ASCII 账单小票(点引导线两端对齐、对终端空格折叠免疫): 特性 - 峰谷分时计费 :严格对齐 DeepSeek 官方计价页,高峰时段收全价、空闲时段打五折,切换时段自动按对应单价结算。 - /billing 命令 :在 TUI 对话流中持久打印鲸鱼 ASCII 账单小票(含每个模型的 费用小计 与整体 费用汇总 ),而不是一闪而过的 toast。 - TUI 状态行 :状态栏实时显示当前会话累计费用 + 高峰/空闲状态。 - Agent 工具 :暴露 show billing (查费用)与 check pricing period (查当前峰谷时段)两个工具,Agent 可自行调用。 - 会话继承 :切换模型 fork 出新会话时继承父会话用量,费用不会被清零。 - 去重防堆叠 :连续多次 /billing 若没有新的输入/输出,不会重复贴票。 - 只计 DeepSeek 模型 : deepseek-v4-flash / deepseek-v4-pro 正常计费,其它模型(Claude / GPT / 本地模型等)与未知型号返回 null ,不计费、不误判。 示例账单 /billing 打印的小票原文如下(与上方截图一致): 定价 以 DeepSeek 官方计价页 为准,单位 元 / 百万 tokens ,空闲时段价格为高峰时段的一半。 模型 用量类型 高峰 空闲 deepseek-v4-flash 输入(缓存命中) ¥0.10 ¥0.05 输入(缓存未命中) ¥3.00 ¥1.50 输出 ¥9.00 ¥4.50 deepseek-v4-pro 输入(缓存命中) ¥0.30 ¥0.15 输入(缓存未命中) ¥9.00 ¥4.50 输出 ¥27.00 ¥13.50 - 高峰时段 :北京时间 9:00–12:00 、 14:00–18:00 ( 每天,含周末 )。 - 空闲时段 :除高峰时段外的其余时间,价格为高峰的 50%。 - 推理 token :与输出 token 合并后按输出档位计费。 - 缓存命中 : Cached 行对应 DeepSeek API 返回的 promp…
在 GitHub 查看完整 README →分类
🎨 Best DeepSeek Harness Design Plugin. The open-source Claude Design alternative. 🖥️ Local-first desktop app. 🖼️ Your coding agent becomes the design engine: prototypes, landing pages, dashboards, slides, images & video — real files, HTML/PDF/PPTX/MP4 export. 🤖 Claude Code / Codex / Cursor / DeepSeek Harness / OpenCode & 20+ CLIs via BYOK.
★ 90,234
esengine/DeepSeek-ReasonixDeepSeek-native AI coding agent for your terminal. Engineered around prefix-cache stability — leave it running.
★ 35,020
crafter-station/petdexA public gallery of animated pets for Codex, Claude Code, DeepSeek Harness, Hermes, OpenCode, Gemini CLI, and more.
★ 3,949