← 返回 Skills 市场
6101
总下载
16
收藏
39
当前安装
3
版本数
在 OpenClaw 中安装
/install 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 only if you are comfortable with a local script reading your Claude Code OAuth credential to call Anthropic's usage API. Do not run or schedule monitor-and-notify.sh unless you first replace or remove the hard-coded Telegram target, and review any Clawdbot cron jobs created by the reminder or monitoring scripts so you can stop recurring checks and notifications.
功能分析
Type: OpenClaw Skill
Name: claude-code-usage
Version: 1.2.0
The skill is designed to check Claude Code OAuth usage limits and provide automated monitoring. It accesses specific 'Claude Code-credentials' from the system keychain or secret-tool, which is a sensitive operation but necessary for its stated purpose. It queries the legitimate Anthropic API endpoint `api.anthropic.com/api/oauth/usage`. Automated monitoring and reminders are implemented by scheduling tasks using the `clawdbot cron add` command, which operates within the agent's controlled environment rather than directly modifying system crontabs. All actions are transparently aligned with the skill's description, and there is no evidence of data exfiltration to unauthorized endpoints, malicious execution, or prompt injection attempts against the agent.
能力评估
Purpose & Capability
Checking Claude Code quota, reading the local Claude Code OAuth credential, and querying Anthropic's usage API fit the stated purpose, and monitoring is documented; however, scripts/monitor-and-notify.sh sends reset notification content to a hard-coded Telegram target, which is not user-scoped.
Instruction Scope
The docs disclose credential access, Anthropic API calls, caching, cron-style monitoring, and Telegram delivery in general, but they do not disclose the fixed Telegram recipient in monitor-and-notify.sh or clearly separate read-only checking from persistent notification setup.
Install Mechanism
There is no remote installer or obfuscated install flow, and static scan and VirusTotal were clean; the metadata declares curl but the scripts also depend on local credential stores, claude, and clawdbot for full functionality.
Credentials
Accessing Keychain or secret-tool is sensitive but proportionate for a local quota checker and is documented; external notification to a hard-coded Telegram ID is not proportionate to user-controlled monitoring.
Persistence & Privilege
The skill documents self-scheduling Clawdbot cron reminders and polling monitors, which are purpose-aligned but persistent; session-reminder.sh also removes and recreates jobs by matching the reminder name, and Telegram delivery persists until the user removes the scheduled job.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claude-code-usage - 安装完成后,直接呼叫该 Skill 的名称或使用
/claude-code-usage触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.2.0
Added session refresh reminder system: self-scheduling cron chain that notifies exactly when 5-hour quota resets. Minimal API calls, zero maintenance. Includes comparison docs for both reminder and polling methods.
v1.1.0
Added automated monitoring: Get notified when session/weekly quotas reset. Includes monitor-usage.sh script and setup helpers.
v1.0.0
Initial release: Check Claude Code OAuth usage limits with beautiful progress bars and status indicators
元数据
常见问题
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. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 6101 次。
如何安装 Claude Code Usage?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claude-code-usage」即可一键安装,无需额外配置。
Claude Code Usage 是免费的吗?
是的,Claude Code Usage 完全免费(开源免费),可自由下载、安装和使用。
Claude Code Usage 支持哪些平台?
Claude Code Usage 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(darwin, linux)。
谁开发了 Claude Code Usage?
由 azaidi94(@azaidi94)开发并维护,当前版本 v1.2.0。
推荐 Skills