dsh plugins中文
← Back to popular plugin directory

Dsh Cost Ledger

suimi8/dsh-cost-ledger · productivity

Cross-session persistent cost ledger for DeepSeek Harness: logs every LLM token usage to SQLite and exposes record/query/budget tools.

★ 2GitHub stars
0Forks
2026-08-15Last updated
TypeScriptLanguage
MITLicense

Key features

  • Computes costbuilt-in DeepSeek pricing (deepseek-chat / deepseek-reasoner, CNY per 1M tokens).
  • Phase 1 (host side) — complete & live-verified in DSH 0.1.0-rc.6 (last verified 2026-08-13).
  • deepseek-v4-flash — input 0.10 / output 3.0 / cacheRead 9.0 (peak tier)
  • inputTokens = uncached input only.
  • billed input = input + cacheRead + cacheWrite, each priced at its own rate.

Requirements

  • DSH versionverified against 0.1.0-rc.6 (the API surface — ctx.on('llm/stream'), ctx.tools.register, ctx.inject, agentDefaultModel — is confirmed from DSH 0.1.0-rc.6 source).
  • Profilesloads under both dsh web (full UI + HTTP API + dashboard) and dsh --profile headless (token capture + tools only

Install command

dsh plugin --profile web add github:suimi8/dsh-cost-ledger
View GitHub repository ↗Back to popular plugin directory