dshbase

插件目录 / Developer / dsh-plugin-minimax-usage

dsh-plugin-minimax-usage

未验证 ovensi

✓ 持续维护

查看 GitHub ↗ ← 返回插件目录

1Stars
0Forks
0未关闭 issue
语言
2026-08-15最近推送
跨平台平台

功能简介

DeepSeek Harness plugin: MiniMax Coding Plan quota monitor with progress bars in sidebar

我们的评价
未验证 — 尚未实测

DeepSeek Harness plugin: MiniMax Coding Plan quota monitor with progress bars in sidebar 尚未验证——请自行安装测试。

「未验证」表示我们的自动化 CI 尚未安装过该插件。功能描述与版本兼容性均为作者声明。这不是安全审计,也不代表对第三方代码的背书。

你是插件作者? 想拿到「已验证」标签——提交你自己的验证证据(截图、日志或短视频),我们审核通过后即改为「已验证」。

提交验证证据 ↗

README

📊 MiniMax Quota Monitor

A DeepSeek Harness plugin that displays your MiniMax Coding Plan quota usage directly in the sidebar.

DeepSeek Harness Plugin
DSH Client Plugin
npm compatible
MIT License

English · 中文 · 日本語 · Español


✨ Features

  • 5-Hour Quota Bar — real-time progress of your current interval remaining
  • Weekly Quota Bar — weekly allowance usage at a glance
  • Reset Countdown — shows exactly when each window resets (e.g. 重置于 2h 17m)
  • Collapsible Panel — click the arrow to collapse/expand; collapsed state shows a compact summary
  • Auto Refresh — updates every 60 seconds via server-side cache
  • Sidebar Integration — renders in sidebar.footer.action, right above the Settings button
  • Lightweight — pure React.createElement, no CSS frameworks, no external images

📸 Preview

┌──────────────────────────────┐
│  ▼ MINIMAX                   │
│  5 小时   42 / 100 (42%)     │
│  ████████████░░░░░░░░░░░░░░  │
│  重置于 2h 17m                │
│  本周     78 / 100 (78%)     │
│  ████████████████████████░░  │
│  重置于 3d 12h               │
└──────────────────────────────┘
       ↕ click to toggle
┌──────────────────────────────┐
│  ▶ MINIMAX  5h: 42% · 周: 78%│
└──────────────────────────────┘

🚀 Installation

Quick Install (recommended)

cd ~/.dsh/profiles/web
npm link /path/to/this/plugin
# then add the patch entry (see below)

Using pnpm

cd ~/.dsh/profiles/web
pnpm add /path/to/this/plugin

Via npm registry (when published)

cd ~/.dsh/profiles/web
pnpm add @dsh-external/minimax-usage

1. Add to cordis.patch.yml

Append this to ~/.dsh/profiles/web/cordis.patch.yml:

- insert:
    - id: minimax-usage
      name: '@dsh-external/minimax-usage'

2. Set your API key

The plugin reads MINIMAX_API_KEY from ~/.zshrc.secret (or your shell secrets file):

# In ~/.zshrc.secret or ~/.bashrc.secret
export MINIMAX_API_KEY="your-minimax-api-key-here"

Get your API key from MiniMax Open Platform.

3. Restart & Refresh

# Restart the DSH web server
dsh web
# Hard-refresh your browser (Cmd+Shift+R / Ctrl+Shift+R)

⚙️ Configuration

Environment Variable Description Default
MINIMAX_API_KEY Your MiniMax API key (required)

The API key is loaded at request time from ~/.zshrc.secret via source. If the key is not set, the plugin will display an error message in the sidebar instead of crashing.

🏗️ Architecture

┌─────────────────────────────────┐
│  Host (Node.js)                 │
│  lib/index.js                   │
│  ├─ registers /api/minimax/quota│
│  ├─ reads MINIMAX_API_KEY       │
│  ├─ calls MiniMax REST API      │
│  └─ 60s server-side cache       │
└──────────┬──────────────────────┘
           │ fetch('/api/minimax/quota')
           ▼
┌─────────────────────────────────┐
│  Client (Browser)               │
│  lib/client.js                  │
│  ├─ Slot: sidebar.footer.action │
│  ├─ Collapsible QuotaCard       │
│  └─ 60s auto-refresh            │
└─────────────────────────────────┘

🤝 Contributing

  1. Fork this repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

📝 Notes

  • The MiniMax API's remains_time / weekly_remains_time fields are unreliable (may return ~96 days for a 5h window). This plugin derives reset countdowns from end_time - Date.now() instead, which is accurate.
  • The end_time, start_time, weekly_end_time, and weekly_start_time fields are unix-millisecond timestamps despite the field names.
  • Quota percentages are reported by the API as 0–100 integers.

📋 DSH Plugin Manifest

This plugin is designed for DeepSeek Harness and follows the DSH npm-package plugin format:

  • dsh.bundle.patch — Cordis patch file for automatic registration
  • dsh.client.inject — No external service dependencies
  • dsh.client.platformweb (browser-only client)
  • Slotsidebar.footer.action

Tags / Keywords

deepseek-harness · dsh · dsh-plugin · dsh-client-plugin · minimax · quota · usage-monitor · sidebar · coding-plan

📜 License

MIT © 2026 ovensi


Built for DeepSeek Harness 🚀

安装

🧩 让 Agent 自动装(推荐)

装一次目录插件,之后本站所有插件都能让 DeepSeek Harness 自动找、自动装:

dsh plugin add dshbase-catalog

然后对 agent 说「帮我装 dsh-plugin-minimax-usage」,它会在目录里找到并自动安装。文档:dshbase-catalog · 已验证场景包

该插件是 GitHub 源码(未发 npm)——直接从仓库装:

Web profile:

dsh plugin --profile web add github:ovensi/dsh-plugin-minimax-usage

Headless(CLI)profile:

dsh plugin --profile headless add github:ovensi/dsh-plugin-minimax-usage

实测报告

尚未 L3 验证——若已跑过,见下方失败备注。

状态:pending · 最近测试 2026-08-27 · 标记 webonly
备注:验证: web-only;待 L4 web CDP;L4 web CDP runtime-fail on dsh 0.1.0-rc.8. 浏览全部待验证失败 →
安全:尚未扫描——我们的每日静态扫描将很快覆盖它。

分享徽章

Developer 里更多

浏览全部 7795 个插件 →