account

account is a command for Claude Code from atretyak1985/swarmery. It costs 56 tokens per session (1,622 once invoked), scanned A, original, Apache-2.0.

A command for viewing and switching the Claude Code account used by a project. It can list accounts, select one, clear the selection, or configure the shell setup.

In plain words
What is it for?
Use it to list available accounts, choose the account for the project, clear the current choice, or install or remove the shell setup.
Why use it?
It makes the project's active account visible and lets you change it without putting account-switching logic into the project itself.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; mentions Claude Code.

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 accounts-pack plugin — 1 command, 1 hook shipped together

Good fit Use it to list available accounts, choose the account for the project, clear the current choice, or install or remove the shell setup.

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 atretyak1985/swarmery
Claude Code
/plugin install accounts-pack

Made for: Claude Code.

Or install accounts-pack, the plugin that ships this one along with the rest of its 1 command, 1 hook.

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 account

README.md
[![agentmods](https://agentmods.dev/badge/commands/atretyak1985/swarmery/account/github.svg)](https://agentmods.dev/commands/atretyak1985/swarmery/account)
Your own site
<a href="https://agentmods.dev/commands/atretyak1985/swarmery/account"><img src="https://agentmods.dev/badge/commands/atretyak1985/swarmery/account/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 account

Your own site · 80×15
<a href="https://agentmods.dev/commands/atretyak1985/swarmery/account"><img src="https://agentmods.dev/badge/commands/atretyak1985/swarmery/account.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 56 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,622 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.00056 $0.01622
Opus 5 $0.00028 $0.00811
Sonnet 5 $0.00011 $0.00324
Haiku 4.5 $0.00006 $0.00162

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

Security

Grade A, and why

account 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 9d 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/accounts-pack/commands/account.md · 156 lines

How it starts

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

/account — which account does this project run under?

Usage

/account                              list the accounts and mark the one this project uses
/account use <key>                    bind this project to an account
/account clear                        drop the binding (back to the default account)
/account setup-shell [--uninstall]    install/remove the `claude` shell function in your profile

What it does — and does not do

This is a thin proxy over the swarmery account CLI. It parses $ARGUMENTS, picks the matching command below, and reports its output. It owns no logic of its own: what an account is, where its config dir lives, and what the environment delta is are all answered by the CLI, so this command and the dashboard can never give different answers.

If a rule about accounts ever appears in this file, it leaked out of the CLI and belongs back there.

Requires the swarmery CLI on PATH. It does not require the daemon: which, use, clear, env and exec read and write the binding file directly. If swarmery is missing, say so and stop — do not guess an account.

Commands

/account (no arguments)

swarmery account list
swarmery account which --path "${CLAUDE_PROJECT_DIR:-$PWD}"

Report both: the table of installed accounts (key, config dir, default?, connected?, plan) and the account this project effectively runs under. source: binding means someone chose it; source: default means nobody did.

connected: unknown is not no — it means credential resolution is switched off (SWARMERY_USAGE_OAUTH=0), so the question was never asked.

/account use <key>

swarmery account use "<key>" --path "${CLAUDE_PROJECT_DIR:-$PWD}"

Writes the binding to .claude/settings.local.json (machine-local, gitignored — two people on one repo legitimately use different accounts). The CLI refuses a key that is not installed on this machine; report that refusal as-is rather than falling back to another account.

Read the full file on GitHub · 156 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. 9d ago First seen · 156 lines · 56 tokens per session scan A 4e2be8dfc7a3

Subscribe to this mod's changes

account is a command published in the GitHub repository atretyak1985/swarmery (5 stars, last pushed yesterday), licensed Apache-2.0. It adds 56 tokens to every session and 1,622 once invoked, about $0.0003 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.