Account Rotation (coding-agent credential adapter)
Switches a coding-agent account (Claude/Codex/Gemini) on explicit request and verifies the new identity by asking the target runtime, not by diffing credential files.
UtilitiesAdvanced★ 420⑂ 40AI score 6/10Last updated: Aug 11, 2026
What it does
- Performs only the account switch the caller explicitly authorized; credential state is never mutated just because repo access exists.
- Picks the credential tool per host and agent family:
claude-acct(Keychain-backed) for macOS + Claude,caamfor file-backed Codex, Gemini, Linux or WSL credentials. - Verifies the result by asking the target runtime who it is now — byte-level credential diffs are explicitly rejected as proof.
- Names and reports the stale-process identity failure mode: live sessions still holding the previous account's tokens mean the rotation is only partial.
- Returns a structured report: host, agent family, tool used, requested account/profile, identity before and after, any lingering old sessions, command exit code, and whether a fresh process is required.
Who it's for
- Developers and operators juggling multiple Claude / Codex / Gemini accounts.
- Anyone who has hit "I switched accounts but the agent still acts as the old one".
- Teams that want auditable, disclosed credential changes in agent automation.
Examples
- On macOS: "switch to my work Claude account" → routes through
claude-acct, then queries the Claude runtime to report before/after identity. - On Linux: rotate a file-backed Gemini profile via
caam, then flag that a running session still holds the old account (partial rotation). - Neither the credential CLI nor a runtime identity probe available → discloses the gap and stops instead of guessing.
· · · Install guide · · ·
Try it now, no install
Paste this into Claude to use the skill without installing anything.
Read the instructions in this file and follow them to help me: https://raw.githubusercontent.com/boshu2/agentops/HEAD/images/gemini/skills/account-rotation/SKILL.md What I want: (describe your task here)
If Claude can't open the link, open it yourself and paste the contents instead.
↓ If it works for you, download the ZIP below and install it. Then it runs on its own — no pasting each time.
Install in the Claude app (no terminal)
- Download the ZIP with the button below.
- In Claude, open Settings → Capabilities and turn on 'Code execution and file creation'. (one time)
- Go to Customize → Skills → + → 'Upload a skill' and upload the ZIP.
Install in Claude Code
Let Claude do it — paste this into Claude Code
Install the skill I found on Claude Skill Mart. Copy the images/gemini/skills/account-rotation folder from the GitHub repo boshu2/agentops into my ~/.claude/skills/account-rotation/. When it's done, tell me in one line what this skill can do.
Install with a command instead
git clone https://github.com/boshu2/agentops.git && mkdir -p ~/.claude/skills && cp -r agentops/images/gemini/skills/account-rotation ~/.claude/skills/⚠ This is a third-party skill. Check the source repository before installing.
- Open a terminal.
- Clone the repo:
git clone https://github.com/boshu2/agentops.git - Create the skills directory:
mkdir -p ~/.claude/skills - Copy the skill:
cp -r agentops/images/gemini/skills/account-rotation ~/.claude/skills/ - Provide the credential tooling:
claude-accton PATH for macOS + Claude,caamfor file-backed Codex/Gemini/Linux/WSL. If you use different CLIs, edit the tool names in SKILL.md to match your routes. - Restart Claude Code and try a request like "rotate coding-agent account".
- Note: this skill mutates real host credential state — test with a throwaway account first.
View source on GitHub ↗License: Apache-2.0