Skip to content
Back to skills

Claude Usage

ASecurity

Check Claude subscription usage limits (5-hour session and weekly percentages, reset times) for the Anthropic account Pi is logged into. Use when asked about Claude usage, quota, rate limits, remaining plan allowance, or the equivalent of Claude Code's /usage.

  • 2 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added October 17, 2026
ai-agentsbashapi

Works with

  • claude code
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned October 17, 2026

npx -y skills add fireseasonnow/pi-claude-usage --skill claude-usage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Claude Usage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Claude Usage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fireseasonnow-claude-usage/badge)](https://www.skillsdirectory.com/skills/fireseasonnow-claude-usage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: claude-usage
description: Check Claude subscription usage limits (5-hour session and weekly percentages, reset times) for the Anthropic account Pi is logged into. Use when asked about Claude usage, quota, rate limits, remaining plan allowance, or the equivalent of Claude Code's /usage.
---

# Claude usage

Run the bundled script (relative to this skill directory):

```sh
bash scripts/usage.sh          # formatted summary
bash scripts/usage.sh --json   # raw API response
```

(`--color` adds ANSI colors for the `/claude-usage` command; don't use it here. `--input FILE` renders a saved `--json` response without calling the API.)

The script gets a bearer token with `pi auth print-bearer-token --provider anthropic` and queries `https://api.anthropic.com/api/oauth/usage`, the undocumented endpoint behind Claude Code's `/usage`. It needs `curl` and `jq`.

The endpoint is rate limited (HTTP 429), so responses are cached for 60s. If the API fails, the script falls back to the cache and prints a note on stderr.

The tool result is already visible to the user, so don't repeat the output verbatim. Summarize it in a sentence (percent used and time until reset per limit) unless asked for more. Never print the bearer token.

For per-session tokens and cost in Pi, point the user to the footer or `/session`. This skill covers plan limits only.

If it fails with an auth error, the user needs to sign in to Pi with a Claude Pro/Max subscription (`/login`). If the response shape changed, run with `--json` and summarize `.limits[]` manually.

Files in this skill

  • SKILL.md1.5 KB
  • scripts/usage.sh5.5 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.