DSH Plugins Marketplace

DSH Plugins

Plugins

/

Tools & Capabilities

/

dsh-minimax-usage-pro

d

dsh-minimax-usage-pro

Manifest valid

Shows MiniMax Token Plan usage in the Settings page through webServer routes and reads either subscription key name from environment or credentials file.

UI (client)hasBundlePatch

dsh-minimax-usage-pro

中文文档 | English

DSH (DeepSeek Harness) bundle plugin that exposes the user's MiniMax Token Plan usage data inside the Settings → 用量 page.

This is the pro edition of @floatingdeaming/minimax-usage@1.0.3. The original bundle plugin only worked on dynamic plugins because the DSH host runtime exposes harness.handle(...) only to dynamic plugins' vm sandboxes; trusted bundle plugins received a plain cordis context and could not register JSON-RPC handlers. That limitation surfaces as WARN: harness not available in the original host log and an empty Settings section in the UI.

dsh-minimax-usage-pro keeps the same bundle-plugin shape but routes the client→host traffic over a plain HTTP route on webServer instead of the harness JSON-RPC system, so it works on DSH 0.1.0-rc.8 and any later release that keeps the webServer service available.

Screenshots

dsh-minimax-usage-pro screenshot

Install

Download the newest dsh-minimax-usage-pro-*.tgz from Releases and add it to the profile:

dsh plugin --profile web add D:\downloads\dsh-minimax-usage-pro-0.1.1.tgz

Restart the DSH Web host after installation; the Settings page then shows the 用量 section.

Routes (host-side)

MethodPathBodyResponse
GET/api/dsh-minimax-usage-pro/has-key—{ ok, hasKey, reason }
POST/api/dsh-minimax-usage-pro/usage{ force?: boolean }normalized usage response (same shape as the original)

The usage route accepts POST only so browser prefetch and cross-site navigation cannot trigger an external quota request. Both routes are best-effort — if MiniMax returns 1004 the route responds with a structured error (statusCode: 1004, errorCode: 'auth_error').

Settings UI

Registers settings.section slot id dsh-minimax-usage-pro with label "用量" and order: 100. Renders a "套餐用量 · Max Plan" card with two progress rows (5h + weekly) plus a 刷新 button and auto-refresh on focus.

API key

The host-side reads the MiniMax Token Plan key from, in priority order:

  1. process.env.MINIMAX_API_KEY
  2. process.env.MINIMAX_CN_API_KEY
  3. ~/.dsh/.credentials.yaml — MINIMAX_API_KEY first, then MINIMAX_CN_API_KEY, independent of file order

Caveats

  • The route is not on the PRIVILEGED_METHODS list, so any browser session that can reach /api/... can read it. DSH's /api fence is loopback-only by default and expands to a --trusted-host for remote browsers; either posture is fine because no secret is sent to the browser — only the already-resolved usage numbers.
  • The route bypasses the PRIVILEGED_METHODS gate by design; if you want it gated, add '/api/dsh-minimax-usage-pro/usage' to the privileged list in ~/.dsh/settings.yaml.

Compatibility

DSH 0.2.2-alpha.2: failedDSH 0.1.6-alpha.2: failedDSH 0.1.7-alpha.2: failed

Versions

Latest versionPublishedSize
0.1.1——

Comments

Loading…

Similar plugins

dsh-minimax-usage

by pan17

Shows MiniMax Token Plan usage beside the DSH Web UI model selector with compact 5h/7d bars, click-to-refresh, automatic idle and heartbeat refreshes, and endpoint fallback. Reuses subscription keys c

Tools & CapabilitiesModels & ProvidersManifest valid

★ 0

MIT

TypeScript

Sep 5, 2026

dsh plugin --profile web add dsh-minimax-usage

by LaoYueHanNi

贴近 DSH 原生设计风格的 token 用量统计插件:实时记录每次请求的用量与费用,在 Web UI 中提供趋势图表、按模型定价明细和供应商配额显示。

UI & ExperienceManifest valid

★ 16

↓ 1.7k/wk

MIT

TypeScript

Oct 31, 2026

dsh plugin --profile web add @laoyuehanni/dsh-token-usage

DSH Usage Monitor: auto-query provider credit balances and time-window limits from configured API keys, with input capsule and custom provider support.

Tools & CapabilitiesModels & ProvidersManifest valid

★ 0

↓ 53/wk

dsh plugin --profile web add @lcthe/dsh-usage-monitor

by ericw0315

Sidebar panel for account balances and local token usage, with provider/model breakdowns and a 27-week daily heatmap.

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsModels & ProvidersManifest valid

★ 3

MIT

JavaScript

Sep 10, 2026

dsh plugin --profile web add dsh-usage-lite

by Ayowait

DSH ??????????:????????????????Token ?????

Tools & CapabilitiesDevelopment & InfrastructureTerminal & ClientsManifest valid

★ 1

MIT

JavaScript

Oct 23, 2026

dsh plugin --profile web add dsh-usage-insights

by xyl886

DeepSeek Harness 侧边栏「使用情况」:按通道查看用量明细、年度热力图、项目/会话用量与余额配额快照,纯本地只读、零外网

Tools & CapabilitiesDevelopment & InfrastructureManifest valid

★ 2

MIT

JavaScript

Oct 30, 2026

dsh plugin --profile web add dsh-key-usage