google-ai-usage-monitorMonitor Google AI Studio (Gemini API) usage, rate limits, and quota consumption with automated alerts.
Install via ClawdBot CLI:
clawdbot install xiaoyaner0201/google-ai-usage-monitorMonitor Google AI Studio usage to prevent quota exhaustion and optimize API consumption.
| Metric | Description | Alert Threshold |
|--------|-------------|-----------------|
| RPM | Requests Per Minute (peak) | > 80% of limit |
| TPM | Tokens Per Minute (peak) | > 80% of limit |
| RPD | Requests Per Day | > 80% of limit |
| Tier | Typical Limits |
|------|---------------|
| Free | 2 RPM, 32K TPM, 50 RPD |
| Pay-as-you-go | 10-15 RPM, 100K+ TPM, 500+ RPD |
| Paid Tier 1 | 20 RPM, 100K TPM, 250 RPD (varies by model) |
Note: Actual limits vary by model and can be viewed at the usage dashboard.
https://aistudio.google.com/usage?project={PROJECT_ID}&timeRange=last-28-days&tab=rate-limit
// Using OpenClaw browser tool
browser action=open targetUrl="https://aistudio.google.com/usage?project=YOUR_PROJECT_ID&timeRange=last-28-days&tab=rate-limit" profile=openclaw
The page loads data asynchronously. Wait for:
Look for table rows with pattern:
Model Name | Category | X / Y | X / Y | X / Y | View in charts
Where X / Y represents used / limit.
## 📊 Google AI Studio 用量报告
**项目**: {project_name}
**付费等级**: {tier}
**统计周期**: 过去 28 天
---
### {Model Name}
| 指标 | 用量 | 限额 | 使用率 |
|------|------|------|--------|
| RPM | {rpm_used} | {rpm_limit} | {rpm_pct}% |
| TPM | {tpm_used} | {tpm_limit} | {tpm_pct}% |
| RPD | {rpd_used} | {rpd_limit} | {rpd_pct}% |
---
{status_emoji} **状态**: {status_text}
*检查时间: {timestamp}*
| Usage % | Status | Emoji | Action |
|---------|--------|-------|--------|
| < 50% | 正常 | ✅ | Continue normally |
| 50-80% | 需关注 | ⚠️ | Monitor more frequently |
| > 80% | 风险预警 | 🚨 | Alert user, consider rate limiting |
🚨 **Google AI 配额预警**
<@USER_ID> 以下指标接近限额:
- **{model}** {metric}: {used}/{limit} ({pct}%)
建议:
- 减少 API 调用频率
- 考虑升级付费等级
- 检查是否有异常调用
{
"name": "Google AI 用量检查",
"schedule": {
"kind": "cron",
"expr": "0 20 * * *",
"tz": "Asia/Shanghai"
},
"sessionTarget": "isolated",
"payload": {
"kind": "agentTurn",
"message": "检查 Google AI Studio 用量并发送报告到指定 Discord 频道"
},
"delivery": {
"mode": "announce",
"channel": "discord",
"to": "CHANNEL_ID"
}
}
Add to TOOLS.md:
## Google AI Studio
- **Project ID**: gen-lang-client-XXXXXXXXXX
- **Dashboard**: https://aistudio.google.com/usage
- **Discord Channel**: #google-ai (CHANNEL_ID)
- **Check Schedule**: Daily 20:00
Add to HEARTBEAT.md:
## Google AI Monitoring
- Check usage if last check > 24 hours
- Alert if any metric > 80%
The project dropdown may take time to populate. Retry snapshot after a few seconds.
Google notes: "Usage data may take up to 15 minutes to update."
AI Usage Analysis
Analysis is being generated… refresh in a few seconds.
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.