gitwtfhub

wtf is claude-code-meter?

marcmayol/claude-code-meter — explained in plain English

Analysis updated 2026-05-18

11PythonAudience · developerComplexity · 2/5LicenseSetup · easy

TL;DR

A Windows taskbar tool that shows your real Claude Code usage limits: 5-hour session, 7-day weekly, and a calibrated month-to-date estimate, pulled directly from the API's rate-limit headers.

Mindmap

mindmap
  root((Claude Code Meter))
    What it does
      5h session usage
      7d weekly usage
      Monthly estimate
    Tech stack
      Python
      Windows taskbar
    Use cases
      Usage tracking
      Plan limit alerts
    Audience
      Claude Code 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

Why would anyone build with this?

REASON 1

See at a glance how much of your 5-hour and weekly Claude Code usage limit you've used.

REASON 2

Track an estimated month-to-date usage figure scaled to your plan's real limits.

REASON 3

Get a taskbar, tray icon, or floating panel view of your Claude usage without opening a terminal.

What's in the stack?

PythonWindowstkinter

How it stacks up

marcmayol/claude-code-meter2arons/llm-cliabe238/claude-video-plus
Stars111111
LanguagePythonPythonPython
Setup difficultyeasyeasyeasy
Complexity2/52/53/5
Audiencedeveloperdeveloperdeveloper

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

How do you spin it up?

Difficulty · easy Time to first run · 5min

Needs a Claude Pro/Max subscription signed into Claude Code, API-key-only setups won't show the plan percentages.

You can use, modify, and distribute this freely, including for commercial purposes, as long as you keep the copyright notice.

Wtf does this do

Claude Code Meter is a Windows tool that shows how much of your Claude Code usage plan you have used, right in the taskbar next to the clock. It displays three numbers: how much of your rolling five hour session window you have used, how much of your seven day weekly window you have used, and a calculated month to date figure that is scaled to match your plan. The tool gets these numbers directly from the same source Claude Code itself uses. Every so often it sends a tiny request, using only about one token, through the OAuth login token that Claude Code already stores on your computer, and reads the usage percentages that come back in the response. Because your Claude plan has no built in monthly limit, only the five hour and weekly windows, the meter works out a monthly estimate on its own. It does this by looking at how many tokens you have used in the current week from your local usage logs, figuring out what one hundred percent of your weekly limit represents in tokens, and then showing the month on that same scale. It saves its best estimate over time to make this calculation more accurate, and it can also reconstruct a history of previous weeks using the same method. The meter only reflects usage on the computer where it is installed and for the account signed in through Claude Code. It does not see activity from Claude on the web, other computers, or from an API key alone, since API only setups do not receive the same usage information. To use it, you need Windows 10 or 11 and an active Claude subscription. You can either download a ready to run executable file with no other requirements, or install it as a Python package if you have Python 3.9 or newer. Once running, it can display as a bar embedded in the taskbar, an icon in the system tray, or a small floating panel, and settings such as how often it checks usage can be adjusted through a configuration file. The project is released under the MIT license.

Yoink these prompts

Prompt 1
Help me install Claude Code Meter on Windows using the downloadable exe.
Prompt 2
Explain how Claude Code Meter calculates its monthly usage estimate from the 5h and 7d windows.
Prompt 3
Show me how to configure Claude Code Meter's refresh interval and tray icon metric.
Prompt 4
Walk me through setting Claude Code Meter to auto-start with Windows.

Frequently asked questions

wtf is claude-code-meter?

A Windows taskbar tool that shows your real Claude Code usage limits: 5-hour session, 7-day weekly, and a calibrated month-to-date estimate, pulled directly from the API's rate-limit headers.

What language is claude-code-meter written in?

Mainly Python. The stack also includes Python, Windows, tkinter.

What license does claude-code-meter use?

You can use, modify, and distribute this freely, including for commercial purposes, as long as you keep the copyright notice.

How hard is claude-code-meter to set up?

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

Who is claude-code-meter for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.