A tiny terminal widget showing live Claude Code usage stats with an animated creature
Project description
clu-widget
A tiny terminal widget that shows live Claude Code usage stats with an animated creature companion.
*
|
┌────┐
│▪ ▪│
└┬──┬┘
│ │
◆ claude·usage ● 14:32:07
max_plus_5x
5h ▓▓▓▓▓▓░░░░░░░░░░░░ 32%
resets in 2h 41m
▓▓▓▓▓▓▓▓░░░░░░░░░░ 🕐
7d ▓▓▓▓▓▓▓▓▓░░░░░░░░░ 48%
resets in 4d 11h
▓▓▓▓░░░░░░░░░░░░░░ 🕐
◈ 1.2M tokens this period
refreshes every 30s
Features
- Live 5-hour and 7-day usage bars with color-coded thresholds
- Time-elapsed progress bars showing how far into each reset window you are
- Sessions view — browse your local Claude Code sessions (
clu sessions) - Animated creature that bounces every 60 seconds
- Auto-discovers your Claude Code OAuth token (no setup needed)
- Compact — fits in a narrow terminal split-pane
- Auto-resizes the terminal window to widget dimensions
Install
With pipx (recommended)
pipx install clu-widget
With pip
pip install clu-widget
From source
git clone https://github.com/hsantanna88/clu-widget.git
cd clu-widget
pip install .
Usage
# Default — refreshes every 30 seconds
clu
# Custom refresh interval
clu --refresh 60
# Don't resize the terminal window
clu --no-resize
# Pass token explicitly
clu --token "sk-ant-..."
# Or via python module
python -m clu
# Sessions view — browse local Claude Code sessions
clu sessions
# Sessions with custom refresh and limit
clu sessions --refresh 5 --limit 20
Token Resolution
The widget automatically finds your Claude Code OAuth token by checking (in order):
CLAUDE_TOKENenvironment variable- macOS Keychain (
securityCLI) — services:Claude Code-credentials,claude.ai, etc. - macOS Keychain via
keyringpackage (optional dependency) - Credential JSON files:
~/.claude/.credentials.json,~/.config/claude/credentials.json, etc.
If you've used Claude Code at least once, the token is already there.
Requirements
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file clu_widget-0.2.0.tar.gz.
File metadata
- Download URL: clu_widget-0.2.0.tar.gz
- Upload date:
- Size: 11.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1098d294a20f69982e3d83ed0de6f2a3b3701554f62a5c6bba9d0e9d4543d5d5
|
|
| MD5 |
a9f8474889a5a483955001bea02bbe84
|
|
| BLAKE2b-256 |
16811ab040e84309fb3db7a93600bd73d93656befcb65b541d964f7094f9cd52
|
Provenance
The following attestation bundles were made for clu_widget-0.2.0.tar.gz:
Publisher:
publish.yml on hsantanna88/clu-widget
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clu_widget-0.2.0.tar.gz -
Subject digest:
1098d294a20f69982e3d83ed0de6f2a3b3701554f62a5c6bba9d0e9d4543d5d5 - Sigstore transparency entry: 984005525
- Sigstore integration time:
-
Permalink:
hsantanna88/clu-widget@a6986838302ba467b6ae78982caa5b59769996ef -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/hsantanna88
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a6986838302ba467b6ae78982caa5b59769996ef -
Trigger Event:
release
-
Statement type:
File details
Details for the file clu_widget-0.2.0-py3-none-any.whl.
File metadata
- Download URL: clu_widget-0.2.0-py3-none-any.whl
- Upload date:
- Size: 12.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6d539135febd3b0ead7b2079a701a0b0c10276bb19e3c23405617d882f68710
|
|
| MD5 |
730eacf3319ff3c36c661f357b4e349c
|
|
| BLAKE2b-256 |
b9b26aecd6432586f87044156a4f767149318bc40ba0f7006d5655fdb51bffd1
|
Provenance
The following attestation bundles were made for clu_widget-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on hsantanna88/clu-widget
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
clu_widget-0.2.0-py3-none-any.whl -
Subject digest:
f6d539135febd3b0ead7b2079a701a0b0c10276bb19e3c23405617d882f68710 - Sigstore transparency entry: 984005530
- Sigstore integration time:
-
Permalink:
hsantanna88/clu-widget@a6986838302ba467b6ae78982caa5b59769996ef -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/hsantanna88
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@a6986838302ba467b6ae78982caa5b59769996ef -
Trigger Event:
release
-
Statement type: