account-rotation

account-rotation is a skill for Claude Code from boshu2/agentops. It costs 30 tokens per session (561 once invoked), scanned A, original, Apache-2.0.

A procedure for switching the account used by a selected coding-agent runtime and checking which identity it actually uses afterward.

In plain words
What is it for?
Use it to rotate an explicitly chosen coding-agent account, verify the observed identity, and determine whether a new process is needed.
Why use it?
It avoids falsely confirming a switch from credential-file changes when an existing process may still hold the old login.

Skill for Claude Code

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

Part of the agentops plugin — 55 skills, 2 agents, 1 hook shipped together

Good fit Use it to rotate an explicitly chosen coding-agent account, verify the observed…

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

Made for: Claude Code.

Or install agentops, the plugin that ships this one along with the rest of its 55 skills, 2 agents, 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-rotation

README.md
[![agentmods](https://agentmods.dev/badge/skills/boshu2/agentops/account-rotation.svg)](https://agentmods.dev/skills/boshu2/agentops/account-rotation)
Your own site
<a href="https://agentmods.dev/skills/boshu2/agentops/account-rotation"><img src="https://agentmods.dev/badge/skills/boshu2/agentops/account-rotation.svg" alt="Measured on agentmods" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 561 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.00030 $0.00561
Opus 5 $0.00015 $0.00280
Sonnet 5 $0.00006 $0.00112
Haiku 4.5 $0.00003 $0.00056

Measured 7d ago against content hash 91d38d0f1b31, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

account-rotation 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 7d 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.

images/gemini/skills/account-rotation/SKILL.md · 61 lines

How it starts

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

Account rotation — credential adapter

Choose the credential tool from both host and agent family, perform only the explicit account switch, and report the identity observed by the matching runtime.

Verifying identity through the target runtime works because the runtime is the only party whose opinion matters: credential files can be swapped perfectly and still authenticate as the old account in an already-running process.

Named failure mode — stale-process identity: declaring the rotation done while every live session still holds the previous account's tokens in memory.

Anti-pattern: confirming a switch by diffing credential file bytes. Corrective: ask the matching runtime who it is now, and report whether a new process is required for the answer to hold.

Boundary

  • Perform only the account switch the caller explicitly authorized; rotation mutates host credential state and is never implied by repository access.
  • The credential tool is caller- or operator-selected per host and agent family; the names below are this operator's routes, not a universal prescription. On macOS with Claude credentials the route is claude-acct (Keychain-backed); file-backed Codex, Gemini, Linux, or WSL credentials use caam. Never use caam for macOS Claude account operations.
  • Verify account identity through the target runtime; token bytes are not account identity.
  • If neither the selected credential tool nor a runtime identity probe is available, report that absence as a disclosed fact and stop. Never fall back to diffing credential-file bytes to declare a switch done.
  • Existing processes retain credentials already loaded in memory. Rotation affects a new process.
  • This skill does not restart work, resume a task, select a pane, move repository state, or decide what happens after the switch.

Return the host, agent family, selected tool, requested account/profile, the identity observed before and after the switch, whether any live runtime still holds the previous account (a partial rotation), the command exit code, and whether a new process is required for the new identity to hold.

Read the full file on GitHub · 61 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. 7d ago First seen · 61 lines · 30 tokens per session scan A 91d38d0f1b31

Subscribe to this mod's changes

account-rotation is a skill published in the GitHub repository boshu2/agentops (433 stars, last pushed today), licensed Apache-2.0. It adds 30 tokens to every session and 561 once invoked, about $0.0002 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-30.

Related

Other skills, from other repositories

brainstorm

Explore vague or ambitious ideas into a right-sized requirements-only plan. Use when the user wants to brainstorm, think through scope, decide what to build, or needs collaborative product framing before planning, not for a decisive verdict on whether to adopt or switch to a specific external technology, library, or…

OutlineDriven/odin-claude-plugin · 85 tokens

audit-project

Run an iterative multi-agent code audit until critical and high findings are resolved. Use when the user says "audit my code", "find all the bugs", "deep code audit", "iterative review", or "review until clean".

OutlineDriven/odin-claude-plugin · 50 tokens

commit-push-pr

Use when asked to commit, push a feature branch, and open or update a pull request with gh in one pass. Not for a push with no PR: use commit-push. Not for a PR body alone: use create-pull-request.

OutlineDriven/odin-claude-plugin · 55 tokens

commit

Use when asked to commit changes, create a typed branch, format history for a changelog, or rewrite messages of HEAD or an unpushed range. Not for pushing or a PR: use commit-push or commit-push-pr.

OutlineDriven/odin-claude-plugin · 50 tokens

deps-upgrade

Use when dependency upgrades need batching for CVEs, a major release, forced compatibility, a scheduled or vulnerability-triggered sweep. Not for PR queue triage: use github-backlog-triage.

OutlineDriven/odin-claude-plugin · 44 tokens

drift-detect

Use when the user says "plan drift", asks whether the roadmap, plans, or docs still match the code, or is deciding what to rebuild when restarting a stalled project. For doc-vs-code drift inside a specific diff, use sync-docs.

OutlineDriven/odin-claude-plugin · 56 tokens