Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By atretyak1985v0.7.1Apache-2.0In 1 marketplace
Binds a project to one of several Claude Code accounts so every session in it uses that account, with a wrong-account warning. Needs the swarmery CLI on the machine; opt-in, since most people have one account.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
Executables (bin/) — files in this plugin's bin/ directory are added to the Bash tool's PATH while the plugin is enabled.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Bind a project to one of several Claude Code accounts and run every session in
it under that account — from the dashboard, from /account, and from your own
terminal. Opt-in: most people have one account and need none of this.
One Claude Code config dir. The CLI keeps everything about a login — including
the credential — under CLAUDE_CONFIG_DIR, so pointing a process at another
config dir is switching the account. The default account is the env-LESS one:
it lives in ~/.claude, which is where the CLI looks when CLAUDE_CONFIG_DIR
is unset, so a project bound to it produces an empty environment delta and
behaves exactly as it did before this pack existed.
swarmery never writes credential material. It creates directories and points
processes at them; the claude CLI performs each account's own login.
The whole flow, in order. Steps 1–2 happen in the swarmery dashboard; step 3 is this pack; step 4 is nothing at all.
1. Register the second account — dashboard → Settings → accounts →
+ add account. Pick a key (say work); the modal reserves the config dir and
shows a login command. It deliberately does not run it — copy it into your
own terminal:
CLAUDE_CONFIG_DIR="$HOME/.claude-work" claude
# inside the session: /login → authorize the SECOND account → /exit
Use a private browser window if your browser is already logged into the first account — otherwise you will re-login the same account under a new name. When the login completes, the account's row shows a green connected dot.
2. Bind it to a project — project → Settings → account card → pick
work → save. The binding is written to the project's
.claude/settings.local.json (machine-local, gitignored — your choice never
reaches the repo or your teammates). From here on, every process the daemon
spawns for this project — dispatched tasks, verification, planning, the
terminal dock — runs under work. The account is resolved at spawn time: a
run already in flight keeps its old account until it finishes.
3. Cover your own terminal — enable this pack for the project and either
run /account setup-shell once (plain claude then follows the binding) or
use the explicit claude-account.sh wrapper. The SessionStart hook warns you
whenever a session starts under a different account than the bound one, and
the statusline shows an account chip whenever you are not on the default.
4. Projects without a binding need nothing. No binding → no
CLAUDE_CONFIG_DIR → byte-for-byte the pre-multi-account behaviour. The card
on the project settings page does not even render until the machine has a
second account.
"enabledPlugins": { "accounts-pack@swarmery": true }
Enabling the pack does not touch your shell profile. The only thing that
edits it is running bin/install-shell-function.sh yourself.
Every decision lives in swarmery account, so the shell surfaces, the hooks and
the daemon cannot disagree about which account a project uses:
swarmery account list key, config dir, default?, connected?, plan
swarmery account which [--path <dir>] the effective account, the rung that decided it
(own pin, an ancestor's pin, or the default),
the estate and its root, and any shadowed pin
swarmery account use <key> [--path <dir>] bind a directory (lists shadowing pins first;
[--clear-pins | --clear-pins=all | --keep-pins] see "Estates" below)
swarmery account clear [--path <dir>] unbind it (an estate declared there stays)
swarmery account env [--path <dir>] zero or one line: CLAUDE_CONFIG_DIR=<dir>
swarmery account exec [--path <dir>] -- <cmd ...> run a command under the project's account and estate
swarmery account estate use <key> [--path <dir>] declare <dir> as the root of estate <key>
swarmery account estate show [--path <dir>] the estate a path resolves to, and its root
swarmery account estate clear [--path <dir>] remove the declaration at <dir>
swarmery account switch <key> [--estate <root>] move a whole declared estate to <key>; refuses a path
[--force] [--clear-pins] [--dry-run] under no estate and an account with unknown headroom
swarmery account move-session <uuid> --to <key> copy a session into <key>'s config dir, re-point its
[--from <key>] [--cwd <path>] [--dry-run] row, print the resume command
env prints to your terminal, so it prints the config dir and nothing else.
exec hands the environment to the child without printing it, so it is the one
that also carries the MCP secrets (see below). Both terminal surfaces in this
pack use exec for exactly that reason.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub atretyak1985/swarmery --plugin accounts-packPlugins from other owners that cover similar ground