تخطَّ إلى المحتوى
TakoAPI
العودة إلى المهارات

google-ai-usage-monitor

بواسطة xiaoyaner0201

Productivity & Tasks
1.2kالتنزيلات وفق ما يذكره clawskills.sh
1النجوم
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Monitor Google AI Studio (Gemini API) usage, rate limits, and quota consumption with automated alerts.

الوصف

ما الذي تفعله هذه المهارة

Monitors Google AI Studio (Gemini API) quota usage by scraping the usage dashboard via browser automation. Tracks RPM, TPM, and RPD metrics across models and tiers, and sends alerts when consumption exceeds 80% of limits.

Automates quota checks through browser automation so you don't need to manually log into the dashboard or configure Cloud Monitoring separately.

متى تستخدمها

  • Checking Gemini API quota before kicking off a large batch job
  • Getting alerted when free-tier daily request limits are nearly exhausted
  • Scheduling nightly usage reports to a team channel
  • Identifying which models are consuming the most tokens
  • Catching runaway API calls before they trigger 429 errors

مثال على سير العمل

الإدخال

User asks: Check my Google AI Studio usage and alert me if any metric is above 80%

الوكيل
  1. 1

    Opens the Google AI Studio usage dashboard URL with the configured project ID

  2. 2

    Waits for the rate limits table to finish loading asynchronously

  3. 3

    Parses each model row to extract used and limit values for RPM, TPM, and RPD

  4. 4

    Calculates usage percentages and compares against the 80% alert threshold

  5. 5

    Sends a formatted report or alert to the configured Discord channel

الإخراج

Discord message with a per-model usage table showing current consumption, limits, and a status indicator (normal / warning / alert)

المتطلبات

  • Google account with access to Google AI Studio
  • GCP Project ID for the project being monitored

التثبيت

clawhub install xiaoyaner0201/google-ai-usage-monitor

شغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.

الروابط