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

claude-usage

بواسطة lemodigital

Coding Agents & IDEs
685التنزيلات وفق ما يذكره clawskills.sh
0المشاهدات
لا إعجاباتسجّل الدخول للإعجاب بهذه المهارة
—لم يُقيَّم بعد
تقييمك

موجز

Calculate Claude Max subscription usage from OpenClaw session data.

الوصف

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

Calculates Claude Max subscription usage from OpenClaw session data using a reverse-engineered credits formula. Shows weekly budget consumption, 5-hour rate limit window status, and per-session token breakdowns across Opus, Sonnet, and Haiku models.

Exposes the actual credits math behind Claude Max plans so you can see real consumption before hitting an unexpected rate limit.

متى تستخدمها

  • Checking how much weekly budget remains before hitting limits
  • Identifying which sessions consumed the most credits
  • Monitoring the 5-hour sliding window before rate limiting
  • Comparing credit usage across Pro, 5x, and 20x plans
  • Getting a per-model token breakdown for a specific session

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

الإدخال

User asks: how much of my weekly Claude budget have I used?

الوكيل
  1. 1

    Run claude-usage.py with saved config to fetch session JSONL data

  2. 2

    Calculate credits consumed per session using the input/output token rates for each model

  3. 3

    Sum credits across all sessions in the current weekly window

  4. 4

    Compare total against the plan budget and render a progress bar

  5. 5

    Check the 5-hour sliding window and flag if approaching the rate limit

الإخراج

Weekly summary showing 12,400,000 / 41,666,700 credits used (29%), 5-hour window at 18%, and top sessions ranked by consumption

المتطلبات

  • Claude Max subscription (Pro $20, 5x $100, or 20x $200)
  • Weekly reset time from claude.ai Settings > Usage

التثبيت

clawhub install lemodigital/claude-usage

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

الروابط