dsh-balance

by mxl2498

0 模型与账号接入github 检测到 manifest package.json#dsh收录于 08-16

DSH Web 插件:悬浮显示 DeepSeek 账户余额,点击直达充值页 | DSH widget showing your DeepSeek balance with a top-up link

安装

dsh plugin --profile web add github:mxl2498/dsh-balance

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

DSH Web 插件:右下角悬浮显示 DeepSeek 账户余额,点击直达官网充值页。

  • 悬浮胶囊实时显示总余额(如 余额 ¥110.00),可拖动到任意位置(记忆在 localStorage);
  • 点击展开明细卡片:总余额 / 充值余额 / 赠送余额、最近更新时间、刷新与去充值 ↗ 按钮;
  • 余额低于阈值(默认 ¥5)时胶囊变红并带 ⚠ 告警;
  • 服务端代理余额接口,DEEPSEEK_API_KEY 密钥只留在服务端,不会进入浏览器;
  • 60 秒自动刷新(页面隐藏时暂停,回到前台立即补一次)。

截图

右下角悬浮球(点击展开明细与充值入口):

余额悬浮球

设置 → 「余额悬浮球」页(开关 / 刷新间隔 / 低余额阈值 / 悬浮位置):

余额悬浮球设置页

架构

浏览器端(悬浮球 UI)  --fetch-->  服务端代理 /dsh-balance/balance  --fetch-->  DeepSeek API
   lib/client.js                    lib/index.js (ctx.webServer + ctx.credentials)   api.deepseek.com/user/balance

服务端通过 ctx.credentials 解析 DEEPSEEK_API_KEY(DSH 凭证系统,当前已配置), 带 Authorization: Bearer 请求 https://api.deepseek.com/user/balance,结果缓存 60 秒。

配置

在 cordis.patch.yml(本包自带,可被 profile 的 patch 覆盖)中调整:

配置项 默认值 说明
cacheSeconds 60 服务端余额缓存秒数
topUpUrl https://platform.deepseek.com/top_up 充值页地址
enabled true 是否启用悬浮球
refreshSeconds 60 客户端自动刷新间隔秒数
lowBalanceThreshold 5 余额低于该值(CNY)时红色告警
position bottom-right 默认悬浮位置(bottom-right / top-right / bottom-left / top-left)

安装(从 GitHub)

# 加入 web profile 的依赖(声明 dsh.bundle,dsh plugin 会自动追加进 bundles)
dsh plugin --profile web add github:mxl2498/dsh-balance
# 然后重启 DSH Desktop / dsh web

本地开发时也可用 dsh plugin --profile web add file:../dsh-balance 安装本地目录。

注意

  • 余额接口以 balance_infos 第一项为准(一般即 CNY 账户);多币种时卡片会列出各项。
  • 若显示"余额 --",把鼠标悬停在胶囊上看具体错误(未配置密钥 / HTTP 状态 / 网络失败)。
  • 充值页需要登录 DeepSeek 开放平台账号。

原始 README: https://github.com/mxl2498/dsh-balance/blob/main/README.md ↗

同类插件

查看全部 →
模型与账号接入Anionex

agent-vision-toolkit

为纯文本模型"看图“设计更好的视觉工具箱和技能,支持多图理解,图片问答,前端UI还原、GUI 自动化等,并可选无缝接入多个主流agent,直接识别粘贴图片| A vision toolkit and skill designed for text-only llms — image Q&A, long-screenshot OCR, frontend UI restoration, and GUI automation, with optional seamless integration for Codex, Claude Code, Pi, Oh My Pi, and OpenCode

查看详情
928github+08-16
模型与账号接入toby-bridges

api-relay-audit

从 DeepSeek Harness 对 AI API 中转站和 LLM 代理运行本地安全审计,生成 Markdown 报告,覆盖提示词注入、模型替换信号、工具调用改写、错误泄漏、流完整性和按 profile 启用的 Web3 风险。

查看详情
791github+08-21
模型与账号接入ZJU-LLMs

OpenStory

✨ OpenStory 现已支持 DeepSeek Harness 插件! 现在可以通过 dsh-openstory 将 OpenStory 多智能体推演接入 DeepSeek Harness,让 agent 直接启动模拟、查看角色、下达指令并逐回合推进故事。查看 DSH 插件配置与使用指南。

查看详情
377github+08-17
模型与账号接入pulseaiclub

phi

pi的编码代理 ∞ 提供者、子代理、hashline编辑和权限门

查看详情
89github+08-16
模型与账号接入anysearch-team

anysearch-dsh

DeepSeek Harness(DSH)的 AnySearch 网络搜索提供方与高级搜索工具。

查看详情
79github+08-17
模型与账号接入kuangre123

codex-switch

Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录。保存后 Codex 的模型选择器里只会出现你选的那个 provider 的模型。也支持 Claude Code 的官方 / 自定义 API 切换。Codex Switch is a lightweight helper for configuring multiple coding-agent API routes. For Codex, it keeps Official OpenAI and a custom API provider configured in parallel, registers the custom model in Codex's mod

查看详情
67github+08-16