dsh-cost-ledger
用于 DeepSeek Harness 的跨会话持久化成本账本插件,将每次 LLM 的 Token 使用情况记录至 SQLite,并提供查询和预算工具。
AI 分析
核心用途是精确统计和管理 API 消耗成本。适合需要跨会话监控 Token 消耗、设定预算上限并分析账单的个人或企业用户。内置了 DeepSeek 官方定价。
安裝
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:suimi8/dsh-cost-ledger說明文件
閱讀完整 README ↗Install (community / standard)
dsh plugin --profile web add
The host discovers the plugin from package.json (dsh.bundle.patch) — no absolute path, no manual wiring. The prepare script builds lib/ from source, so a git checkout installs self-contained. Restart dsh web after install.
Git install note: pnpm ≥10 blocks a git dependency's
preparescript until allowed. If the firstaddfails, copy the exact package key pnpm printed into the profile'spnpm-workspace.yaml(allowBuilds: dsh-cost-ledger: true) and re-run — exactly as the official docs describe.
Install
dsh plugin --profile web add
The host discovers the plugin from package.json (dsh.bundle.patch) — no absolute path, no manual wiring. The prepare script builds lib/ from source, so a git checkout installs self-contained. Restart dsh web after install.
Git install note: pnpm ≥10 blocks a git dependency's
preparescript until allowed. If the firstaddfails, copy the exact package key pnpm printed into the profile'spnpm-workspace.yaml(allowBuilds: dsh-cost-ledger: true) and re-run — exactly as the official docs describe.
Uninstall
## Quick start
```powershell
# 1. Install into your web profile (see Install above)
dsh plugin --profile web add .