claude-code-usage
Check Claude Code OAuth usage limits (session & weekly quotas). Use when user asks about Claude Code usage, remaining limits, rate limits, or how much Claude usage they have left. Includes automated session refresh reminders and reset detection monitoring.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/azaidi94/claude-code-usageWhat This Skill Does
The claude-code-usage skill is an essential utility for developers relying on the Claude Code CLI. It provides real-time visibility into your API consumption, specifically tracking your 5-hour session window and 7-day weekly quota. By interacting directly with the Anthropic OAuth API, this tool ensures you are never surprised by rate-limiting mid-task. It features a sophisticated CLI interface that translates raw API data into visual progress bars, status indicators, and actionable reset timestamps.
Installation
To integrate this into your OpenClaw environment, execute the following command:
clawhub install openclaw/skills/skills/azaidi94/claude-code-usage
Ensure that you have your Claude Code CLI already authenticated on your machine, as the skill relies on existing system credentials stored in your macOS Keychain or Linux secret-tool.
Use Cases
- Proactive Capacity Planning: Check your usage levels before starting a large refactoring task to ensure you won't hit a rate limit.
- Workflow Automation: Integrate output into your terminal status line or status bars using the JSON flag for machine-readable data.
- Automated Alerts: Utilize the
session-reminder.shscript to set up a self-scheduling chain that notifies you exactly when your session resets, allowing you to maximize your coding sessions without manual polling. - Monitoring: Track long-term consumption trends to manage your overall development velocity against weekly limits.
Example Prompts
- "How much usage do I have left on my Claude Code session today?"
- "Am I close to hitting my weekly rate limit for Claude Code?"
- "Can you check my current Claude Code quotas and tell me when they reset?"
Tips & Limitations
- Caching: By default, the tool caches results for 60 seconds. If you need absolute precision after a heavy coding burst, use the
--freshflag. - Environment: The skill requires functional system credential storage. If you run into authorization issues, re-authenticate the base Claude Code CLI first.
- Automation: For power users, the session reminder script is highly recommended to offload the burden of manual monitoring. If the cron job setup feels intrusive, stick to simple terminal aliases for quick
--freshchecks.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-azaidi94-claude-code-usage": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: file-read, external-api