suimi8/dsh-cost-ledger
A cross-session persistent cost ledger for DeepSeek Harness: it auto-logs every LLM token-usage event to SQLite and exposes record_cost / query_cost / set_budget agent tools, with built-in DeepSeek pricing overridable via plugin config. Install-and-go with no extra wiring; a pnpm selftest suite (28 data-layer checks) verifies the storage layer; uninstall removes the plugin (optionally the data dir).
Install
dsh plugin --profile web add github:suimi8/dsh-cost-ledgerdsh plugin --profile web add github:suimi8/dsh-cost-ledger or from a local checkout dsh plugin --profile web add . in the repo (README documents <path-or-package>; the npm name dsh-cost-ledger resolves to another author's package — Kilganon725 — so install from this repo, verified 2026-08-30). Add allowBuilds: dsh-cost-ledger: true to pnpm-workspace.yaml if pnpm blocks the prepare script.
Compatibility
DSH 0.1.0-rc.6 (verified live 2026-08-13); SQLite backend via better-sqlite3 (prebuilt win32 binary, other platforms build from source); Node.js; MIT.
Details
- Repo: suimi8/dsh-cost-ledger
- Category: Other
- Stars: 2
- Version: GitHub source (per README; npm name owned by another author)
- Last push: 2026-08-13
- First seen: 2026-08-13
Recent updates
Auto-log LLM token-usage to SQLite; record_cost/query_cost/set_budget tools; built-in DeepSeek pricing, overridable; 28-check selftest; install-and-go.
FAQ
- What does it store?
- Every LLM token-usage event, persisted to a local SQLite database, with built-in DeepSeek pricing that you can override via plugin config.
- Which tools does the agent get?
- record_cost, query_cost and set_budget — plus automatic logging on every token-usage event.
- How do I verify it works?
- Run pnpm selftest in the repo (28 data-layer checks) — the plugin was live-verified in DSH 0.1.0-rc.6.
Alternatives
YZz-S/dsh-token-cost-meter · Mu-scorpio/token-usage-counter · Sttrevens/dsh-cost-meter