suimi8/dsh-cost-ledger1

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 Analysis

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

Package
dsh-cost-ledger
Version
0.1.0
License
MIT
Last updated
Aug 13, 2026

Install

$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 .