DeepSeek Harness plugin

dsh-balance-30503799

Web 插件:在会话头部常驻显示 DeepSeek 账户余额,支持手动/自动刷新

Jump to install

Source facts

Repository
305037991x-pixel/dsh-balance
Latest update
Aug 16, 2026
Category
Memory
GitHub stars
0
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/305037991x-pixel/dsh-balance
Plugin: dsh-balance-30503799
Author: 305037991x-pixel

Check the source files

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

File explorer3 files
README.mdSource · read only

dsh-balance

> DeepSeek 账户余额芯片 · DeepSeek account balance chip for DeepSeek Harness Web

会话头部常驻的 DeepSeek 余额芯片:显示账户可用余额,3 分钟自动刷新,悬停查看总余额/充值/赠送明细。

A persistent DeepSeek balance chip in the conversation header: shows the account balance, auto-refreshes every 3 minutes, with total / topped-up / granted breakdown on hover.

功能 / Features

  • 会话头部芯片,显示当前可用余额(¥/$/按币种符号)
  • 悬停气泡:总余额 · 充值 · 赠送
  • 3 分钟自动刷新 + 手动刷新按钮
  • 切换会话不重复拉取:余额数据与定时器为模块级共享缓存
  • 密钥只存在于宿主侧,浏览器永不接触

安装 / Install

dsh plugin --profile web add github:305037991x-pixel/dsh-balance

重启 dsh web 并硬刷新页面(Ctrl+Shift+R)。

配置 / Configuration

$DSH_HOME/.credentials.yaml 中配置(或环境变量同名):

DEEPSEEK_API_KEY: sk-xxx

工作原理 / How it works

文件职责
Hostlib/index.js注册 GET /dsh-balance:解析 DEEPSEEK_API_KEY(凭证服务:环境变量 → $DSH_HOME/.credentials.yaml.env),调用官方余额接口 https://api.deepseek.com/user/balance
Clientlib/client.jsconversation.session.header.utilities 槽位注册芯片;模块级共享数据 + 3 分钟定时器

余额数据来源:DeepSeek API - Get User Balance

License

MIT