DeepSeek Harness plugin

dsh-plugin-minimax-usage

MiniMax Token Plan quota monitor — displays 5-hour and weekly remaining quota progress bars in the DeepSeek Harness sidebar.

Jump to install

Source facts

Repository
ovensi/dsh-plugin-minimax-usage
Latest update
Aug 15, 2026
Category
Development & Runtime
GitHub stars
1
Format
plugin
Catalog evidence
Upstream dsh.bundle evidence
Evidence path
package.json#dsh.bundle
Checked against
0.1.0-rc.8
Upstream check date
2026-08-20

This evidence comes from the upstream catalog. This site has not installed, run, or security-reviewed the plugin.

Install

Start with a prompt that asks an agent to review the GitHub repository and source. Switch to the command if you want to install it yourself.

Copy this prompt into DSH, Codex, or another agent and ask it to review the GitHub repository and source first.

Do not install or run any commands yet. Read this plugin's GitHub repository, README, and relevant source code. Then answer the questions below clearly and directly so I can decide whether it fits my needs:

1. What is this plugin, and what problem does it solve?
2. Who is it for, and what are its typical use cases?
3. How is it used after installation? Include one minimal example.
4. What known limitations or privacy, security, compatibility, or maintenance risks does it have?
5. Give a clear recommendation: recommend, conditionally recommend, or do not recommend, with reasons.

Distinguish statements documented by the repository, inferences from source code, and unknowns. If evidence is insufficient, say so explicitly. Do not guess or simply repeat the README.

GitHub: https://github.com/ovensi/dsh-plugin-minimax-usage
Plugin: dsh-plugin-minimax-usage
Author: ovensi

Check the source files

Read the README and other files from this plugin directory before installing.

File explorer6 files
README.mdSource · read only
README language

📊 MiniMax Quota Monitor

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

![DeepSeek Harness Plugin](https://github.com/deepseek-ai/dsh) ![DSH Client Plugin](https://github.com/deepseek-ai/dsh) ![npm compatible](https://www.npmjs.com/) ![MIT License](./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 VariableDescriptionDefault
MINIMAX_API_KEYYour 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](./LICENSE) © 2026 ovensi

---

<p align="center"> Built for <a href="https://github.com/deepseek-ai/dsh">DeepSeek Harness</a> 🚀 </p>