跳到正文
TakoAPI
返回技能列表

claude-usage-checker

由 aligurelli 提供

AI & LLMs
580下载量由 clawskills.sh 提供
0浏览量
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

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接