account-switch

account-switch is a skill for Claude Code from sonichi/sutando. It costs 158 tokens per session (5,986 once invoked), scanned A, original, MIT.

A private account card for checking or changing which saved Codex or Claude account the core uses. It works in the owner's direct message and can point to Settings when another account needs to be added.

In plain words
What is it for?
Use it to view the current coding-service account, switch to another account saved on the Mac, or start adding an account through Settings.
Why use it?
It keeps account changes and sign-in details out of ordinary chats. It also reports the active account and confirms changes after restarting when needed.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter. Also seen: mentions Claude Code; mentions Codex.

Good fit Use it to view the current coding-service account, switch to another account saved on the Mac, or start adding an account through Settings.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/sonichi/sutando/account-switch
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 sonichi/sutando --skill account-switch
Clone the repo
git clone --depth 1 https://github.com/sonichi/sutando

Made for: Claude Code.

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-switch

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/sonichi/sutando/account-switch"><img src="https://agentmods.dev/badge/skills/sonichi/sutando/account-switch.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 158 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,986 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.00158 $0.05986
Opus 5.5 $0.00063 $0.02394
Sonnet 5.5 $0.00032 $0.01197
Haiku 4.5 $0.00016 $0.00599

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

Security

Grade A, and why

account-switch 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 today.

The scan reads SKILL.md. This mod also ships 5 executable files (scripts/account_card.py, scripts/claude_add.py, scripts/claude_api_keys.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/account-switch/SKILL.md · 262 lines

How it starts

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

account-switch

Use it when the owner, in their DM, asks to switch, change or add the core's account, or asks which account the core is on and wants to change it. Anyone else, or any other room: say the account is switched from the owner's DM and do nothing.

python3 skills/account-switch/scripts/account_card.py post --room <owner DM> [--reply-to <event>]
python3 skills/account-switch/scripts/account_card.py post --room <owner DM> --print   # the card, not sent
python3 skills/account-switch/scripts/account_card.py status                          # JSON: in use + saved

The Codex app-server seat runs account_card.py post --signed-out itself (no --room: the core's checked owner DM) when the core's login is refused even after it restarted the app-server on the login on disk; that card leads with "Codex isn't signed in anymore." and offers the same switch.

post --owner-dm --lead <words> posts the same card, unasked, to the core's checked owner DM with <words> opening it: the core's quota notice (src/core_quota_notice.py) sends it once per usage limit, from the Codex seat and the Claude Code core's monitor, with --retry adding a Retry button that sends the owner's "retry now" (the Claude core's limit hold acts on it; a Codex core's card has none). Never post it that way yourself. --owner-dm and leaving out --room go to the same DM; with --signed-out, --lead replaces the "isn't signed in anymore" line.

Never start a sign-in yourself, and never ask for, accept or repeat a sign-in code, link code, token or API key in chat. If the owner pastes one, do not use it; tell them to paste it into the add card's encrypted box (a self-run Claude core, or a Codex core for an API key) or in Settings, in the app's own box. An API key pasted in chat is in the room's history: tell them to delete it (Anthropic Console or OpenAI dashboard) and add a new key with "Add API key…".

The card

  • In use. A Codex core (TUI or app-server seat) is read by src/codex_account.py; a Claude core by claude auth status --json under the core's config dir. Addresses are masked (first letter and domain) on the card. The account in use reads "email · organisation" (one email can be in several organisations): a Claude core's from the folder's .claude.json oauthAccount organisation name when it names that email, a Codex core's from the workspace name Codex reports; the email alone when there is no name, never an id. A label too long for a button keeps the email whole and cuts the organisation ("…").
  • Saved accounts (Codex core only). The desktop keeps a copy of each ChatGPT sign-in the core has had in <app support>/accounts/codex/<key>.json (ag2space-cinny-desktop#1264; <app support> is $SUTANDO_APP_SUPPORT, else the folder of the desktop's runtime.json). post saves the signed-in account there first, in the desktop's own format, so a later sign-in never loses it. The other saved accounts are items of the "Account" menu (below). The key on a button is 16 hex of a hash of Codex's account id and the person's email (the desktop's codex_identity: one ChatGPT workspace id is shared by everyone in it); it names no account and carries no credential. A file an earlier engine filed under the workspace id alone is read too and listed once under the account's current key. A button made before then never switches (that file was shared by everyone in the workspace, so it may hold another person now): it asks for a fresh card.
  • Add account. On a self-run Claude core, see "Add account… on a self-run Claude core" below. Anywhere else it answers with where to sign in: Settings → Connections → the Sutando (on this computer) row → "Switch account". The app's sign-in terminal shows the link and takes the code in its own box. Then the owner asks for the card again.

Read the full file on GitHub · 262 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. today Changed · +6 lines af25a0d3bcda
  2. 2d ago Changed · +54 lines · +47 tokens per session d13c65d94b13
  3. 3d ago Changed · +95 lines · +36 tokens per session d27266c3da5f
  4. 5d ago Changed · +13 lines 426bcf1178ae
  5. 7d ago Changed · +13 lines 47e5868417c7
  6. 8d ago First seen · 81 lines · 75 tokens per session scan A 9ac1b02f5ebd

Subscribe to this mod's changes

account-switch is a skill published in the GitHub repository sonichi/sutando (413 stars, last pushed today), licensed MIT. It adds 158 tokens to every session and 5,986 once invoked, about $0.0006 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-11-26.

Related

account-switch compared with skills from other repositories

account-switch next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
account-switchsonichi/sutandoSkill413todayMITA158Claude Code
app-buildervellum-ai/vellum-assistantSkill1.5k3d agoMITA162Claude Code, Codex
gmailvellum-ai/vellum-assistantSkill1.5k3d agoMITA20Claude Code, Codex
assistant-migrationvellum-ai/vellum-assistantSkill1.5k3d agoMITA90Claude Code, Codex
guardian-verify-setupvellum-ai/vellum-assistantSkill1.5k3d agoMITA26Claude Code, Codex
stripe-link-walletvellum-ai/vellum-assistantSkill1.5k3d agoMITA52Claude Code, Codex
vellum-memory-v3-migrationvellum-ai/vellum-assistantSkill1.5k3d agoMITA63Claude Code, Codex