bowenliang123/dsh-context
bowenliang123/dsh-contextDSH 上下文洞察面板:Context 仪表盘 + /context命令 + Context 浏览器,查看 Context的分类组成、内容详情、演进趋势、压缩/注入事件、统计等一站式 Context 全生命周期管理。
用量段位与战绩卡片:按本月 token 消耗评 🐟→🐳 五档段位,分位本地估算(零上报);6 家厂商 46 个模型精准计价,支持国内厂商按输入长度分档;自动回填安装前的历史会话;8·17 调价前后同一份用量的新旧价对比。数据全在本机,无遥测。
An electricity meter for your whale — usage & cost dashboard for DeepSeek Harness
One-line install · Zero config · Old-vs-new price comparison · Shareable "AI Bill" cards
DeepSeek raised prices on 2026-08-17: v4-flash cache-miss input went ¥1 → ¥3, output ¥2 → ¥9 (peak tier). Which raises the only question anyone actually has: how much more is my agent costing me now?
Whale Meter prices the same usage under both the old and new tables side by side, shows what the cache is saving you, which model is burning money — and renders a bill card pretty enough to post.
dsh plugin --profile <your-profile> add dsh-whale-meter
Restart dsh web — a 🐳 spend chip appears in the session header. Click it for the full bill.
From source:
dsh plugin --profile <your-profile> add github:Shiye-10Pages/dsh-whale-meter(pnpm will ask you to allow the build once; pin a commit for safety).
⚡½ off-peak — note this is not cheaper than before the hike; off-peak still costs more than the old flat rateWorks with zero config. To tweak, override in your profile's cordis.patch.yml:
- update:
- id: whale-meter
config:
currency: USD # or CNY (default)
budgetDaily: 1
apiKey: sk-... # balance lookup only; falls back to DEEPSEEK_API_KEY
prices:
my-model: { hit: 0.5, miss: 4, out: 12 } # per million tokens
assistant/chunk usage authoritative, assistant/message.usage fallback, deduplicated per the official accounting rules), appended to ~/.dsh/whale-meter/usage-YYYY-MM.jsonlWill the numbers match my platform bill exactly? They're estimates from official rates per-request; usually very close. The platform bill is authoritative. Pricing lives in one file (src/pricing.data.ts, versioned 2026-08-14) — PRs welcome when rates change.
Third-party models? Tokens are always counted; unknown models are marked unpriced instead of guessing — add your own rates via prices.
TUI / headless? Collection is host-side; curl http://127.0.0.1:3080/whale-meter/api/summary works anywhere. A standalone TUI view is on the roadmap.
Backfill of pre-install sessions · monthly report export · off-peak scheduling hints · built-in rates for more providers · TUI view
Community plugin, not affiliated with DeepSeek. dsh is a developer preview; when upstream breaks things, this plugin follows up fast (file an issue to nudge).
If it helps, a ⭐ means a lot to an indie dev shipping at 2am.
MIT © 2026 shiye (十页)