dsh-cost-ledger
Cross-session persistent cost ledger for DeepSeek Harness: logs every LLM token usage to SQLite and exposes record/query/budget tools. Built-in DeepSeek pricing, overridable via config.
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 .