rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:jacujay/dsh-model-balance
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Auto-detect the current model vendor and show its balance / quota right in the composer input row — a small button left of the model name, hover to peek, click to refresh. A settings page covers vendors without a public balance endpoint via custom endpoints.
Built for DeepSeek Harness (DSH web).
minimax-cn) still match.◈ icon before the model name in the native composer row. Hover opens a peek panel; click refreshes. Error / unsupported / quota states get their own colors.~/.dsh/dsh-model-balance.json without any secrets.Requires DSH web. From the plugin market or:
# from GitHub
dsh plugin --profile web add github:jacujay/dsh-model-balance
Then refresh the browser page.
| Vendor | Endpoint | Kind |
|---|---|---|
| DeepSeek | /user/balance |
balance (CNY) |
| Moonshot / Kimi | /v1/users/me/balance |
balance |
| MiniMax | /v1/token_plan/remains |
quota (per-model %) |
| StepFun | /v1/accounts |
balance |
| Zhipu GLM | /api/monitor/usage/quota/limit |
quota only |
| SiliconFlow | /v1/user/info |
balance |
| OpenRouter | /api/v1/auth/key |
balance (USD) / unlimited |
New API exposes token usage at /api/usage/token, authenticated with the same API key used for model calls. Add a custom endpoint for the matching DSH provider (often openai) in Settings → Balance lookup:
https://your-relay.example.com/api/usage/tokendata.total_availableBearer TokenThe plugin recognizes New API's token_usage response automatically. It shows unlimited quota when unlimited_quota is true, otherwise it reports the remaining amount, total granted amount, and usage.
Anything else: add a custom endpoint in Settings → Balance lookup. The API key still comes from DSH credentials (apiKeyEnv of the provider), and the custom URL is called host-side with it.
~/.dsh/dsh-model-balance.json), no secrets.# no build step — host is plain ESM (lib/index.js), client is a plain
# __ModuleLoader__ bundle (client/client.js)
node --check lib/index.js
node --check client/client.js
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: model、deepseek、openrouter。