minimax-token

检查 MiniMax API Token 剩余配额。支持定时检查并通过 Telegram 发送通知。适用于:查询 Token 余额、配置定时监控、设置余额不足提醒。

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "minimax-token" with this command: npx skills add sherlockfate/minimax-token

MiniMax Token 检查工具

查询 MiniMax API 的 Token 剩余配额,支持定时检查和 Telegram 通知。

功能特性

  • ✅ 查询 MiniMax API Token 剩余配额
  • ✅ 支持定时自动检查(每小时)
  • ✅ 通过 Telegram 发送通知
  • ✅ 支持环境变量配置
  • ✅ systemd 服务支持

依赖

# Python 依赖
pip3 install requests

# 系统依赖
# - curl (用于 API 请求)
# - python3

环境变量

变量说明必需
MINIMAX_API_KEYMiniMax API Key
TELEGRAM_BOT_TOKENTelegram Bot Token
TELEGRAM_CHAT_IDTelegram Chat ID
OPENCLAW_LOG_DIR日志目录 (默认 ~/.openclaw/logs)

使用方法

1. 配置环境变量

# 方式一: 环境变量
export MINIMAX_API_KEY="your_api_key"
export TELEGRAM_BOT_TOKEN="your_bot_token"
export TELEGRAM_CHAT_ID="your_chat_id"

# 方式二: 运行参数
python3 minimax_token.py --check --api-key "your_api_key"

2. 单次检查

python3 minimax_token.py --check

3. 启动定时监控

python3 minimax_token.py --monitor

4. 安装为系统服务 (Linux)

# 复制 service 文件
cp minimax-token.service ~/.config/systemd/user/

# 启用服务
systemctl --user enable minimax-token
systemctl --user start minimax-token

# 查看日志
journalctl --user -u minimax-token -f

配置说明

所有敏感配置都通过环境变量读取,确保安全:

  • API Key: MINIMAX_API_KEY
  • Telegram Bot: TELEGRAM_BOT_TOKEN
  • Chat ID: TELEGRAM_CHAT_ID

输出示例

📊 MiniMax-M2.5 配额状态

• 剩余时间: 50小时 30分钟
• 本周期: 已用 150/1000 次
• 剩余: 850 次

文件结构

minimax-token/
├── SKILL.md
└── scripts/
    ├── minimax_token.py        # 主脚本
    └── minimax-token.service   # systemd 服务配置

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Trinity Lite

每日自动化能力进化工具。运行后会:1)自检发现能力缺陷,2)自动阅读学习,3)生成新洞察,4)验证能力提升。适合希望持续提升AI能力的用户,每天运行看到具体进步。

Registry SourceRecently Updated
General

CamScanner Erase Handwriting

Use CamScanner to erase handwriting from images while preserving the printed content and original layout. Powered by a high-precision image enhancement engin...

Registry SourceRecently Updated
General

Local Model Quantization Router

Recommend local LLM model routes and quantization levels using hardware, privacy, task complexity, context size, and budget constraints. Use for Qwen/Ollama/...

Registry SourceRecently Updated
General

Siluzan CSO

当用户提问的内容涉及以下内容时,可以使用本SKILL(1)多媒体平台内容(视频/图文)发布与运营(YouTube、TikTok、Instagram、LinkedIn、X、视频号),以及账号授权、数据报表、任务管理;(2)公众号、小红书等内容文案/选题生成——选题/拆解/口播成稿、三库选题;(3)RAG 知识库检索...

Registry SourceRecently Updated