dsh-web
zhu1090093659/dsh-webDeepSeek Harness(DSH)Web 插件聚合生态包 · 一切皆插件,创意工坊分发(dsh-market.com)
DeepSeek API 用量监测 DSH 插件:悬浮球 + 展开面板,展示开放平台真实余额、累计消费、今日消费、请求次数、Tokens 与分模型用量,支持手动登录获取 userToken。
中文 | English
DeepSeek API usage monitor — a floating ball shows your recharge balance. Click it to open a panel with real balance, cumulative spending, today's spending, API request count, tokens, per-model usage, and the real-time price multiplier R0 after Aug 17.
| Category | Description |
|---|---|
| 🟢 Floating ball | Docked on the right by default; draggable vertically; snaps to the left when dragged to the left half |
| 📋 Usage panel | Recharge balance, bonus balance, cumulative spend, today's spend, API requests, tokens, per-model usage |
| 📈 R0 multiplier | Real-time A2 / A1, where A1 is the average cost per token before Aug 17 and A2 is the average cost per token from Aug 17 onward |
| 🔐 Login flow | If no userToken is configured, open a local Chrome / Edge / Brave / Chromium browser to sign in and automatically save the token |
| 🚪 Logout | Clear the saved userToken in one click and log in again |
| 🖱️ Interaction | Click outside the panel to close; Esc supported; reduced motion supported |
dsh plugin --profile web add github:mmzm0808/dsh-deepseek-usage
dsh plugin --profile web add "<absolute path to this repository>"
lib/ build, so no build step is required during installNo manual token copying needed.
userToken, then refreshes dataBy default it auto-detects Chrome, Edge, Brave, Chromium, etc. You can also set the
DSH_DEEPSEEK_LOGIN_BROWSERenvironment variable to the browser executable path.
userToken is the platform web login state and is only a configuration item; it is never embedded in plugin source or packages.
In the profile's cordis.patch.yml:
- id: deepseek-usage
config:
platformUserToken: 'your userToken'
Or use an environment variable:
DEEPSEEK_PLATFORM_USER_TOKEN=your userToken
Manual retrieval: sign in at https://platform.deepseek.com/usage → F12 → Application → Local Storage → https://platform.deepseek.com → userToken → copy the value field.
userToken is stored only in local user configuration, never in plugin source or Git/api/deepseek-usage/state | refresh | login/start | login/status | logout (loopback-only)Cache-Control: no-storepnpm install
pnpm build # host tsc + client tsdown
pnpm typecheck
pnpm verify
MIT License · Copyright (c) 2026 mmzm0808