Overview
- Skill Key
- aligurelli/claude-usage-checker
- Author
- aligurelli
- Source Repo
- openclaw/skills
- Version
- -
- Source Path
- skills/aligurelli/claude-usage-checker
- Latest Commit SHA
- 81fc8d28cabe495bb252adc14f115c8bb18151c4
Check Claude Code / Claude Max usage limits. Run when user asks about usage, limits, quota, or how much Claude capacity is left.
Stars
0
Installs
0
Status
ACTIVE
Visibility
PUBLIC
直接复制以下提示词,发送给你的 AI 助手即可完成安装。
请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 claude-usage 技能。 若已安装,则直接安装 claude-usage 技能。
# Claude Usage Checker Launches the Claude CLI interactively (PTY) and reads the `/usage` output to report your Claude Code / Claude Max quota. ## Prerequisites - **Claude CLI** must be installed (`npm i -g @anthropic-ai/claude-code`) and logged in - If running `claude` shows "Missing API key", the user must log in manually first: open a terminal, run `claude`, and complete the browser login flow - Requires an interactive PTY — the agent will launch a local process and read its output (quota info only) ## Steps 1. Launch `claude` with PTY 2. Wait for the welcome screen (poll until it appears) 3. Send `/usage` + Enter 4. Read the output (poll until usage data appears) 5. Close with Escape then `/exit` 6. Report the results ## Commands ```bash # Launch claude with PTY exec pty=true command="claude" # Wait and check log process action=poll sessionId=XXX timeout=5000 # Send /usage process action=send-keys sessionId=XXX literal="/usage" process action=send-keys sessionId=XXX keys=["Enter"] # Read output process action=poll sessionId=XXX timeout=5000 # Exit process action=send-keys sessionId=XXX keys=["Escape"] process action=send-keys sessionId=XXX literal="/exit" process action=send-keys sessionId=XXX keys=["Enter"] ``` ## Notes - If you see "Missing API key" → tell the user to log in; browser-based login won't work headlessly - Allow a few seconds between polls — Claude CLI starts slowly - "Current week" = weekly reset, not daily ## Output Format Report in a table: | | Usage | Resets | |---|---|---| | **Current session** | X% used | today at HH:MM (timezone) | | **Weekly (all models)** | X% used | HH:MM (timezone) | | **Weekly (Sonnet only)** | X% used | HH:MM (timezone) | | **Extra usage** | X% used / $X of $Y spent | date (timezone) | Always show reset times. The CLI displays them as "Resets Xpm" — convert to HH:MM format.
capt-marbles
Task Router
capncoconut
Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay, check marketplace stats, or manage agent credentials. Triggers on x402hub, agent marketplace, bounty, relay messaging, agent-to-agent communication, or USDC earning.
capevace
Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.
captchasco
OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.
carol-gutianle
name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}
canbirlik
Controls Wiz smart bulbs (turn on/off, RGB colors, disco mode) via local WiFi.