dsh-deepseek-cost
在Token面板中添加官方计费统计 适合使用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.