Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add DuanZGit/D-Hub --skill magpie-quotagit clone --depth 1 https://github.com/DuanZGit/D-HubWrote 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.
[](https://agentmods.dev/skills/duanzgit/d-hub/magpie-quota)<a href="https://agentmods.dev/skills/duanzgit/d-hub/magpie-quota"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/magpie-quota/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/duanzgit/d-hub/magpie-quota"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/magpie-quota.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00101 | $0.00902 |
| Opus 5.5 | $0.00040 | $0.00361 |
| Sonnet 5.5 | $0.00020 | $0.00180 |
| Haiku 4.5 | $0.00010 | $0.00090 |
Grade A, and why
magpie-quota scanned grade A with 1 finding 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 29d 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.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -s http://127.0.0.1:3425/v1/magpie/quotas How it starts
The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.
magpie quota
magpie knows every subscription (Claude, Codex, Copilot, Gemini and others), coding plan and API key the user has added, and reads what is left of each from its vendor. Ask it rather than guessing or calling vendors yourself.
Read what is left
magpie quota --json # every subscription, plan and key balance
magpie quota codex --json # only some: provider id, name, or kind
magpie quota subscription --json # kind: subscription, plan or balance
It asks the vendors now (or uses a reading under a minute old), whether or
not magpie's app is running. Without --json it prints a table for people.
If the magpie command isn't found, the running app answers the same JSON
on its gateway (port 3425 unless the user changed it in Settings → Gateway):
curl -s http://127.0.0.1:3425/v1/magpie/quotas
Read the JSON
A list, one entry per account, plan or key:
provider,name: the provider's id and display name;userthe account (email or login) when there are several;planthe plan's name.kind:subscription(signed-in account),plan(coding plan bought with a key) orbalance(a key's money).windows: each usage window (namelike "5 hours" or "Weekly"), withusedandremainingin percent (0–100),resetsAtwhen it starts again (an RFC 3339 time),unlimitedwhen it has no limit, anddisplay/amount/limit/unitwhen the vendor counts it ("1.2k / 3k").balance: what a key or account holds, in its own currency or credits ("$12.40", "¥37.22", "1.2K credits").error: why it couldn't be read; say this to the user rather than treating the account as empty.asOf/readAt: when the reading was taken, if not just now.lastServedAt,last: when it last answered a request through magpie's gateway, andlast: trueon the one that answered most recently.
A window with remaining 0 is used up until resetsAt. Tell the user the
numbers that matter for their question (what is low, what is used up, when
it comes back) instead of pasting the whole list.
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.
- 29d ago First seen · 82 lines · 101 tokens per session scan A cd9ae8b40727
magpie-quota is a skill published in the GitHub repository DuanZGit/D-Hub (0 stars, last pushed yesterday), licensed MIT. It adds 101 tokens to every session and 902 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.
magpie-quota compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| magpie-quotaDuanZGit/D-Hub | Skill | 0 | yesterday | MIT | A | 101 | Claude Code, Codex |
| edgeone skill scannerTencent/AI-Infra-Guard | Skill | 7.9k | 3d ago | Apache-2.0 | A | 148 | Claude Code, Codex |
| babysitkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 45 | Claude Code |
| rubber-duckkirodotdev/KiroCrew | Skill | 5.2k | today | Apache-2.0 | A | 161 | Claude Code, Codex |
| project-wikiGeminiLight/MindOS | Skill | 707 | yesterday | MIT | A | 63 | Claude Code, Codex |
| mindos-zhGeminiLight/MindOS | Skill | 707 | yesterday | MIT | A | 490 | Claude Code |
| mindos-maxGeminiLight/MindOS | Skill | 707 | yesterday | MIT | A | 145 | Claude Code |