33 lines
891 B
Markdown
33 lines
891 B
Markdown
# pi-anthropic-usage
|
|
|
|
Pi agent extension that shows your **Anthropic claude.ai Pro/Max subscription usage** live in the TUI footer.
|
|
|
|
## What it shows
|
|
|
|
```
|
|
☁ 5h █████░░░ 62% ↺1h23m 7d ██░░░░░░ 18% ↺4d2h
|
|
```
|
|
|
|
- **5h** — 5-hour rolling rate limit window
|
|
- **7d** — 7-day rolling rate limit window
|
|
- Color-coded: green → yellow (≥70%) → red (≥90%)
|
|
- Reset timer shows when each window clears
|
|
|
|
Only active when using an Anthropic claude.ai subscription (OAuth token). Regular API keys → no display.
|
|
|
|
## Install
|
|
|
|
```bash
|
|
pi install git:git.vpsj.de/jay/pi-anthropic-usage
|
|
```
|
|
|
|
## Commands
|
|
|
|
| Command | Description |
|
|
|----------|--------------------------------------|
|
|
| `/usage` | Manual refresh with detailed output |
|
|
|
|
## Auto-updates
|
|
|
|
Usage refreshes automatically after every model response and on model switch.
|