📦 Minimax Token — Minimax工具

v2.2.1

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

1· 283·0 当前·0 累计
by @sherlockfate (SherLockfate)·MIT-0
下载技能包
License
MIT-0
最后更新
2026/3/12
0
安全扫描
VirusTotal
Pending
查看报告
OpenClaw
可疑
medium confidence
The SKILL.md describes a MiniMax token checker that needs a Python script and an API key, but the skill bundle contains no code and the registry metadata does not declare the required credentials — the pieces don't line up.
安全有层次,运行前请审查代码。

License

MIT-0

可自由使用、修改和再分发,无需署名。

运行时依赖

无特殊依赖

版本

latestv2.2.12026/3/11

Version 2.2.1 - No code or documentation changes detected in this release. - The skill remains functionally and descriptively the same as the previous version.

Pending

安装命令

点击复制
官方npx clawhub@latest install minimax-token
🇨🇳 镜像加速npx clawhub@latest install minimax-token --registry https://cn.longxiaskill.com

技能文档

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

功能特性

  • ✅ 查询 MiniMax API 令牌 剩余配额
  • ✅ 支持定时自动检查(每小时)
  • ✅ 通过 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 键: 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 服务配置

数据来源:ClawHub ↗ · 中文优化:龙虾技能库