explaingit

grzegorz-raczek-unit8/claude-quota

Analysis updated 2026-05-18

64PythonAudience · developerComplexity · 2/5Setup · easy

TLDR

A macOS menu bar plugin that shows your Claude Code subscription usage as live colored bars, reading data from your local login token.

Mindmap

mindmap
  root((repo))
    What it does
      Menu bar quota display
      5-hour and weekly bars
      Color coded warnings
    Tech stack
      SwiftBar
      macOS Keychain
      Python
    Use cases
      Check remaining quota
      Track multiple accounts
      See countdown to reset
    Audience
      Claude Code users
      macOS developers
    How it works
      Reads local login token
      Read only Keychain access
      No third party data

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

See your remaining Claude Code 5-hour and weekly quota at a glance from the menu bar.

USE CASE 2

Track quota across multiple Claude Code accounts, each with its own bar.

USE CASE 3

Get a color-coded warning before you hit your usage limit.

What is it built with?

PythonSwiftBarmacOS Keychain

How does it compare?

grzegorz-raczek-unit8/claude-quota1ove9/antenna-forgeali-vilab/diffusionopd
Stars646464
LanguagePythonPythonPython
Setup difficultyeasyhardhard
Complexity2/55/55/5
Audiencedeveloperresearcherresearcher

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

How do you get it running?

Difficulty · easy Time to first run · 5min

Relies on an undocumented internal usage endpoint, so a future Claude Code update could break it.

The README does not state a license.

In plain English

claude-quota is a macOS menu bar plugin that shows how much of your Claude Code subscription quota you have used. Claude Code (Anthropic's AI coding assistant) enforces a 5-hour rolling usage window and a weekly cap, this plugin displays both as small colored bars directly in your menu bar so you can see your remaining capacity at a glance without opening the Claude Code app. Each account you have configured gets its own bar. The bar turns orange when you have used 70% of the 5-hour window and red at 90%. When the window is fully consumed, the bar switches to showing a countdown until it resets. If you hit the harder weekly limit, the bar turns black and counts down to the weekly reset date. Clicking on the plugin drops down a detailed view for every account showing the 5-hour window, the weekly window, per-model quotas where your plan reports them, any extra usage credits, and the reset times. The plugin refreshes every 5 minutes and includes a manual refresh option. It works by reading your existing Claude Code login token from the macOS Keychain (read-only, so it cannot log you out) and querying the same internal usage endpoint that Claude Code itself uses. No passwords are entered into the plugin and no data goes to third-party services. The README notes that this endpoint is undocumented, so a future Claude Code update could require a fix. Installation is a one-line curl command. The install script sets up SwiftBar (the menu bar plugin host it relies on) via Homebrew if you do not already have it, and registers it as a login item so it restarts after a reboot. The plugin automatically detects multiple Claude Code accounts by looking for config directories in your home folder, and each account can be labeled, hidden from the bar, or managed with a simple config file.

Copy-paste prompts

Prompt 1
Help me install this SwiftBar plugin and set up multiple Claude Code account labels.
Prompt 2
Explain how this plugin reads my Claude Code login token safely from the Keychain.
Prompt 3
What do the orange, red, and black bar colors mean in this quota tracker?
Prompt 4
Help me write a config file to hide one of my Claude Code accounts from the bar.

Frequently asked questions

What is claude-quota?

A macOS menu bar plugin that shows your Claude Code subscription usage as live colored bars, reading data from your local login token.

What language is claude-quota written in?

Mainly Python. The stack also includes Python, SwiftBar, macOS Keychain.

What license does claude-quota use?

The README does not state a license.

How hard is claude-quota to set up?

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

Who is claude-quota for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.