dsh-webui-perf
awa-123-cw
DeepSeek Harness WebUI 性能优化开关插件:长代码流式渲染/历史加载/高亮缓存优化,设置面板一键开关(with official-package patches)
PROJECT TOPICS
PROJECT README
The multi-provider wallet chip for the DeepSeek Harness Web GUI.
A resident one-line chip beside the composer: official DeepSeek (balance, session cost, tokens, one-click recharge, low-balance alert) plus the third-party token total. Accounting is bucketed per provider — a GLM session never shows a DeepSeek balance, and DeepSeek costs are never computed from GLM tokens.
If deepseek-harness-wallet helps you, please consider leaving a ⭐ Star. Thank you!
余额 ¥5.89 · 本场 ¥0.72 · 官 18.8M | 三方 800K · ↗充
--dsw-alias-* theme variables, so light and dark themes both render correctly; the panel closes when you click outside and flips open-direction near screen edges.| Floating window (draggable) | Minimized dot | Below threshold (alert on) | Above threshold (normal) |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
From npm:
dsh plugin --profile web add deepseek-harness-wallet
or from GitHub directly:
dsh plugin --profile web add github:feibi-mochi/deepseek-harness-wallet
Restart dsh web, then hard-refresh the page.
dsh plugin --profile web update deepseek-harness-wallet
dsh plugin --profile web remove deepseek-harness-wallet
The package was renamed from
dsh-wallettodeepseek-harness-walletin 0.1.1. If you installed the old name, remove it withdsh plugin --profile web remove dsh-walletfirst.
| Item | Behavior |
|---|---|
| Token accounting | Listens to the llm/stream event and buckets per provider (deepseek-official vs. everything else) and per session; each usage event also locks its contemporaneous official price, so multiple sessions and pricing windows never mix. |
| Balance | The DEEPSEEK_API_KEY from the credentials seam never leaves this machine except as the Authorization header of the official /user/balance request. |
| Session log | The plugin writes no events; its data lives in $DSH_HOME/storages/wallet.json. |
| Model surface | No tools registered, no prompt injection, zero token cost. |
| Recharge | The URL is hardcoded to the official https://platform.deepseek.com/top_up and is not user-configurable (anti-phishing). |
CNY per 1M tokens, curated from official announcements (cache writes are not billed):
deepseek-chat and deepseek-reasoner keep their flat rates. Each usage event is priced when it arrives; upgrading from 0.1.2 migrates legacy counters once using the then-current rate. Costs are estimates; the API-returned balance is authoritative.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。