Model Guard
/install model-guard
Model Guard
Automatically monitors Anti-Gravity model quotas and switches the default model to the one with the highest remaining quota. If all Anti-Gravity models are below 20%, it falls back to the native gemini-flash model.
Usage
- Manual trigger:
model-guard - Auto trigger: Designed to be run via
cronorheartbeat.
Configuration
Edit guard.js to change the THRESHOLD (default 20%) or FALLBACK_MODEL.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install model-guard - After installation, invoke the skill by name or use
/model-guard - Provide required inputs per the skill's parameter spec and get structured output
What is Model Guard?
Monitors Anti-Gravity model quotas and automatically switches to the model with highest quota or falls back to gemini-flash if all are below 20%. It is an AI Agent Skill for Claude Code / OpenClaw, with 1307 downloads so far.
How do I install Model Guard?
Run "/install model-guard" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Model Guard free?
Yes, Model Guard is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Model Guard support?
Model Guard is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Model Guard?
It is built and maintained by SarielWang93 (@sarielwang93); the current version is v1.0.0.