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

claude-usage-checker

بواسطة aligurelli

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

موجز

Check Claude Code / Claude Max usage limits.

الوصف

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

Launches the Claude CLI interactively via PTY and reads the /usage command output to report Claude Code and Claude Max quota. Shows session usage, weekly token consumption by model, and extra usage spending with reset times.

Automates the manual steps of launching the Claude CLI, running /usage, and reading the output, returning a formatted table without switching terminals.

متى تستخدمها

  • Checking remaining quota before starting a long coding session
  • Verifying weekly usage before hitting a model limit
  • Monitoring extra usage spending against a dollar budget
  • Confirming when weekly or session quota resets
  • Comparing Sonnet-specific usage against total weekly consumption

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

الإدخال

User asks: How much Claude usage do I have left this week?

الوكيل
  1. 1

    Launch claude CLI with PTY

  2. 2

    Wait for welcome screen to load

  3. 3

    Send /usage command and poll for output

  4. 4

    Parse usage percentages and reset times for each category

  5. 5

    Exit the CLI and return a formatted table

الإخراج

Table with current session, weekly (all models), weekly (Sonnet only), and extra usage rows, each showing percentage used and reset time

المتطلبات

  • Claude CLI installed (npm i -g @anthropic-ai/claude-code)
  • Claude Max or Claude Code subscription with active login

التثبيت

clawhub install aligurelli/claude-usage-checker

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

الروابط