dsh-session-cost
Real-time session cost meter for the DeepSeek Harness web GUI: folds provider token usage into a per-session cost projection and displays it live under the composer.
AI 分析
核心用途是提供直观的会话消费监控。适合需要严格控制 API 预算、实时评估不同模型调用成本的个人开发者或企业用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:dog-lin/dsh-session-costドキュメント
README 全文を読む ↗想改配置但不想重启?
Profile 补丁支持热加载,但要用按 id 覆盖,而不是再 insert 一次:
## 配置 / Configuration
```yaml
config:
currency: CNY # 显示与计价货币(ISO 4217)
autoUpdate: true # 是否自动同步官网价格(默认 true)
updateIntervalHours: 24 # 抓取间隔(默认 24)
pricing: # 按模型 id 计价;种子值会被官网新价更新,加 pin: true 则冻结
deepseek-v4-flash: { input: 1, output: 2, cacheRead: 0.02, cacheWrite: 0 }
deepseek-v4-pro: { input: 3, output: 6, cacheRead: 0.025, cacheWrite: 0 }
fallback: # 未在 pricing 中的模型(默认全 0 = 未计价)
input: 0
output: 0
cacheRead: 0
cacheWrite: 0