Terug naar de store
Plug-in

Usage Meter for Claude

door sagiv1011

Shows your Claude 5-hour and weekly usage limits and the context of your latest conversation on a customizable deck tile.

Code

Usage Meter for Claude

A Macro Deck 3 plugin that shows your Claude usage limits and the context of your latest conversation on a deck tile.

This is a community plugin. It is not made, maintained or endorsed by Anthropic or by Macro Deck.

Features

Usage tile with up to three meters: the 5-hour limit, the weekly limit and the context of your latest Claude Code conversation. Rings or bars, with color thresholds you set yourself (default: green, yellow from 70%, red from 90%). Layout that follows the tile: side by side on square and wide tiles, stacked on tall tiles, or fixed by you. Reset times under each limit, token count under the context meter, and a "last updated" line. Per-text styling: size, color and font for every title, percentage and detail line. Press to refresh: the default short-press action fetches fresh usage. You can replace it in the tile's actions. Automatic refresh while a tile is on screen (off, 30 seconds, 2, 5, 10, 15 or 30 minutes; default 5). Old readings are marked: the "updated" line turns orange and the meters dim when data is more than 10 minutes old. Variables for your own buttons and automations.

Requirements

Macro Deck 3.0.0 or later on Windows (x64). The Claude desktop app, signed in with a Claude subscription (Pro, Max or Team/Enterprise seat with usage limits). Open the Code tab in the Claude desktop app at least once. The app then installs the Claude Code engine this plugin uses to fetch usage.

No separate Claude Code install, terminal or settings change is needed.

Installation

Open Macro Deck and go to Store. Search for Usage Meter for Claude and install it. On a deck, add a tile and choose the Claude usage widget.

Usage

The tile shows your current limits. Press it to refresh; the bottom line shows "Refreshing..." for a few seconds. Edit the tile to change its look: General: style (ring or bar), layout (auto, side by side, stacked), which meters to show, which texts to show, color thresholds, background and border. Texts: one entry per text that is on the tile. Open an entry to change its size, color and font. Updates: automatic refresh interval and the context window size (auto, 200k or 1M). The small reset icon next to a group or entry appears when something there differs from the default. Press it to go back to the default.

Actions

Action What it does Refresh Claude usage Fetches your current usage limits through the Claude desktop app. Takes a few seconds and uses no tokens. Open Claude Opens the Claude desktop app.

Variables

Variable Type Value claudefivehourpercent Number 5-hour limit used, 0-100 claudesevendaypercent Number Weekly limit used, 0-100 claudefivehourresetsin Text Time until the 5-hour limit resets, for example 2h 30m claudesevendayresetsin Text Time until the weekly limit resets, for example 3d 4h claudecontextpercent Number Context window used by the latest conversation, 0-100 claudemodel Text Model of the latest conversation, for example Opus 4.5 claudeproject Text Folder of the latest conversation claudeusageageminutes Number Minutes since the usage limits were fetched claudeusageiscurrent Boolean true when the usage limits are less than 10 minutes old

How it works and privacy

The plugin only reads data that Claude Code already keeps on your computer, and it never changes Claude settings.

Usage limits come from the usage cache Claude Code keeps in %USERPROFILE%\.claude.json (read only). Refreshing runs the Claude Code engine that ships with the Claude desktop app with its /usage command (claude -p /usage). Claude Code fetches your usage with your own sign-in. This uses no tokens and costs nothing. The plugin itself does not read, store or send your Claude credentials. Context, model and project come from the newest Claude Code conversation file in %USERPROFILE%\.claude\projects (the Code tab of the desktop app writes these). Only the token counts, model name and folder of the last answer are read. Message text is not used. The plugin makes no network requests of its own and sends no data anywhere. If CLAUDECONFIGDIR is set, the plugin reads from that folder instead.

Known limitations

Windows only in this version. The usage cache and conversation files are internal Claude Code files, not a documented interface. A future Claude Code update could change them; the tile then shows -- until the plugin is updated. Usage limits are as current as the last refresh (automatic, or when you press the tile). The context meter covers conversations in Claude Code (the Code tab or a terminal), not chats in the regular chat view. The context window size is detected automatically (200k or 1M). Choose it yourself on the Updates tab if your model uses a different size.

Building from source

Requirements: .NET SDK 10.0 and the Macro Deck plugin CLI (dotnet tool install --global MacroDeck.Plugin.Cli).

dotnet build dotnet test macrodeck-plugin build --source src/UsageMeter --output ./artifacts

The packed .macroDeckPlugin file in artifacts/ can be installed in Macro Deck for testing.

AI disclosure

This plugin does not use AI features at runtime. Parts of its code, texts and its icon were created with AI assistance and reviewed and tested by the publisher. This is declared in the plugin manifest.

License

MIT

README-badge

Plak dit in je README, zodat anderen deze pagina in de Macro Deck Store kunnen openen.