dsh-model-balance
v0.1.1 · 2 天前发布
Multi-provider account balance display for the DeepSeek Harness Web GUI. Queries real billing APIs (DeepSeek, StepFun, Kimi Coding, OpenRouter, MiniMax, xAI) and shows balance/quota in front of the model selector. Providers without an API-level billing en
README
dsh-model-balance


中文 | English
为 DeepSeek Harness Web GUI 提供多供应商真实账户余额显示。
在 composer 的模型选择器前面显示余额胶囊。切换模型 → 立即显示该供应商的余额。每次用量变动自动刷新。
目前支持的供应商
| 供应商 | 查询接口 | 数据类型 | 状态 |
|--------|---------|---------|------|
| DeepSeek | GET /user/balance | 账户余额(¥) | ✅ 官方接口 |
| StepFun | GET /v1/accounts | 账户余额(¥) | ✅ 官方接口 |
| Kimi Coding | GET /v1/usages | 配额(7 天 + 5 小时) | ✅ 官方接口 |
| OpenRouter | GET /api/v1/auth/key | Credit 余额 ($) | ✅ 官方接口 |
| MiniMax | GET /v1/token_plan/remains | 剩余额度 | ✅ 官方接口 |
| **xAI / Gr
版本兼容矩阵
| DSH 版本 | 状态 | 说明 |
|---|---|---|
dsh@0.1.0-rc.6 | ✅ 兼容 | cordis patch ✅ |
dsh@0.1.0 | ✅ 兼容 | 标准 patch ✅ |
dsh@0.2.0 | ⚠️ 待验证 | 待实测(API 可能在变) |
dsh@0.3.0+ | ❓ 未知 | 尚未发布 |
💡 兼容矩阵每周末自动跑实测,欢迎 PR 修正
元数据
- License
- MIT
- npm
- dsh-model-balance
- Repo
- git+https://github.com/nabin-qq273274877/dsh-model-balance.git
- Engines
{}- Weekly DL
- 0
- Monthly DL
- 0
- dsh.bundle
{"plugin":{"schemaVersion":1,"displayName":{"zh-CN":"模型余额","en":"Model Balance"},"summary":{"zh-CN":"在模型选择器前显示多供应商真实账户余额与配额","en":"Show real multi-provider account balance and quota in front of the model selector"},"category":"balance"},"bundle":{"patch":"./cordis.patch.yml"},"client":{"inject":["@deepseek-ai/dsh-client-runtime","@deepseek-ai/dsh-client-ui-conversation","@deepseek-ai/dsh-client-ui-model-selection"],"platform":"web"}}