← 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

Known item issue.

This item's current download entry is known to bounce back to a listing or homepage instead of returning a package file.

Quick setup
  1. Open the source page and confirm the package flow manually.
  2. Review SKILL.md if you can obtain the files.
  3. Treat this source as manual setup until the download is verified.

Requirements

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

Package facts

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

Validation

  • Open the source listing and confirm there is a real package or setup artifact available.
  • Review SKILL.md before asking your agent to continue.
  • Treat this source as manual setup until the upstream download flow is fixed.

Install with your agent

Agent handoff

Use the source page and any available docs to guide the install because the item currently does not return a direct package file.

  1. Open the source page via Open source listing.
  2. If you can obtain the package, extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the source page and extracted files.
New install

I tried to install a skill package from Yavira, but the item currently does not return a direct package file. Inspect the source page and any extracted docs, then tell me what you can confirm and any manual steps still required.

Upgrade existing

I tried to upgrade a skill package from Yavira, but the item currently does not return a direct package file. Compare the source page and any extracted docs with my current installation, then summarize what changed and what manual follow-up I still need.

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