explaingit

panithannanti/claude-usage-widget

Analysis updated 2026-05-18

15ShellAudience · developerComplexity · 2/5Setup · easy

TLDR

A macOS desktop widget that shows your Claude Code usage limits (session, weekly, per-model) as live progress bars.

Mindmap

mindmap
  root((claude-usage-widget))
    What it does
      Shows Claude usage limits
      Progress bars with color warnings
      Reset countdown timers
    Tech stack
      Shell script
      Python 3
      Übersicht widget
    Use cases
      Monitor session limit
      Monitor weekly limit
      Check active plan
    Audience
      Claude Code users
      Mac desktop users

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Keep an eye on remaining Claude Code session and weekly usage without running a terminal command.

USE CASE 2

Get a visual warning (color change) before hitting a usage limit.

USE CASE 3

See which subscription plan and model you are currently using at a glance.

USE CASE 4

Automatically refresh an expiring login token in the background.

What is it built with?

ShellPythonÜbersichtJSX

How does it compare?

panithannanti/claude-usage-widgetaduskelebe/diffpilotamrit-regmi/immich_edge
Stars151515
LanguageShellShellShell
Setup difficultyeasyeasyhard
Complexity2/52/54/5
Audiencedeveloperdeveloperops devops

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Requires macOS, Übersicht, and an already logged-in Claude Code CLI.

In plain English

claude-usage-widget is a small desktop widget for Mac computers that shows how much of your Claude Code usage limit you have left. It runs through Übersicht, a free tool that lets people put custom widgets on their Mac desktop, and it displays session, weekly, and per-model usage as progress bars that turn from blue to yellow to red as you get closer to your limit. The widget works by reading the login token that Claude Code already stores on your computer after you sign in, then asking Claude's usage endpoint for your current numbers every ten minutes. Because it uses the same connection method as the built in usage command in Claude Code, it avoids the login wall that would normally block a background script from checking usage on your behalf. It also shows countdown timers for when your session and weekly limits reset, and a badge for which subscription plan you are on. A cartoon capybara mascot bobs on top of the card as a small decorative touch. You can drag the widget anywhere on your screen and it remembers where you left it, choose which monitor it appears on if you have more than one, and collapse it into a small circle showing just your session percentage. There is also a refresh button to pull new numbers immediately and a login button that opens a terminal window if your session has expired. To avoid overloading Claude's servers, the widget caches results for five minutes and automatically pauses requests for fifteen minutes if it gets a rate limit error, showing your last known numbers in the meantime rather than going blank. It also refreshes your login token in the background before it expires, so you should not need to log in again very often. Setup is a Mac only shell script installer that installs Übersicht if needed, copies the widget files into place, and turns the widget on right away. An uninstall script is included to remove everything cleanly. It requires macOS, the Claude Code command line tool already installed and logged in, Übersicht, and Python 3, which comes preinstalled on Mac.

Copy-paste prompts

Prompt 1
Help me install claude-usage-widget on my Mac using the install script.
Prompt 2
Explain how claude-usage-widget reads my Claude Code login token securely.
Prompt 3
Show me how to change the refresh frequency and widget position in claude-usage.jsx.
Prompt 4
Walk me through troubleshooting the widget if it shows a token expired warning.

Frequently asked questions

What is claude-usage-widget?

A macOS desktop widget that shows your Claude Code usage limits (session, weekly, per-model) as live progress bars.

What language is claude-usage-widget written in?

Mainly Shell. The stack also includes Shell, Python, Übersicht.

How hard is claude-usage-widget to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is claude-usage-widget for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.