121212165/dsh-plugin-price-aware ↗★ 0
dsh-plugin-price-aware
Make your coding agent know what it costs: live credits, per-model price, task pre-estimates, and a budget gate. 适合需要精细化控制API调用成本、防止超支的开发者。
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:121212165/dsh-plugin-price-awareREADME
Read the full README ↗Configuration
price-aware:
mode: normal # economy ¥2 · normal ¥10 · max uncapped · custom below
sessionCapMajor: 10 # whole currency units; only read when mode: custom
warnPercent: 75 # this fraction of the cap triggers the ask
taskAskMajor: 1.5 # one step above this gets an A/B/C quote first
balanceFloorMajor: 3 # stop before draining the account below this
holidays: ['2026-10-01'] # Beijing dates billed off-peak
inputIncludesCache: false
prices:
- id: jiyuan/deepseek-v4-flash # provider-scoped rows beat generic ones
currency: CNY
perMillion: { cacheRead: 0.5, uncachedInput: 3, output: 12 }
Relay and reseller endpoints are first-class: your provider's price is not DeepSeek's price, so a prices row is how you say so. Until you do, the plugin refuses to quote in currency.