accounts

accounts is a skill for Claude Code, Codex from MGrin/bb-plugin-accounts. It costs 32 tokens per session (979 once invoked), scanned A, original, MIT.

A skill for reading Claude and Codex subscription information and inspecting Claude account switching. It reports provider, account scope, observation time, freshness, and available subscription capacity without treating the report as a usage gate.

In plain words
What is it for?
Use it to inspect account telemetry, compare account observations, and diagnose unknown or unavailable subscription capacity.
Why use it?
It removes guesswork when checking which account is active or whether subscription capacity is known. It also distinguishes missing or stale information from confirmed availability.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Good fit Use it to inspect account telemetry, compare account observations, and diagnose unknown or unavailable subscription capacity.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/mgrin/bb-plugin-accounts/accounts
Install

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.

Any agent
npx skills add MGrin/bb-plugin-accounts --skill accounts
Clone the repo
git clone --depth 1 https://github.com/MGrin/bb-plugin-accounts

Made for: Claude Code, Codex.

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 accounts

README.md
[![agentmods](https://agentmods.dev/badge/skills/mgrin/bb-plugin-accounts/accounts/github.svg)](https://agentmods.dev/skills/mgrin/bb-plugin-accounts/accounts)
Your own site
<a href="https://agentmods.dev/skills/mgrin/bb-plugin-accounts/accounts"><img src="https://agentmods.dev/badge/skills/mgrin/bb-plugin-accounts/accounts/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.

agentmods 80×15 button for accounts

Your own site · 80×15
<a href="https://agentmods.dev/skills/mgrin/bb-plugin-accounts/accounts"><img src="https://agentmods.dev/badge/skills/mgrin/bb-plugin-accounts/accounts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 979 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.00032 $0.00979
Opus 5.5 $0.00013 $0.00392
Sonnet 5.5 $0.00006 $0.00196
Haiku 4.5 $0.00003 $0.00098

Measured 10d ago against content hash 9020c910ab01, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

accounts 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 10d 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.

skills/accounts/SKILL.md · 60 lines

How it starts

The opening of the file, as written. The whole thing — 60 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Custom subscription accounts

bb accounts telemetry [--json] returns normalized provider observations. Version 1 has accounts[] and separate thread tokens[]. Read providerId, scope, observedAt, fresh and capacity together. A successful read exits 0 even when capacity is UNKNOWN; this is a reporting command, not an admission gate.

  • capacity is subscription headroom only: available, exhausted, unavailable or unknown. Credits and token counts never make a subscription available.
  • Codex's main codex bucket controls ordinary capacity. Spark is shown separately.
  • Use email or label for display, never accountId. codex_account_email comes from read-only account/read (refreshToken: false); missing email stays unavailable and does not invalidate quota. The UI defaults to usage/reset, with diagnostics collapsed.
  • A Codex local-session observation without accountId cannot identify an account. SDK quota observations stay thread-scoped and cannot replace the current local snapshot.
  • Missing, malformed, stale, future-dated or incomplete main quota is UNKNOWN. A reset passing is not evidence of recovery: read a fresh observation.
  • Codex account rows read the private ~/.config/codex-usage/usage.json slot cache (256 KiB max). The dotfiles usage-only poller gathers native app-server quota in isolated credential homes every 180 seconds. Stale rows are UNKNOWN. slot and active identify the live login on disk, not every running process.

The legacy bb accounts list, outage, place, auto, switch, log, stats and forecast commands remain Claude-only. In particular, outage includes Claude paid credits by design; it is not the new subscription-only capacity field.

bb accounts switch <slot> changes live Claude credentials. bb accounts codex use <slot> changes the live Codex login through the dotfiles codex-acct helper with expected-current identity protection. Capture logins using codex-acct capture <slot> after an official human sign-in. Never read or print auth blobs. bb accounts codex auto runs one decision; codexAutoSwitch defaults off. Enable only after running-session refresh behavior has been verified. codexSwitchAt defaults to 97; candidates require fresh free main windows and the helper rechecks capacity during switching. Cooldown is 120 seconds. Spark and credits cannot make a candidate eligible.

The usage page includes native Codex response tokens by model/repo/directory. Input includes cache; output includes reasoning; neither maps to quota percent. Missing turn context is shown as unknown/unresolved. Codex forecasts use each account/window's own measured quota history; they remain provisional until three days, 1,440 polls, and 1,296 valid adjacent intervals. Forecasts stop at reset and do not predict post-reset use.

Read the full file on GitHub · 60 lines

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. 10d ago Changed · +17 lines · +8 tokens per session 9020c910ab01
  2. 1mo ago Changed · +11 lines · +3 tokens per session 985e9112d56d
  3. 1mo ago First seen · 32 lines · 21 tokens per session scan A ad8a6c557cb4

Subscribe to this mod's changes

accounts is a skill published in the GitHub repository MGrin/bb-plugin-accounts (4 stars, last pushed 11d ago), licensed MIT. It adds 32 tokens to every session and 979 once invoked, about $0.0001 per session on Opus 5.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-09-13.