Community plugin

borncode-app / @local/dsh-model-quota

Shows the selected model's remaining rate limit or balance under the composer.

  • JavaScript
  • MIT
  • 0 stars
  • Nov 14, 2026

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.

  • Listing statusManifest verified
  • Manifest checkedNov 17, 2026
  • Package@local/dsh-model-quota
  • Package version1.0.0
  • Source commit67afdda
  • Repository createdNov 11, 2026

Capabilities and topics

dshdeepseek-harnessdsh-pluginquota
From the repository README

README

Everything below this line is the repository's own document, cached here. This site did not write or review it.

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 reponew home
dsh-minimax-authpackages/dsh-minimax-auth
dsh-minimax-creditpackages/dsh-minimax-credit
dsh-minimax-checkinpackages/dsh-minimax-checkin
dsh-minimax-model-syncpackages/dsh-minimax-model-sync
dsh-minimax-bridgepackages/dsh-minimax-bridge
dsh-model-quotapackages/dsh-model-quota

The code and its history are unchanged; only the repository is shared. Install dsh-minimax-kit instead 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:

kindreports
minimax-coding-planMiniMax coding plan: current window and weekly percentages remaining
deepseek-account-balanceDeepSeek Platform account wallet balances (from the signed-in credential record)
deepseek-api-balanceDeepSeek API-key balance, for an API-key route
claude-oauth-usageClaude 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 — cacheSeconds is 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-continue reads this endpoint to learn when a limit resets.

Requirements

DeepSeek Harness0.2.x (Web GUI)
RuntimeNode 24, supplied by the Harness runtime
CredentialsWhatever 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

fielddefaultmeaning
endpoint/plugins/model-quotaPath the Web GUI (and dsh-auto-continue) reads
cacheSeconds60Global default cache lifetime
providersfour built-in probesMap of provider key → probe settings

Each provider entry:

fieldmeaning
kindOne of minimax-coding-plan, deepseek-account-balance, deepseek-api-balance, claude-oauth-usage
baseURLOrigin the probe calls
apiKeyEnv / apiKeyEnvsEnv-backed credential(s) to try, in order
credentialRecordNamed record from the Harness credential store instead of an env var
probeModelModel used for a header probe (claude-oauth-usage only)
cacheSecondsPer-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

filerole
index.jsprobes, cache, endpoint
client.jsthe composer chip
cordis.patch.ymlthe bundle patch with the four provider defaults
locale/{en,th,zh}.jsonUI strings
icon.svgplugin icon

ภาษาไทย

แสดง โควตา/ยอดเงินคงเหลือของโมเดลที่เลือกอยู่ เป็นป้ายใต้ช่องพิมพ์ — เปลี่ยนโมเดลก็เปลี่ยนตัวเลขตาม (ไม่ปนกัน)

รองรับ 4 แบบ:

  1. MiniMax coding plan — % คงเหลือของหน้าต่างปัจจุบัน + รายสัปดาห์
  2. DeepSeek Platform — ยอดเงินในบัญชี (อ่านจาก credential ที่ล็อกอินไว้)
  3. DeepSeek API key — ยอดคงเหลือของ key นั้น
  4. 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.

Listed on DSH Plugin badge
[![Listed on DSH Plugin](https://dsh-plugin.com/badges/listed.svg)](https://dsh-plugin.com/plugins/borncode-app/dsh-model-quota)