crazywoola/dsh-balance 预览 preview

crazywoola/dsh-balance

插件Plugin 原生Native ⭐ 23 MIT cat_label.dsh-pluginscat_label.dsh-plugins

Settings页面用的DeepSeek Harness平衡插件

项目介绍Project Overview

dsh-balance 是一款 DeepSeek Harness 插件,用于查询 API 余额与可用模型。核心能力:展示总余额、充值余额和赠送余额,在聊天框下方持续显示摘要并缓存结果,依据北京高峰时段将指示灯变为橙色。安装方式:dsh plugin --profile web add @pinkbanana/dsh-balance@latest。API Key 仅由本机 Host 使用,不会上传至浏览器。需注意:余额数据来源于官方接口,存在查询延迟。

dsh-balance is a DeepSeek Harness plugin that queries API balance and available models. Core capability: displays total, top-up, and grant balances, shows a persistent summary under the chat box with cached results, and turns the indicator orange during Beijing peak hours (09:00–12:00, 14:00–18:00). Install via dsh plugin --profile web add @pinkbanana/dsh-balance@latest. The API key is used only by the local host and never sent to the browser. Note: balance data depends on the official API and may have query delays.

或使用命令行安装(适合开发者)Or use CLI install (for developers)

命令行安装CLI Install

dsh plugin --profile web add @pinkbanana/dsh-balance@latest

crazywoola/dsh-balance 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-balance

简体中文 | English

DeepSeek Harness 插件,用于查询 API 余额和当前可用模型。API Key 仅由本机 Host 使用,不会发送到浏览器。

DeepSeek 余额设置面板

聊天框下方的 DeepSeek 余额

功能

  • 查看总余额、充值余额和赠送余额
  • 在聊天框下方持续显示余额摘要
  • 查看当前 API Key 可用的模型
  • 缓存查询结果并支持手动刷新
  • 依据 DeepSeek 峰谷定价,在高峰时段(北京时间 9:00–12:00、14:00–18:00)将聊天框下方的余额指示灯变为橙色
  • 原生支持简体中文和英文,并跟随 Harness 系统语言切换
  • 支持 Harness 已保存的 DEEPSEEK_API_KEY

安装

dsh plugin --profile web add @pinkbanana/dsh-balance@latest
dsh --profile web

打开 http://127.0.0.1:3080/,进入“设置 → DeepSeek 余额”。该入口位于“Agent 预设”下方,余额摘要也会显示在已有会话的聊天框下方。API Key 可在“设置 → 模型”中保存,或通过 DEEPSEEK_API_KEY 环境变量提供。

开发

pnpm install
pnpm check

License

MIT

Buy Crazywoola a coffee

上一个 Prev leantoken 下一个 Next dsh-web-ui-notify