V
vuduykien-netizen/claude-usage-tracker
Claude Code skill by Vu Duy Kien: 7d usage, weekly pace light and 7d Fable usage on the status line (Python stdlib, MIT)
updated 2026-11-27
View on GitHub ↗Direct link · no redirect page
- Star count
- 0 ★ · vuduykien-netizen/claude-usage-tracker · read from the GitHub search API · (checked 2026-11-27 20:00:52)
- Source
- read directly from its GitHub page · type: open-source project
- Harvest history
- first seen 2026-11-28 · last seen 2026-11-28 · seen 1× · listed by 2 sources
- Score
- score 203 · 2 sources · repo
FAQ (answers come from our records)
Who is it for?
We filed it under these tags: Open Source. The tags come from the entry itself, not a taxonomy we imposed.
Who maintains it?
repository
vuduykien-netizen/claude-usage-tracker;first catalogued 2026-11-28;last seen 2026-11-28。There is no official certification or quality rating here — we record sources and dates only.README excerpt (English, untranslated) · Read the full README on GitHub →
# claude-usage-tracker
Excerpted from the repository README (abridged)
By Vu Duy Kien · vuduykien.com
A Claude Code skill that shows your 7-day usage limit right on the status line, together with a weekly pace light and your Fable share. Pure Python 3 standard library, no dependencies, works on Windows, macOS and Linux. MIT licensed.
text
my-project │ 7d Fable usage 17% | 7d usage 56% | 7d time 48% | YELLOW
Everything it prints is in English. There is no 5-hour field: that limit window no longer exists, so the tracker ignores it if Claude Code still sends it.
Using the OpenAI Codex CLI? See the companion skill codex-usage-tracker.
## What the status line shows
| Field | Meaning |
| project name | Name of the project folder, first on the line (my-project │ ). Taken from workspace.project_dir in the status line JSON, then workspace.current_dir, then cwd; the hook uses CLAUDE_PROJECT_DIR or cwd. Names longer than 24 characters are cut and end with …; accents are kept; with no folder in the JSON the prefix is simply left out. |
| 7d Fable usage | 17%: a real per-model limit, if your Claude Code sends one. ~17%: an estimate from a /usage marker you logged. Plain 17% from the transcripts: Fable's share of this week's usage, computed from your transcripts. |
| 7d usage | Percent of the 7-day limit used (the real number). |
| 7d time | Percent of the 7-day window that has already elapsed, computed from seven_day.resets_at. |
| light | Weekly pace: GREEN on pace, YELLOW a little ahead of schedule, RED far ahead of schedule, SPARE headroom left. |
On every prompt you type, a UserPromptSubmit hook adds a one-line reminder with the same numbers (plus a hint to lighten the load when the light is yellow or red, or 7d usage is at 95% or more). Numbers appear only after Claude Code has sent rate_limits, which requires a login plan that has limits and happens after your first message.
## How the pace light works
The light compares how much of the 7-day limit you have used with how much of the week has passed.
RED: 7d usage is more than 10 points ahead of 7d time, or 7d usage is at 95% or more.
YELLOW: more than 3 points ahead.
SPARE: more than 8 points behind, so you have headroom.
GREEN: anything in between.
Example: 56% used when 48% of the week has elapsed is 8 points ahead, which is YELLOW.
## Install (3 steps)
1. Put this folder at ~/.claude/skills/theo-doi-usage/ (or $CLAUDE_CONFIG_DIR/skills/theo-doi-usage/).
2. Preview: python3 ~/.claude/skills/theo-doi-usage/install.py --dry-run
3. Install: python3 ~/.claude/skills/theo-doi-usage/install.py, then restart Claude Code.
What install.py does: backs up settings.json (settings.json.usage-tracker. .bak), copies the scripts to /usage-tracker/bin/, adds a statusLine if you do not have one, adds one UserPromptSubmit hook group (your existing hooks are kept) and keeps every other key. If you already have a status line it is not overwritten: the installer prints the command to chain instead, for example forwarding the stdin JSON from your own script to statusline_usage.py --quiet (which only records the numbers and prints nothing).
On Windows use py -3 or python instead of python3 if needed. is CLAUDE_CONFIG_DIR, ~/.claude by default.
A Claude Code skill that shows your 7-day usage limit right on the status line, together with a weekly pace light and your Fable share. Pure Python 3 standard library, no dependencies, works on Windows, macOS and Linux. MIT licensed.
text
my-project │ 7d Fable usage 17% | 7d usage 56% | 7d time 48% | YELLOW
Everything it prints is in English. There is no 5-hour field: that limit window no longer exists, so the tracker ignores it if Claude Code still sends it.
Using the OpenAI Codex CLI? See the companion skill codex-usage-tracker.
## What the status line shows
| Field | Meaning |
| project name | Name of the project folder, first on the line (my-project │ ). Taken from workspace.project_dir in the status line JSON, then workspace.current_dir, then cwd; the hook uses CLAUDE_PROJECT_DIR or cwd. Names longer than 24 characters are cut and end with …; accents are kept; with no folder in the JSON the prefix is simply left out. |
| 7d Fable usage | 17%: a real per-model limit, if your Claude Code sends one. ~17%: an estimate from a /usage marker you logged. Plain 17% from the transcripts: Fable's share of this week's usage, computed from your transcripts. |
| 7d usage | Percent of the 7-day limit used (the real number). |
| 7d time | Percent of the 7-day window that has already elapsed, computed from seven_day.resets_at. |
| light | Weekly pace: GREEN on pace, YELLOW a little ahead of schedule, RED far ahead of schedule, SPARE headroom left. |
On every prompt you type, a UserPromptSubmit hook adds a one-line reminder with the same numbers (plus a hint to lighten the load when the light is yellow or red, or 7d usage is at 95% or more). Numbers appear only after Claude Code has sent rate_limits, which requires a login plan that has limits and happens after your first message.
## How the pace light works
The light compares how much of the 7-day limit you have used with how much of the week has passed.
RED: 7d usage is more than 10 points ahead of 7d time, or 7d usage is at 95% or more.
YELLOW: more than 3 points ahead.
SPARE: more than 8 points behind, so you have headroom.
GREEN: anything in between.
Example: 56% used when 48% of the week has elapsed is 8 points ahead, which is YELLOW.
## Install (3 steps)
1. Put this folder at ~/.claude/skills/theo-doi-usage/ (or $CLAUDE_CONFIG_DIR/skills/theo-doi-usage/).
2. Preview: python3 ~/.claude/skills/theo-doi-usage/install.py --dry-run
3. Install: python3 ~/.claude/skills/theo-doi-usage/install.py, then restart Claude Code.
What install.py does: backs up settings.json (settings.json.usage-tracker. .bak), copies the scripts to /usage-tracker/bin/, adds a statusLine if you do not have one, adds one UserPromptSubmit hook group (your existing hooks are kept) and keeps every other key. If you already have a status line it is not overwritten: the installer prints the command to chain instead, for example forwarding the stdin JSON from your own script to statusline_usage.py --quiet (which only records the numbers and prints nothing).
On Windows use py -3 or python instead of python3 if needed. is CLAUDE_CONFIG_DIR, ~/.claude by default.
Listed badge (optional)
Copy this line into the README if you want the listing mark. Optional, and it does not affect being listed.
[](https://anclum.com/en/s/vuduykien-netizen-claude-usage-tracker/)
- Source
- github · https://github.com/vuduykien-netizen/claude-usage-tracker
- Browse by field
- Open source
- Listed by
- 2 independent sources
- added
- today
More entries
Filed under
Every tag opens the full list for that filter. Counts are the live catalogue figures.