usage-quota

Reviewed at commit 5444bb3

Know your Claude limits before they hit you (Live band above the Claude Code prompt): 5 Hour and Weekly usage (whole account) with a live usage forecast…

Made by
Anant Raghunath
What we checked

Shows a band above the prompt with your 5-hour and weekly Claude usage, a forecast of when you would hit the limit, and context window usage. It asks Anthropic's usage service about every 2 minutes through your own login, and has a Compact button plus an optional per-chat auto compact switch (off by default) that compacts at a context percentage you set.

Review details

Static review of the source at the pinned commit; not run. Only change since the previous review is the README. Registers session.start, session.measure, turn.start, turn.complete, prompt.edit (used only to commit the percent field draft, the text is not read), ui.focus, ui.press, ui.render (AbovePrompt), command.run (/quota). Network: one $.http.fetch to https://api.anthropic.com/api/oauth/usage about every 2 minutes with back-off, authorised through $.session.authorize() so the plugin gets a handle, not the token; no other host (the w3.org strings are SVG namespaces). Files: reads the Claude desktop app config.json (APPDATA or ~/Library/Application Support/Claude) and extracts only userThemeMode, re-reading only when its mtime changes; once reads an old store file for its own previous plugin name in ~/.claude/plugins/store to migrate settings. Programs: fixed arguments only, 'reg query ...AppsUseLightTheme' on Windows or 'defaults read -g AppleInterfaceStyle' on macOS, to match the theme. Stores per-chat auto compact settings, learned usage pace and the collapsed flag via $.store. Auto compact calls $.session.compact() or runs /compact when the context reaches the set percentage, and only when the user has switched it on for that chat. No eval, no downloaded code. npm dependencies: none.

What it uses
  • Reads your prompts: no
  • Sees tool calls: no
  • Blocks or changes tool calls: no
  • Reads or writes files: yes
  • Runs programs on your machine: yes
  • Calls the model (uses tokens): no
  • Sends data over the network: yes
  • Stores data: yes
  • Shows something on screen: yes
Hooked events
Screenshot of usage-quota

Know your Claude limits before they hit you (Live band above the Claude Code prompt): 5 Hour and Weekly usage (whole account) with a live usage forecast against limit resets, context window usage, one-click Compact and per-session Auto compact (30% default).

Made this mod? Add a badge to your README

modsforClaude badge for usage-quota

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/usage-quota.svg)](https://modsforclaude.com/mods/usage-quota/)

← All mods