api-monitor实时监控OpenClaw模型API配额,配额不足时询问用户确认后再切换模型,支持多模型优先级和手动指定切换。
Install via ClawdBot CLI:
clawdbot install 2233admin/api-monitor监控 OpenClaw 模型 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 了解运行状态Generated Mar 1, 2026
A company offering AI-powered services uses multiple model APIs to ensure uptime. This skill monitors quotas and prompts manual switching to avoid service interruptions during peak usage, maintaining reliability for end-users.
Researchers evaluating different AI models for academic projects need to switch between APIs based on availability and cost. This skill allows them to check status and manually switch models without disrupting ongoing experiments.
A startup with limited budget uses free or low-cost AI models but may exceed quotas. This skill helps monitor usage and manually switch to alternative models when needed, optimizing expenses while maintaining functionality.
Developers building applications with AI integrations use this skill to test different models in a controlled setting. It enables manual switching based on API performance and quota limits during development cycles.
An agency generating content with AI tools relies on stable API access. This skill monitors quotas and allows manual model switching to prevent downtime during high-volume production periods, ensuring deadlines are met.
Offer the skill for free with basic monitoring features, while charging for advanced analytics, priority support, or automated switching capabilities. This attracts users who need reliability and are willing to pay for enhanced services.
License the skill to large organizations that require custom integrations, dedicated monitoring dashboards, and compliance features. This model targets businesses with high API usage and strict operational requirements.
Provide consulting services to help companies implement and customize the skill for their specific infrastructure. This includes setup assistance, training, and ongoing maintenance for optimal API management.
💬 Integration Tip
Ensure proper permissions for configuration changes and schedule switches during low-traffic periods to minimize service disruption.
Automatically update Clawdbot and all installed skills once daily. Runs via cron, checks for updates, applies them, and messages the user with a summary of what changed.
Full desktop computer use for headless Linux servers. Xvfb + XFCE virtual desktop with xdotool automation. 17 actions (click, type, scroll, screenshot, drag,...
Essential Docker commands and workflows for container management, image operations, and debugging.
Tool discovery and shell one-liner reference for sysadmin, DevOps, and security tasks. AUTO-CONSULT this skill when the user is: troubleshooting network issues, debugging processes, analyzing logs, working with SSL/TLS, managing DNS, testing HTTP endpoints, auditing security, working with containers, writing shell scripts, or asks 'what tool should I use for X'. Source: github.com/trimstray/the-book-of-secret-knowledge
Deploy applications and manage projects with complete CLI reference. Commands for deployments, projects, domains, environment variables, and live documentation access.
Monitor topics of interest and proactively alert when important developments occur. Use when user wants automated monitoring of specific subjects (e.g., product releases, price changes, news topics, technology updates). Supports scheduled web searches, AI-powered importance scoring, smart alerts vs weekly digests, and memory-aware contextual summaries.