stone100010/dsh-token-gauge ↗★ 1
@stone100010/dsh-token-gauge
实时Token与上下文开销仪表盘 适合需要直观监控Token消耗、预算开销和API调用单价的DSH用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:stone100010/dsh-token-gauge说明文档
阅读完整 README ↗Configuration
Scales and reference prices are constants at the top of lib/client.js:
const SCALE_TOKENS = 300e6; // left dial maximum
const SCALE_RATE = 500; // centre dial maximum
const SCALE_COST = 12; // right dial maximum, also the budget
const ZONES = { tokens: [0.5, 0.8], rate: [0.6, 0.84], cost: [0.5, 0.8] }; // amber, red
const PRICES = { uncachedInput: 0.14, cacheRead: 0.0028, cacheWrite: 0.14, output: 0.28 }; // USD / M
The cost dial is an estimate. deepseek-v4.1-flash is absent from DSH's installed model catalog, so DSH computes no cost for it and there is no cost projection to read; the defaults mirror the catalog's deepseek family entry. Put your gateway's real per-million rates in PRICES — at a $12 scale, pricing accuracy is what makes the dial trustworthy. The dial is labelled est. for exactly this reason.