返回目录
模型与 MCP 插件

dsh-model-quota

borncode-app/dsh-model-quota

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

Stars
0
Forks
0
Issues
0
更新
9 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:borncode-app/dsh-model-quota

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

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-auth packages/dsh-minimax-auth
dsh-minimax-credit packages/dsh-minimax-credit
dsh-minimax-checkin packages/dsh-minimax-checkin
dsh-minimax-model-sync packages/dsh-minimax-model-sync
dsh-minimax-bridge packages/dsh-minimax-bridge
dsh-model-quota packages/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.

dsh-model-quota

The selected model's remaining rate limit or balance, right under the composer.

release license plugin providers


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 — 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 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 แบบ:

  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

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类模型与 MCP
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek、anthropic、deepseek-harness。