boNeXY226/dsh-cost-chip
DeepSeek Harness (dsh) plugin: /cost View cost per session + draggable floating cost capsule
dsh-cost-chip is a DSH profile plugin providing the /cost slash command plus a floating web UI cost chip showing the current session's model, cumulative token usage, billing period (red peak / green off-peak), and estimated monetary cost, with time-of-day pricing that switches automatically on the configured effective date (2026-08-17). The chip at the bottom-left shows e.g. 'deepseek-official · deepseek-v4-pro 🟢 空闲时段 34.5M tok ¥2.5111', refreshes on a 5s auto-refresh plus an immediate refetch when the tokenUsage projection changes, and is draggable (viewport-clamped).
Install
dsh plugin --profile web add "file:/absolute/path/to/ds-plugins"README EN edition (2026-09-01): npm name dsh-cost-chip 404 verified — not yet published. Install as a profile dependency: Option A dsh plugin --profile web add "file:/absolute/path/to/ds-plugins" (or add dsh-cost-chip once published); Option B manual copy of index.js/client.js/package.json into $DSH_HOME/profiles/web/node_modules/dsh-cost-chip/. Then add the command-cost row to $DSH_HOME/profiles/web/cordis.patch.yml and restart dsh web. Verify with dsh --profile web --dump-config.
Compatibility
DSH web profile; composes @deepseek-ai/dsh-commands for /cost; floating chip on web profiles.
Details
- Repo: boNeXY226/dsh-cost-chip
- Category: Other
- Stars: 4
- Version: file:/ path install (npm dsh-cost-chip 404 verified)
- Last push: 2026-08-13
- First seen: 2026-08-13
Recent updates
/cost slash command; floating draggable chip; peak/off-peak pricing; 5s auto-refresh; token totals + estimated cost.
FAQ
- Is dsh-cost-chip on npm?
- Not yet — npm 404 verified 2026-09-01. Install from a local checkout (file:/path) or manual copy into the profile's node_modules.
- What does the chip show?
- Current model, cumulative token usage, billing period (peak/off-peak), and estimated monetary cost, refreshed every 5s.
- How do I verify installation?
- dsh --profile web --dump-config should show the command-cost row after adding it to cordis.patch.yml and restarting.
Alternatives
bobcat848/dsh-calculator · boNeXY226-dsh-cost-chip · RoxsLee/dsh-cost-plugin