hub-quota

hub-quota is a command for Claude Code from fiale-plus/fiale-claude-plugins. It costs 13 tokens per session (604 once invoked), scanned A, original, MIT.

A command for displaying an estimated Claude token-usage quota in the status line. Tokens are the small pieces of text used to measure how much context the model processes.

In plain words
What is it for?
Use it to choose a plan estimate, display a bar or percentage, set an alert threshold, or hide the quota display.
Why use it?
It gives you an early warning that an estimated daily usage limit is being approached, without claiming to show the actual API quota.

Command for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the claude-status-hub plugin — 16 commands shipped together

Good fit Use it to choose a plan estimate, display a bar or percentage, set an alert threshold, or hide the quota display.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add fiale-plus/fiale-claude-plugins
Claude Code
/plugin install claude-status-hub

Made for: Claude Code.

Or install claude-status-hub, the plugin that ships this one along with the rest of its 16 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for hub-quota

README.md
[![agentmods](https://agentmods.dev/badge/commands/fiale-plus/fiale-claude-plugins/hub-quota.svg)](https://agentmods.dev/commands/fiale-plus/fiale-claude-plugins/hub-quota)
Your own site
<a href="https://agentmods.dev/commands/fiale-plus/fiale-claude-plugins/hub-quota"><img src="https://agentmods.dev/badge/commands/fiale-plus/fiale-claude-plugins/hub-quota.svg" alt="Measured on agentmods" height="20"></a>
Per session 13 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 604 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00013 $0.00604
Opus 5 $0.00006 $0.00302
Sonnet 5 $0.00003 $0.00121
Haiku 4.5 $0.00001 $0.00060

Measured 8d ago against content hash a39993b1c069, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

hub-quota scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/claude-status-hub/commands/hub-quota.md · 110 lines

What it actually says

/hub-quota - Quota Display Setup

Configure estimated usage quota display in your statusline.

Note: This is an ESTIMATION based on token usage, not actual API quota.

Process

Step 1: Ask Plan Tier

Use AskUserQuestion:

question: "What's your Claude plan?"
header: "Plan"
options:
  - label: "Pro"
    description: "~45K tokens estimated daily"
  - label: "Max (5 hrs)"
    description: "~150K tokens estimated daily"
  - label: "Max (20 hrs)"
    description: "~600K tokens estimated daily"
  - label: "Custom"
    description: "Set your own limit"

If Custom, ask: "Enter estimated daily token limit (in thousands, e.g., 100 for 100K):"

Step 2: Ask Display Format

Use AskUserQuestion:

question: "How should quota be displayed?"
header: "Format"
options:
  - label: "Bar ⚡[████░░]"
    description: "Visual progress bar"
  - label: "Number ⚡78%"
    description: "Percentage with icon"
  - label: "Compact ⚡78"
    description: "Minimal, just number"
  - label: "Off"
    description: "Don't show quota"

Step 3: Ask Alert Threshold

Use AskUserQuestion:

question: "Alert when quota exceeds?"
header: "Threshold"
options:
  - label: "75%"
  - label: "80% (Recommended)"
  - label: "90%"

Step 4: Save Configuration

Read ~/.claude/status-config.json and update:

{
  "quota": {
    "plan": "pro",
    "dailyLimit": 45,
    "displayFormat": "bar",
    "alertThreshold": 80
  },
  ...existing config...
}

Step 5: Initialize Quota File

Reset the quota counter:

bash ${CLAUDE_PLUGIN_ROOT}/hooks/reset-quota.sh

Step 6: Confirm

Say:

Quota tracking configured!

Plan: <plan>
Estimated limit: <X>K tokens
Display: <format>
Alert threshold: <X>%

Your statusline will show estimated usage after context.
Example: main* [████░░ 42%] ⚡[██░░░░] › ▶ Song >

Note: This is an ESTIMATE based on tool usage. Actual API quota may differ.

Colors:
- Green: <75% used
- Yellow: 75-90% used
- Red: >90% used (critical)
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 110 lines · 13 tokens per session scan A a39993b1c069

Subscribe to this mod's changes

hub-quota is a command published in the GitHub repository fiale-plus/fiale-claude-plugins (4 stars, last pushed 5mo ago), licensed MIT. It adds 13 tokens to every session and 604 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.