luokai-demo/dsh-plugins · plugins/dsh-balance-plugin
侧边栏底部的 DeepSeek 钱包余额:信用卡图标配余额数字,按剩余额度着色(≥ ¥2 绿色、¥0–2 黄色、≤ ¥0 红色),挂载时、每轮对话结束和点击时刷新;余额变动时带符号差额上飘淡出。
已收录
1
Usage
Bundle 已验证
功能介绍
侧边栏底部的 DeepSeek 钱包余额:信用卡图标配余额数字,按剩余额度着色(≥ ¥2 绿色、¥0–2 黄色、≤ ¥0 红色),挂载时、每轮对话结束和点击时刷新;余额变动时带符号差额上飘淡出。
适合
- 希望在侧边栏直接查看 DeepSeek 钱包余额的 DeepSeek Harness 用户。
- 希望每轮对话后看到余额变化、无需另开计费页面的用户。
- 需要用颜色提示余额偏低或耗尽的工作流。
不适合
- 使用其他模型提供商或钱包的用户,因为插件明确仅支持 DeepSeek。
- 需要详细用量归因、账单或逐消息成本分析,而非余额显示的工作流。
- 没有 DeepSeek Harness 侧边栏界面的无头工作流。
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
Option 2 — GitHub Release. Download dsh-balance-plugin-0.2.0.tgz from the Releases page, then:
dsh plugin --profile web add ./dsh-balance-plugin-0.2.0.tgz
Restart dsh web and refresh the browser — the balance appears at the sidebar foot (beside Settings).
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.
License
常见问题常见问题
在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:luokai-demo/dsh-plugins#path:/plugins/dsh-balance-plugin。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。
兼容性以页面上展示的 bundle 与 profile 状态为准。如果某个 profile 尚未检测到,请先保持禁用,并在生产启用前阅读仓库文档。
GitHub 链接和 activity 元数据是 release 与维护状态的来源。新版本发布后重新查看本页,确认目录已经观察到最新版本。
