claude-switch-accountlisted
Install: claude install-skill dayvisonassis/sdd-skills
# Claude switch account
Switches the active Claude Code account by swapping saved copies of
`.credentials.json`, with no browser OAuth round-trip.
There is still a single `~/.claude`: settings, memory, `projects/`, skills and
plugins stay shared. Only the credentials file changes.
## Pick the script for the platform
| Platform | Command prefix |
|---|---|
| Windows | `powershell -NoProfile -File <skill-dir>/claude-switch-account.ps1` |
| Linux, macOS | `bash <skill-dir>/claude-switch-account.sh` |
Flags differ by convention: `-Sessions` / `-Status` / `-List` /
`-Save -Account <name>` / `-Account <name>` on PowerShell, `--sessions` /
`--status` / `--list` / `--save <name>` / `<name>` on bash.
Snapshots are always plain files under the store on every platform. Only the
*live* credential location differs: a file on Windows and Linux, the login
Keychain on macOS.
## Steps
1. **Run the status command first.** It prints exactly one token:
| Output | Meaning |
|---|---|
| `sem-credenciais` | Nobody is logged in. Nothing to do but log in. |
| `sem-cadastro` | Someone is logged in, no account is registered yet. |
| `sem-ativa` | Snapshots exist but none is marked active. |
| `confere:<name>` | The live credentials are the `<name>` snapshot, unchanged. |
| `diverge:<name>` | The live credentials differ from the `<name>` snapshot. |
| `marcador-desatualizado:<real>` | The live account is `<real>`, not what the marker says. |
| `identidade-divergente:<nam