← All skills
Tencent SkillHub · Developer Tools

API配额监控与手动切换

实时监控OpenClaw模型API配额,配额不足时询问用户确认后再切换模型,支持多模型优先级和手动指定切换。

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

实时监控OpenClaw模型API配额,配额不足时询问用户确认后再切换模型,支持多模型优先级和手动指定切换。

⬇ 0 downloads ★ 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, api_monitor.py

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

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.

Upgrade existing

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.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
1.0.1

Documentation

ClawHub primary doc Primary doc: SKILL.md 13 sections Open source page

概述

监控 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 了解运行状态

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
1 Docs1 Scripts
  • SKILL.md Primary doc
  • api_monitor.py Scripts