Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
实时监控OpenClaw模型API配额,配额不足时询问用户确认后再切换模型,支持多模型优先级和手动指定切换。
实时监控OpenClaw模型API配额,配额不足时询问用户确认后再切换模型,支持多模型优先级和手动指定切换。
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
监控 OpenClaw 模型 API 使用量,配额不足时询问用户确认后再切换,确保用户知情。
✅ 实时监控当前模型 API 状态 ✅ 检测配额不足/错误 ✅ 询问用户确认后再切换模型 ✅ 支持多个模型优先级配置 ✅ 手动指定切换到某个模型
# 确认Python环境 python3 --version # 确认脚本存在(路径根据实际安装位置调整) ls -la ~/.openclaw/skills/api-monitor/api_monitor.py
# 替换为实际脚本路径 SCRIPT_PATH="$HOME/.openclaw/skills/api-monitor/api_monitor.py" python3 "$SCRIPT_PATH" --check
SCRIPT_PATH="$HOME/.openclaw/skills/api-monitor/api_monitor.py" python3 "$SCRIPT_PATH" --ask
SCRIPT_PATH="$HOME/.openclaw/skills/api-monitor/api_monitor.py" python3 "$SCRIPT_PATH" --confirm
# 替换为目标模型 TARGET_MODEL="mydamoxing/MiniMax-M2.5" SCRIPT_PATH="$HOME/.openclaw/skills/api-monitor/api_monitor.py" python3 "$SCRIPT_PATH" --model "$TARGET_MODEL"
SCRIPT_PATH="$HOME/.openclaw/skills/api-monitor/api_monitor.py" python3 "$SCRIPT_PATH" --list-models
mydamoxing/MiniMax-M2.5-highspeed - MiniMax高速版 mydamoxing/MiniMax-M2.5 - MiniMax普通版 volcengine/ark-code-latest - 火山引擎 hajimi/claude-sonnet-4-20250511 - 免费模型
定时检查 → 运行 --check 查看状态 发现问题 → 运行 --ask 生成询问消息 用户确认 → 运行 --confirm 执行切换 或者 → 用户指定 --model xxx 直接切换
用户: 检查一下API状态 助手: (运行 --check) 当前模型: mydamoxing/MiniMax-M2.5-highspeed 状态: API配额可能不足,建议切换模型 错误次数: 3 用户: 那就切换吧 助手: (运行 --confirm) 确认切换: mydamoxing/MiniMax-M2.5-highspeed → mydamoxing/MiniMax-M2.5 切换成功!
如需定时自动检查,可配置 cron: # 编辑 crontab crontab -e # 添加定时任务(每30分钟检查一次) # 替换为实际路径 */30 * * * * cd $HOME/.openclaw/skills/api-monitor && python3 api_monitor.py --check >> /var/log/api-monitor.log 2>&1
切换模型会中断当前会话 建议在非高峰期操作 始终需要用户确认才切换 定期检查日志 /var/log/api-monitor.log 了解运行状态
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.