ovensi / dsh-plugin-minimax-usage

Listed

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

mainOther View source

Installation

pnpm add @dsh-external/minimax-usage

This command is generated from the GitHub repository address. Inspect the upstream README and source before running it; pin a release or commit when reproducibility matters.

README

Maintainer-authored documentation snapshot.

View on GitHub โ†—
Commit 16af76bSynced Aug 18, 2026

๐Ÿ“Š 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

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.platform โ€” web (browser-only client)
  • Slot โ€” sidebar.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 ๐Ÿš€

Repository information

Language
JavaScript
License
MIT
Last updated
Aug 15, 2026, 2:11 PM

Install deliberately

Review source code, permissions, lifecycle hooks, dependencies and network access. Test untrusted plugins in an isolated environment.