dsh-plugins (dsh-balance-plugin)
luokai-demo/dsh-plugins/plugins/dsh-balance-plugin
侧边栏底部的 DeepSeek 钱包余额:信用卡图标配余额数字,按剩余额度着色(≥ ¥2 绿色、¥0–2 黄色、≤ ¥0 红色),挂载时、每轮对话结束和点击时刷新;余额变动时带符号差额上飘淡出。
安装
dsh plugin --profile web add github:luokai-demo/dsh-plugins该插件位于仓库的 plugins/dsh-balance-plugin 子路径下。
README
dsh-plugins
English | 中文
A DeepSeek-only plugin series for DeepSeek Harness — every plugin targets the DeepSeek platform exclusively: official DeepSeek API endpoints, DEEPSEEK_API_KEY credentials, and the DeepSeek wallet. No other platforms or providers are supported, and no cross-provider compatibility is planned. Each plugin is a standalone bundle with one-command install and its own version.
Plugins
| Plugin | Looks like | What it does | Install |
|---|---|---|---|
| dsh-balance-plugin | ![]() | DeepSeek wallet balance at the sidebar foot: card icon + status-tinted amount (green ≥ 2, amber 0–2, red ≤ 0), refreshes on turn end and on click, with a floating delta (+¥3.14 / -¥1.97) animating up and fading on every balance change | dsh plugin add dsh-balance-plugin |
Install
Option 1 — npm (recommended, one command). web is the profile dsh web uses; replace it with your own profile name if yours differs (see ls ~/.dsh/profiles/):
dsh plugin --profile web add dsh-balance-plugin
If a registry mirror or pnpm 11's minimum-release-age guard has not picked up a just-released version yet, install or update that exact version from the official npm registry instead:
dsh plugin --profile web add dsh-balance-plugin@<version> --registry=https://registry.npmjs.org/
Option 2 — GitHub Release. Download the dsh-balance-plugin-<version>.tgz asset for the release you want from the Releases page, then:
dsh plugin --profile web add ./dsh-balance-plugin-<version>.tgz
Restart dsh web and refresh the browser — the balance appears at the sidebar foot (beside Settings).
Desktop app. The Desktop app serves the same Web surface, so install into its own desktop profile instead of web — from the app's Plugins page, or dsh plugin --profile desktop add dsh-balance-plugin while the app is quit. Tested on Desktop 0.2.0-rc.2 (sidebar action registered, both /dsh-balance routes mounted).
Update
The plugin requires DeepSeek Harness 0.1.7 or 0.2.0 (release candidates included). On the 0.2.0 series install 0.2.3 or newer: 0.2.2 and earlier declare only the 0.1.7 series, so the Harness refuses to load them. For an existing npm install:
dsh plugin --profile web update dsh-balance-plugin
dsh --profile web --dump-config # expect a "# == dsh-balance-plugin" layer
Restart dsh web and hard-refresh the browser after the update. To update a Release-tarball install, run dsh plugin --profile web add ./dsh-balance-plugin-<version>.tgz with the newer archive, then run the same verification.
Install with an AI assistant
Paste this prompt to any AI that can operate a terminal:
Install the dsh-balance-plugin plugin for DeepSeek Harness: first run
dsh plugin --profile web add dsh-balance-plugin; if npm does not have it (E404 error), download the latest dsh-balance-plugin-*.tgz from https://github.com/luokai-demo/dsh-plugins/releases and rundsh plugin --profile web add ./dsh-balance-plugin-*.tgz; after installing, confirm the dsh-balance-plugin layer appears withdsh --profile web --dump-config, then restartdsh web, hard-refresh the browser (Cmd+Shift+R), and finally verify a card icon with the balance amount at the sidebar foot. (Replacewebwith your profile name if you do not use the default one.)
Development and publishing
Full workflows for adding plugins, building, testing, and releasing through both channels live in DEVELOPING.md. Each plugin directory carries its own README and publishing manual.
