DeepSeek Harness plugin

dsh-deepseek-usage-mmzm0808

DeepSeek API 用量监测:侧边栏悬浮球 + 展开面板,展示真实余额、当日 Tokens、分模型用量与预估消费。

Jump to install

Source facts

Repository
mmzm0808/dsh-deepseek-usage
Latest update
Aug 20, 2026
Category
UI Enhancements
GitHub stars
10
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/mmzm0808/dsh-deepseek-usage
Plugin: dsh-deepseek-usage-mmzm0808
Author: mmzm0808

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer3 files
README_EN.mdSource · read only
README language

📊 dsh-deepseek-usage

中文 | 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.

<p align="center"> <img src="https://raw.githubusercontent.com/mmzm0808/dsh-deepseek-usage/master/docs/preview-light.jpg" alt="Light mode preview" width="45%"> <img src="https://raw.githubusercontent.com/mmzm0808/dsh-deepseek-usage/master/docs/preview-dark.jpg" alt="Dark mode preview" width="45%"> </p>

<p align="center"> <img alt="license" src="https://img.shields.io/badge/license-MIT-blue"> <img alt="version" src="https://img.shields.io/badge/version-v0.1.0-blueviolet"> <img alt="runtime" src="https://img.shields.io/badge/runtime-dsh%20web-4d6bfe"> </p>

✨ Features

CategoryDescription
🟢 Floating ballDocked on the right by default; draggable vertically; snaps to the left when dragged to the left half
📋 Usage panelRecharge balance, bonus balance, cumulative spend, today's spend, API requests, tokens, per-model usage
📈 R0 multiplierReal-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 flowIf no userToken is configured, open a local Chrome / Edge / Brave / Chromium browser to sign in and automatically save the token
🚪 LogoutClear the saved userToken in one click and log in again
🖱️ InteractionClick outside the panel to close; Esc supported; reduced motion supported

🚀 Install

Git

dsh plugin --profile web add github:mmzm0808/dsh-deepseek-usage

Local development

dsh plugin --profile web add "<absolute path to this repository>"
  • The repo ships a complete lib/ build, so no build step is required during install
  • Restart dsh after install
  • DSH plugins use pnpm; publishing to npm is not required for GitHub distribution

📖 Usage

1. View: the floating ball shows the recharge balance; click to open the panel 2. Drag: drag the ball vertically; it snaps to the left or right on release 3. Login: click Login in the panel footer and sign in to the DeepSeek platform in the opened Chrome / Edge / Brave / Chromium browser window 4. Logout: click Logout in the panel footer to clear the local userToken 5. Close: click outside the panel, press Esc, or click ✕

🔑 Login & Configuration

✅ Recommended: one-click login

No manual token copying needed.

1. Open the floating ball panel 2. Click Login in the panel footer 3. The plugin opens a local Chrome / Edge / Brave / Chromium browser window to the DeepSeek platform 4. Sign in normally 5. The plugin automatically reads and saves the userToken, then refreshes data

> By default it auto-detects Chrome, Edge, Brave, Chromium, etc. You can also set the DSH_DEEPSEEK_LOGIN_BROWSER environment variable to the browser executable path.

Manual configuration (optional)

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.comuserToken → copy the value field.

🗂️ Data & Security

  • All data comes from the DeepSeek platform private API, same source as the official usage page; no local pricing or estimated spending
  • userToken is stored only in local user configuration, never in plugin source or Git
  • API: /api/deepseek-usage/state | refresh | login/start | login/status | logout (loopback-only)
  • Responses use Cache-Control: no-store

🛠️ Development

pnpm install
pnpm build      # host tsc + client tsdown
pnpm typecheck
pnpm verify

📄 License

MIT License · Copyright (c) 2026 mmzm0808

⭐ Star History

<p align="center"> <img alt="Star History" src="https://api.star-history.com/svg?repos=mmzm0808/dsh-deepseek-usage&type=Date"> </p>