
Aisland-SJL/dsh-usage
dsh-usage
๐ Persistent dock & fully-customizable balance/usage panel for DeepSeek Harness โ activity heatmap, dual-channel comparison, local-only & privacy-first
Install
npx @deepseek-ai/dsh plugin --profile web add "github:Aisland-SJL/dsh-usage"Restart `dsh web` after install. Bundle APIs can change during the developer preview.
README badge
[](https://dshhub.dev/plugins/dsh-usage)Paste this into your README. The star count updates with every catalog sync.
From the README
Excerpt from Aisland-SJL/dsh-usage, cleaned of badges and images.
๐ dsh-usage
A persistent floating dock, a fully customizable balance / token-usage panel, an activity heatmap, and a dual-channel usage comparison for the DeepSeek Harness Web GUI (dsh web) and official Windows Desktop. See the host scope below.
โจ Feature tour
๐ Persistent dock
Your key numbers stay visible at all times โ balance glows green (red only when out of credit), rows are separated by hairlines, and a settings gear plus one-click refresh sit in the corner. When the sidebar collapses, the dock folds into a tiny balance pill.
<table><tr> <td width="44%"><img src="docs/images/dock.png" alt="dsh-usage dock" width="100%"></td>- ๐ข Balance โ green when healthy, red when drained
- ๐ Today / Month / Cache hit โ glanceable token stats
- โ Gear opens the panel ยท โป refresh re-queries instantly
- ๐งฒ Mirrors your pins โ every change applies immediately
๐๏ธ Detail panel โ all seven widgets
A two-column card layout; every widget has a detail and a compact form, and can be drag-reordered, collapsed, hidden, or pinned.
<table><tr>| Widget | What it does |
|---|---|
| ๐ณ Balance | Big number on the left, available / topped-up / granted rows on the right; provider switchable |
| ๐ Today | Today's tokens plus input / output / cache-read breakdown |
| ๐ This month | Monthly tokens plus the same breakdown |
| ๐ฏ Cache hit | Today's and all-time cache hit rates |
| โ๏ธ Channel share | DSH channel vs Claude Code channel ratio bar |
| ๐ Usage log | Last 14 days per-day list, click to drill into per-model detail |
| ๐ฅ Activity heatmap | 28-day ร 6-band dot grid (dates across, 0โ24h down) |
๐จ Everything customizable
Accent (presets + color picker), background, and panel opacity are adjustable live. Drag-reorder, pin, collapse, hide โ every number presents your way, echoing DeepSeek Harness's "everything is a plugin" spirit.
<p align="center"><img src="docs/images/customizer.png" alt="dsh-usage customizer" width="78%"></p>At a glance
| Feature | Notes | |
|---|---|---|
| ๐ณ | Persistent dock | Pinned compacts always visible; collapses into a balance pill when the sidebar folds |
| ๐จ | Everything customizable | Widgets: pin / collapse / hide / drag-reorder with a dashed placeholder and glide animation; accent, background, opacity; persisted in localStorage |
| ๐ | Balance & usage panel | Provider picker, balance breakdown, today/month totals in k/M/B units, cache hit, usage log with per-model drilldown |
| ๐ฅ | Activity heatmap | GitHub-style dots: 28 days ร 6 four-hour bands with date labels |
| โ๏ธ | Channel share | DSH channel vs Claude Code channel (incremental JSONL aggregation of ~/.claude/projects) |
| ๐ | Background refresh | Refresh at startup, then every 5 minutes: balances, DSH tokens, Claude Code aggregation |
| ๐ | Local-only security | Three loopback-only GET endpoints; credentials resolved server-side; upstream forced HTTPS with DNS pinning; Claude logs aggregate numbers only โ message text never leaves the machine |
UI supports Chinese and English. Balance requests resolve keys in memory through Harness's credential service; keys are not included in plugin caches or browser responses.
Quick start
โฆ

