Skip to main content

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):

  1. CLAUDE_TOKEN environment variable
  2. macOS Keychain (security CLI) — services: Claude Code-credentials, claude.ai, etc.
  3. macOS Keychain via keyring package (optional dependency)
  4. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

clu_widget-0.2.0.tar.gz (11.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

clu_widget-0.2.0-py3-none-any.whl (12.8 kB view details)

Uploaded Python 3

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

Hashes for clu_widget-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1098d294a20f69982e3d83ed0de6f2a3b3701554f62a5c6bba9d0e9d4543d5d5
MD5 a9f8474889a5a483955001bea02bbe84
BLAKE2b-256 16811ab040e84309fb3db7a93600bd73d93656befcb65b541d964f7094f9cd52

See more details on using hashes here.

Provenance

The following attestation bundles were made for clu_widget-0.2.0.tar.gz:

Publisher: publish.yml on hsantanna88/clu-widget

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for clu_widget-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f6d539135febd3b0ead7b2079a701a0b0c10276bb19e3c23405617d882f68710
MD5 730eacf3319ff3c36c661f357b4e349c
BLAKE2b-256 b9b26aecd6432586f87044156a4f767149318bc40ba0f7006d5655fdb51bffd1

See more details on using hashes here.

Provenance

The following attestation bundles were made for clu_widget-0.2.0-py3-none-any.whl:

Publisher: publish.yml on hsantanna88/clu-widget

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page