bobcat848/dsh-calculator1

dsh-calculator

DeepSeek Harness web plugin: DeepSeek API spend (per session / all sessions) and account balance in the aside panel. Only deepseek-official routes are billed; third-party models are reported as unbilled.

AI Analysis

核心用途是统计单会话或全会话的 DeepSeek 官方 API 消耗金额并展示余额。适合需要精细化控制 API 成本的用户。必要条件是配置官方 DEEPSEEK_API_KEY。

Package
dsh-calculator
Version
1.0.0
License
MIT
Last updated
Aug 14, 2026

Install

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:bobcat848/dsh-calculator

配置

The plugin needs no configuration beyond your DeepSeek API key, which DSH already stores through its credentials service (the Models page writes it to ~/.dsh/.credentials.yaml as DEEPSEEK_API_KEY, or you can export it in the launching environment). The balance feature reads that same credential.

If the key is missing, the balance card shows a friendly error and the cost panel keeps working.