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并需要实时监控会话花费的用户。

패키지
dsh-deepseek-cost
호환성
미검증
Cordis peer 범위
^4.0.2
버전
0.1.0
최근 업데이트
2026. 9. 23.

설치

$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.