dsh-deepseek-cost
DSH plugin: DeepSeek-official cost accounting (session total + current turn) added to the built-in Token usage panel. 适合使用DeepSeek官方API并需要实时监控会话花费的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wuenna/dsh-deepseek-costドキュメント
README 全文を読む ↗Configuration
The price book lives at the top of lib/index.js (FLASH_TIERS, PRO_TIERS,
PRICE_BOOK, OFFICIAL_PROVIDERS). Add a tier for a new model id, or a new
{ from, ... } entry when DeepSeek changes rates. stateVersion must be bumped
whenever the fold's meaning changes, so persisted projection checkpoints are
discarded instead of forward-applied — it is at 2, the version that added the
per-turn ledger; a version-1 checkpoint also fails the state schema, so it is
replayed from the session log either way.