wuenna/dsh-deepseek-cost ↗★ 0

dsh-deepseek-cost

DSH plugin: DeepSeek-official cost accounting (session total + current turn) added to the built-in Token usage panel. 适合使用DeepSeek官方API并需要实时监控会话花费的用户。

Package
dsh-deepseek-cost
Compatibility
Unverified
Cordis peer range
^4.0.2
Version
0.1.0
Last updated
Sep 23, 2026

Install

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

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.