luokai-demo/dsh-plugins · plugins/dsh-balance-plugin

侧边栏底部的 DeepSeek 钱包余额:信用卡图标配余额数字,按剩余额度着色(≥ ¥2 绿色、¥0–2 黄色、≤ ¥0 红色),挂载时、每轮对话结束和点击时刷新;余额变动时带符号差额上飘淡出。

Bundle 已验证 MIT TypeScript v0.2.0
Bundle 已验证

已收录

1

Usage

Bundle 已验证

版本v0.2.0
语言TypeScript
许可证MIT
在 GitHub 查看

功能介绍

侧边栏底部的 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 balance readout 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 run dsh plugin --profile web add ./dsh-balance-plugin-*.tgz; after installing, confirm the dsh-balance-plugin layer appears with dsh --profile web --dump-config, then restart dsh web, hard-refresh the browser (Cmd+Shift+R), and finally verify a card icon with the balance amount at the sidebar foot. (Replace web with 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

MIT

常见问题常见问题

在启用了 DSH 的终端中执行已验证命令 dsh plugin --profile default add github:luokai-demo/dsh-plugins#path:/plugins/dsh-balance-plugin。命令会解析公开 package 元数据,并保持插件与本页展示的目录身份一致。