deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:ai-shushu/dsh-quota-meter
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Per-session spend & quota meter for DSH — real token billing, live progress bar, budget blocking, configurable multi-model pricing.
给 DSH 的每个会话窗口设置金额额度:按真实 token 用量 × 可配置价目表记账,输入框上方显示消耗进度条,额度耗尽时自动拦截新的模型调用。
| 设置额度 | 消耗反馈 |
|---|---|
![]() |
![]() |
| 未配价模型提示 | 限额弹窗 |
|---|---|
![]() |
![]() |
llm/stream 的真实 usage 记账,缓存命中/未命中/输出分档计费-¥ 金额徽标agent/pre-step),并弹出提示~/.dsh/storages/quota-meter/sessions/),重启 dsh 不丢;会话关闭时自动清理,与对话记录生命周期一致Any machine with dsh CLI — 任意装有 dsh 的机器,一条命令:
dsh plugin --profile web add github:ai-shushu/dsh-quota-meter
Locked version — 锁版本安装(推荐正式环境):
dsh plugin --profile web add github:ai-shushu/dsh-quota-meter#v0.3.0
dsh plugin --profile web remove quota-meterLocal development — 本地开发用 checkout 链接(改动即时反映):
dsh plugin --profile web add /path/to/quota-meter-plugin
价目表动态可编辑(UI 入口:额度条行尾「价格」),持久化到 ~/.dsh/storages/quota-meter/prices.json。
按 2026-08-17 起 DeepSeek 官方价(涨幅后),单位 ¥/每 1M tokens:
| 缓存命中 | 缓存未命中 | 输出 | |
|---|---|---|---|
| 空闲时段 | ¥0.05 | ¥1.5 | ¥4.5 |
| 高峰时段 | ¥0.10 | ¥3.0 | ¥9.0 |
| 缓存命中 | 缓存未命中 | 输出 | |
|---|---|---|---|
| 空闲时段 | ¥0.15 | ¥4.5 | ¥13.5 |
| 高峰时段 | ¥0.30 | ¥9.0 | ¥27.0 |
fallback 模型价计费输入 = 未缓存输入 + 缓存命中输入,输出单独计价模型调用结束 → llm/stream 流中 {type:'usage'} 块
→ Host 按模型查价目表(峰谷自动选档)折算金额
→ 累加到会话记账本(spent / calls)
→ 客户端 1s 轮询 /quota/state → 进度条前进 + 扣费徽标弹出
额度耗尽 → agent/pre-step 返回 reject → 拦截新调用 + 提示弹窗
git clone git@github.com:ai-shushu/dsh-quota-meter.git
dsh plugin --profile web add ./dsh-quota-meter # 本地链接安装
改 index.js(host)/ lib/client.js(client)→ client 刷新即生效,host 重启生效。
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。