Bundle
@pinkbanana/dsh-balance
DeepSeek Harness plugin that shows API balances and models in Settings, with balance below the chat composer
- Source
- crazywoola
- stars
- 18 stars
- License
- MIT
- Updated
- Updated 14 days ago
Readme
# dsh-balance [简体中文](./README.md) | [English](./README_EN.md) DeepSeek Harness 插件,用于查询 API 余额和当前可用模型。API Key 仅由本机 Host 使用,不会发送到浏览器。   ## 功能 - 查看总余额、充值余额和赠送余额 - 在聊天框下方持续显示余额摘要 - 查看当前 API Key 可用的模型 - 缓存查询结果并支持手动刷新 - 原生支持简体中文和英文,并跟随 Harness 系统语言切换 - 支持 Harness 已保存的 `DEEPSEEK_API_KEY` ## 安装 ```bash dsh plugin --profile web add @pinkbanana/dsh-balance dsh --profile web ``` 打开 <http://127.0.0.1:3080/>,进入“设置 → DeepSeek 余额”。该入口位于“Agent 预设”下方,余额摘要也会显示在已有会话的聊天框下方。API Key 可在“设置 → 模型”中保存,或通过 `DEEPSEEK_API_KEY` 环境变量提供。 ## 开发 ```bash pnpm install pnpm check ``` ## License [MIT](./LICENSE) <a href="https://www.buymeacoffee.com/pinkbanana"><img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Crazywoola a coffee" width="199" height="55" /></a>
Install
dsh plugin --profile web add github:crazywoola/dsh-balance#f53df51013ee40fc85488bb0b1d57d52175e7866
Profile: web
With the hub plugin installed, ask your agent to install it by name — it resolves the same plan shown here.
dsh plugin --profile web add github:stvlynn/dsh.fish#path:packages/dsh-plugin-hub
install pinkbanana-dsh-balance from the hub
- This package builds from source on install. pnpm will ask you to allow its build script — that is permission to run the package’s code on your machine, outside the agent sandbox. Only allow sources you trust.