deepseek-harness
deepseek-ai
DeepSeek Harness: Everything is a Plugin.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:JonyChan8394/dsh-llm-balance
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Show the balances of exactly the LLM providers you have configured in dsh, right below the chat input box.
llm-pi-ai settings + the built-in adapters you use). Configure a new LLM in dsh and it appears on the next refresh; remove it and it disappears. No restart, no config editing.dsh plugin --profile web add github:JonyChan8394/dsh-llm-balance
Restart dsh web. The balance readout appears under the chat input as soon as at least one configured provider has a key.
Nothing to configure — the plugin follows the providers you already set up in dsh. Balance endpoints are known for these routes:
| Provider route | Balance API |
|---|---|
DeepSeek (deepseek, deepseek-official) |
✅ |
OpenRouter (openrouter) |
✅ |
SiliconFlow (siliconflow) |
✅ |
Moonshot / Kimi (moonshotai-cn, moonshotai) |
✅ |
MiniMax (minimax) |
✅ |
StepFun (stepfun) |
✅ |
Zhipu / GLM (zhipu) |
✅ |
| Any other configured provider | ❌ shows "未开放查询API" |
Each preset also ships a rechargeUrl — the provider's top-up page — opened in a new tab when you click the balance in the strip. To add a balance endpoint for a provider not in the list (e.g. an aggregator route with its own balance endpoint), override the plugin config in your profile's cordis.patch.yml:
- id: llm-balance
config:
refreshMs: 30000
endpoints:
- id: myprovider
name: MyProvider
apiKeyEnv: MYPROVIDER_API_KEY
url: https://api.example.com/v1/balance
balancePath: data.remaining
currencyPath: data.currency
rechargeUrl: https://console.example.com/recharge
A provider without a configured key is hidden from the strip; a provider whose request fails shows "获取失败 / fetch failed".
lib/index.js) reads ctx.llm.listProviders() — the exact set of LLM routes configured in dsh — on every request. For each provider with a known balance endpoint it resolves the key through ctx.credentials and calls the endpoint; for a configured provider with a key but no endpoint it reports error: 'no-api'. Results are served as GET /llm-balance JSON through the webserver route registry.lib/client.js) registers a conversation.composer.dock entry (order 10) that polls /llm-balance and renders the readout under the input card.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: 无有效分类标签。