← 返回
开发者工具 中文

Openclaw Skill Minimax Tracker

Track and monitor MiniMax API usage with real-time progress bars, automatic resets, and scheduled reminders for OpenClaw agents.
追踪监控MiniMax API使用情况,提供实时进度条、自动重置及OpenClaw代理定时提醒功能。
qiaotucodes
开发者工具 clawhub v0.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 568
下载
💾 27
安装
1
版本
#latest

概述

SKILL.md - MiniMax Usage Tracker

Skill Information

  • Skill Name: openclaw-skill-minimax-tracker
  • Version: 1.0.0
  • Author: QiaoTuCodes (Weiran), Yanyan
  • Description: Track and monitor MiniMax API usage with progress bars and reminders for OpenClaw
  • Repository: https://github.com/QiaoTuCodes/openclaw-skill-minimax-tracker

Overview

This skill provides real-time tracking for MiniMax API usage. It calculates usage based on prompts consumed, tracks remaining quota, and displays progress in a compact bar format. Designed for OpenClaw agents to monitor API usage between resets.

Features

  • Real-time prompts usage tracking
  • Visual progress bar with key metrics (RST/TTL/PKG/USE/REM/NXT)
  • Automatic reset time calculation (15:00-20:00 UTC+8)
  • JSON-based persistent storage
  • Cron-ready for scheduled reminders

Usage

Commands

# Add usage (after API call)
python3 minimax_tracker.py add [n]

# View detailed status
python3 minimax_tracker.py status

# View compact progress bar
python3 minimax_tracker.py compact

Output Format

[████████████████████] 98% RST:18:00 TTL:1h40m PKG:Starter USE:2/40 REM:38 NXT:19:19

Integration with OpenClaw

# In your skill or agent code
import subprocess

# Track usage after each API call
result = subprocess.run(
    ["python3", "path/to/minimax_tracker.py", "add", "1"],
    capture_output=True, text=True
)

Cron Setup (Every 3 Hours)

{
  "name": "minimax-usage-check",
  "schedule": "0 */3 * * *",
  "payload": {
    "kind": "agentTurn",
    "message": "Run: python3 ~/openclaw-workspace/skills/openclaw-skill-minimax-tracker/minimax_tracker.py compact"
  }
}

Configuration

Edit the CONFIG dict in minimax_tracker.py:

ParameterDefaultDescription
---------------------------------
max_prompts40Monthly prompts limit
reset_hour_start15Reset window start (UTC+8)
reset_hour_end20Reset window end (UTC+8)
check_interval_hours3Reminder interval

Data Storage

Usage data is stored in:

~/.openclaw/workspace/minimax_usage_data.json

Format:

{
  "usage_records": [
    {"time": "2026-02-27T16:19:00", "prompts": 1}
  ],
  "current_usage": 2,
  "last_reset": "2026-02-27T18:00:00",
  "last_check": "2026-02-27T16:23:00"
}

Dependencies

  • Python 3.8+ (standard library only, no pip packages needed)

Installation

# Copy to OpenClaw skills folder
cp -r openclaw-skill-minimax-tracker ~/openclaw-workspace/skills/

License

MIT License - See LICENSE file

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-30 05:28 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,946
developer-tools

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 68 📥 180,546
content-creation

cutmv

qiaotucodes
使用FFmpeg的视频处理工具,可剪切、格式转换、压缩、提取帧/音频、加水印和添加字幕。
★ 0 📥 853