← 返回 Skills 市场
1105
总下载
0
收藏
4
当前安装
4
版本数
在 OpenClaw 中安装
/install claude-usage-checker
功能描述
Check Claude Code / Claude Max usage limits. Run when user asks about usage, limits, quota, or how much Claude capacity is left.
使用说明 (SKILL.md)
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
claudeshows "Missing API key", the user must log in manually first: open a terminal, runclaude, 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
- Launch
claudewith PTY - Wait for the welcome screen (poll until it appears)
- Send
/usage+ Enter - Read the output (poll until usage data appears)
- Close with Escape then
/exit - Report the results
Commands
# 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.
安全使用建议
This skill appears to do exactly what it says: run your local Claude CLI in a terminal and read the /usage output. Before installing or using it, confirm you have the official claude CLI installed and are comfortable letting the agent spawn an interactive terminal on your machine — whatever the CLI prints to the terminal can be read by the skill. Manually log in to claude first (the skill notes browser login won't work headlessly). If you are concerned about accidental disclosure, run the skill in a sandboxed environment (container or VM) or review the CLI behavior so you know what output it emits.
功能分析
Type: OpenClaw Skill
Name: claude-usage-checker
Version: 1.3.0
The skill is classified as suspicious due to the use of `pty: true` in `SKILL.md` which grants broad interactive process control. While the explicit instructions for the agent are limited to running the `claude` CLI and sending benign commands (`/usage`, `/exit`), the `pty=true` capability itself is a high-risk permission. It creates a significant attack surface, as it allows for arbitrary command execution within the pseudo-terminal if the agent were compromised or if the `claude` binary itself had shell escape vulnerabilities, even though no malicious intent is present in the current instructions.
能力评估
Purpose & Capability
Name and description match the runtime instructions: the skill needs the local 'claude' CLI and an interactive PTY to query /usage. Requiring the claude binary is appropriate for this purpose.
Instruction Scope
Instructions are narrowly scoped to launching the local claude CLI, sending the '/usage' command, reading output, and exiting. Minor caution: because it runs an interactive PTY and reads the process output, it could capture any text the CLI emits (including any unexpected sensitive lines). The instructions themselves do not ask for unrelated files, env vars, or external endpoints.
Install Mechanism
This is an instruction-only skill with no install spec and no code to download or execute. That minimizes supply-chain risk.
Credentials
The skill declares no environment variables, credentials, or config paths. That is proportionate to its stated goal of interacting with the local 'claude' CLI.
Persistence & Privilege
always is false and the skill does not request elevated or persistent system privileges or modify other skills. Autonomous invocation is permitted (platform default) but not combined with other red flags.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install claude-usage-checker - 安装完成后,直接呼叫该 Skill 的名称或使用
/claude-usage-checker触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.0
Removed auto-install: claude CLI is a prerequisite, not auto-installed.
v1.2.0
Added binary requirements metadata (claude CLI + PTY), homepage link, and clearer prerequisite warnings.
v1.1.0
Translated instructions to English.
v1.0.0
Initial release: check Claude Code / Claude Max usage limits via PTY.
元数据
常见问题
Claude Usage Checker 是什么?
Check Claude Code / Claude Max usage limits. Run when user asks about usage, limits, quota, or how much Claude capacity is left. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1105 次。
如何安装 Claude Usage Checker?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install claude-usage-checker」即可一键安装,无需额外配置。
Claude Usage Checker 是免费的吗?
是的,Claude Usage Checker 完全免费(开源免费),可自由下载、安装和使用。
Claude Usage Checker 支持哪些平台?
Claude Usage Checker 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Claude Usage Checker?
由 kokoko(@aligurelli)开发并维护,当前版本 v1.3.0。
推荐 Skills