본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

token-monitor

tradmangh 제작

Coding Agents & IDEs
—아직 평가 없음
내 평가

요약

Monitor OpenClaw token/quota usage and alert when any quota drops below a threshold (default 20%)

설명

이 스킬이 하는 일

Monitors OpenClaw token and quota usage across all configured providers and quota types. Alerts when any quota drops below a configurable threshold (default 20%) and sends recovery notifications when quotas come back up. State is stored locally to prevent duplicate alerts between runs.

Persists alert state between runs so repeated low-quota conditions don't flood notifications, covering all providers and quota types in a single script.

사용 시점

  • Checking remaining API quota before starting a long coding session
  • Getting alerted when a provider's daily limit is nearly exhausted
  • Monitoring multiple quota types across all configured providers at once
  • Running automated hourly quota checks via cron without manual polling
  • Tracking quota recovery after a billing period resets

예시 워크플로

입력

User asks: 'Alert me when any quota drops below 10%'

에이전트
  1. 1

    Install the skill via clawhub install token-monitor

  2. 2

    Run check-quota.sh --threshold 10 manually to verify it reads current quota data

  3. 3

    Add an automated cron job with openclaw cron add scheduled every 30 minutes

  4. 4

    Script runs openclaw models status, compares results against the local state file, and triggers an alert for any quota below 10%

  5. 5

    State file is updated so the same alert is not repeated on the next run

출력

⚠️ Model Quota Alert (<10%): • openai-codex Day: 8% left

설치

clawhub install tradmangh/token-monitor

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크