borncode-app / @local/dsh-model-quota
Shows the selected model's remaining rate limit or balance under the composer.
About this plugin
Written by the registry from verified metadata, not from the README.
@local/dsh-model-quota is a DSH plugin published from the borncode-app/dsh-model-quota repository.
Capabilities and topics
This repository has moved into one monorepo.
The whole MiniMax set — the credit proxy, the daily check-in, the model-list sync, the composer quota chip, the MiniMax Code bridge, and the shared grant reader — now lives in
borncode-app/dsh-minimax-kit, one repository with one Plugins entry.
this repo new home dsh-minimax-authpackages/dsh-minimax-authdsh-minimax-creditpackages/dsh-minimax-creditdsh-minimax-checkinpackages/dsh-minimax-checkindsh-minimax-model-syncpackages/dsh-minimax-model-syncdsh-minimax-bridgepackages/dsh-minimax-bridgedsh-model-quotapackages/dsh-model-quotaThe code and its history are unchanged; only the repository is shared. Install
dsh-minimax-kitinstead of the individual bundles. This repository stays open so the old links keep working.
Where the MiniMax kit ships it
This plugin is provider-agnostic — it stays installable on its own, and it
supports DeepSeek and Claude providers too. It is also published inside
dsh-minimax-kit,
because its minimax-coding-plan probe reads the same endpoint as the credit
proxy. Install the kit if you want the whole MiniMax set from a single
Plugins entry; the code here is unchanged.
What it does
Every provider hides its remaining quota somewhere different — a coding-plan window, an account wallet, a 5-hour subscription bucket. This plugin turns whichever one applies to the currently selected model into one chip under the composer, so "how much is left" is a glance instead of a dashboard visit.
Four probe kinds are built in, and a provider you do not list simply shows nothing:
| kind | reports |
|---|---|
minimax-coding-plan | MiniMax coding plan: current window and weekly percentages remaining |
deepseek-account-balance | DeepSeek Platform account wallet balances (from the signed-in credential record) |
deepseek-api-balance | DeepSeek API-key balance, for an API-key route |
claude-oauth-usage | Claude Pro/Max windows: 5-hour, weekly, extra usage |
Features
- Follows the model — switch model, switch probe; the chip never shows another provider's numbers.
- Fail-soft — a probe that errors renders as unknown instead of breaking the composer.
- Cached per kind —
cacheSecondsis 60 by default, and 300 for Claude, because every Claude header probe spends one token of the plan. - Credential-aware — reads named credential records (
credentialRecord) or env-backed keys (apiKeyEnv), and can try a list of fallbacks (apiKeyEnvs). - Used by others —
dsh-auto-continuereads this endpoint to learn when a limit resets.
Requirements
| DeepSeek Harness | 0.2.x (Web GUI) |
| Runtime | Node 24, supplied by the Harness runtime |
| Credentials | Whatever the probe needs: MINIMAX_API_KEY, DEEPSEEK_API_KEY, ANTHROPIC_OAUTH_TOKEN, or a signed-in account |
Install
git clone https://github.com/borncode-app/dsh-model-quota.git dsh-model-quota
Then:
plugin_manager install_bundle target=C:\path\to\dsh-model-quota
Restart once. The chip appears as soon as the selected model's provider has a working probe.
Configuration
| field | default | meaning |
|---|---|---|
endpoint | /plugins/model-quota | Path the Web GUI (and dsh-auto-continue) reads |
cacheSeconds | 60 | Global default cache lifetime |
providers | four built-in probes | Map of provider key → probe settings |
Each provider entry:
| field | meaning |
|---|---|
kind | One of minimax-coding-plan, deepseek-account-balance, deepseek-api-balance, claude-oauth-usage |
baseURL | Origin the probe calls |
apiKeyEnv / apiKeyEnvs | Env-backed credential(s) to try, in order |
credentialRecord | Named record from the Harness credential store instead of an env var |
probeModel | Model used for a header probe (claude-oauth-usage only) |
cacheSeconds | Per-provider override of the global cache |
Removing a provider key turns that chip off entirely — for example, drop anthropic if you never select a Claude
model and want to stop the periodic header probe.
How it works
selected model ──▶ which provider route? ──▶ matching probe ──▶ cache ──▶ chip
│
unknown / error ─┘ (renders "—", never throws)
The probe result is also what dsh-auto-continue schedules against, so a wrong baseURL shows up both here and
there.
Files
| file | role |
|---|---|
index.js | probes, cache, endpoint |
client.js | the composer chip |
cordis.patch.yml | the bundle patch with the four provider defaults |
locale/{en,th,zh}.json | UI strings |
icon.svg | plugin icon |
ภาษาไทย
à¹à¸ªà¸”ง โควตา/ยà¸à¸”เงินคงเหลืà¸à¸‚à¸à¸‡à¹‚มเดลที่เลืà¸à¸à¸à¸¢à¸¹à¹ˆ เป็นป้ายใต้ช่à¸à¸‡à¸žà¸´à¸¡à¸žà¹Œ — เปลี่ยนโมเดลà¸à¹‡à¹€à¸›à¸¥à¸µà¹ˆà¸¢à¸™à¸•ัวเลขตาม (ไม่ปนà¸à¸±à¸™)
รà¸à¸‡à¸£à¸±à¸š 4 à¹à¸šà¸š:
- MiniMax coding plan — % คงเหลืà¸à¸‚à¸à¸‡à¸«à¸™à¹‰à¸²à¸•่างปัจจุบัน + รายสัปดาห์
- DeepSeek Platform — ยà¸à¸”เงินในบัà¸à¸Šà¸µ (à¸à¹ˆà¸²à¸™à¸ˆà¸²à¸ credential ที่ล็à¸à¸à¸à¸´à¸™à¹„ว้)
- DeepSeek API key — ยà¸à¸”คงเหลืà¸à¸‚à¸à¸‡ key นั้น
- Claude Pro/Max — หน้าต่าง 5 ชั่วโมง / รายสัปดาห์ / extra usage
- cache 60 วินาที (Claude 300 วินาที เพราะà¸à¸²à¸£ probe à¹à¸•่ละครั้งหัภ1 token)
- probe พลาด → ขึ้น "—" ไม่ทำให้ช่à¸à¸‡à¸žà¸´à¸¡à¸žà¹Œà¸žà¸±à¸‡
dsh-auto-continueใช้ endpoint นี้เพื่à¸à¸£à¸¹à¹‰à¸§à¹ˆà¸²à¹‚ควตาจะรีเซ็ตเมื่à¸à¹„ร
License
MIT © 2026 BornCode
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/borncode-app/dsh-model-quota)