suimi8/dsh-cost-ledger1

dsh-cost-ledger

用于 DeepSeek Harness 的跨会话持久化成本账本插件,将每次 LLM 的 Token 使用情况记录至 SQLite,并提供查询和预算工具。

AI 分析

核心用途是精确统计和管理 API 消耗成本。适合需要跨会话监控 Token 消耗、设定预算上限并分析账单的个人或企业用户。内置了 DeepSeek 官方定价。

套件
dsh-cost-ledger
版本
0.1.0
授權
MIT
最近更新
2026年8月13日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:suimi8/dsh-cost-ledger

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 prepare script until allowed. If the first add fails, copy the exact package key pnpm printed into the profile's pnpm-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 prepare script until allowed. If the first add fails, copy the exact package key pnpm printed into the profile's pnpm-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 .