xxvk/dsh-cost-crystal
Floating cost crystal for the Web UI: balance card, real-time tok/s, peak/off-peak billing countdown, last-24h spend, and a 🔮 next-message cost forecast, all timezone-aware.
dsh-cost-crystal is a cost & usage crystal ball for the DeepSeek Harness web GUI: a balance card with CNY/USD balance and data-freshness hints (click to refresh), a real-time tok/s rate indicator that lights up within 2s of token consumption, peak/off-peak billing status with countdown to the next rate switch and a last-24h spend estimate, and a next-message cost forecast that estimates tokens and cost from the current conversation context and historical usage — re-pricing instantly when you switch models. All spend/cost figures are local-log estimates (not the official bill); pricing implements the official DeepSeek policy timeline, and the API key never leaves the Host.
Install
dsh plugin --profile web add dsh-cost-crystalnpm dsh-cost-crystal 0.1.0 verified 2026-09-04 (maintainer xxvk == repo owner; repo field empty; README EN primary w/ zh doc). Install: dsh plugin --profile web add dsh-cost-crystal (or dsh plugin --profile web add "github:xxvk/dsh-cost-crystal"), then restart dsh web and hard-refresh. The package declares dsh.bundle, so no manual config row is needed.
Compatibility
DeepSeek Harness web profile (@deepseek-ai/dsh); zero runtime dependencies; timezone-aware pricing engine implementing the official DeepSeek policy timeline (peak/off-peak/flat buckets, CNY/USD).
Details
- Repo: xxvk/dsh-cost-crystal
- Category: Usage & Billing
- Stars: 0
- Version: npm dsh-cost-crystal 0.1.0
- Last push: 2026-08-16
- First seen: 2026-08-15
Recent updates
Per-model usage bucketing from session logs is planned for v0.2.0; the forecast deepens in v0.3.0.
FAQ
- What does the crystal ball show?
- Balance, real-time tok/s, peak/off-peak billing status with a switch countdown, a 24h spend estimate, and a forecast of your next message's tokens and cost.
- Are the numbers official?
- No — spend/cost figures are local-log estimates computed from session logs and public pricing, and may differ from the official bill.
- Does the API key leave the host?
- No — the key stays on the Host; the browser card talks to the host over the profile's own channel.
Alternatives
namesColin/DSH-Plugin-Account-HUD · crazywoola/dsh-balance · boNeXY226/dsh-cost-chip