Accounts
An Account is one Claude login Perch holds. Gain one, name one, keep one out of Cycling, repair one, give one up.
Adopting the login you already have
Section titled “Adopting the login you already have”$ perch statusAdopted the Claude Code login as you@example.com (Acme, pro).Account you@example.comOrganization AcmePlan proUtilization never observedThe first command you run takes the Claude Code login already on the machine as
your first Account. Nothing is logged into again. That Account is in no Group,
so a bare perch switch has nothing to Cycle to until you put it in one, or
declare the ungrouped Accounts interchangeable.
Adding an Account
Section titled “Adding an Account”$ perch add --group work --alias overflowLogging in to a new Profile.Quit Claude Code when the login is done.
Added overflow@example.com (Overflow Ltd, max).Alias: overflowGroup: workGroup `work` now holds 2 Accounts, and nothing Cycles between them unasked: `perch config set work watcher-may-act true` says it may.A browser opens for the login. Log in as the new Account, then quit Claude Code to come back. The Account you were on stays active in every terminal.
--group <name> puts the new Account in a Group, and --no-group puts it in
none. Without either, Perch offers the Account’s organization as the Group and
asks you to confirm. --alias <name> names the Account at the same time.
$ perch add --no-groupLogging in to a new Profile.Quit Claude Code when the login is done.
Added spare@example.com (Spare Ltd, pro).Group: noneIn a script, pass one of the two flags, or the Add is refused.
Naming an Account
Section titled “Naming an Account”$ perch alias overflow@example.com overflow`overflow` now names overflow@example.com.
$ perch alias overflow --unset`overflow` no longer names overflow@example.com.Every command that takes a Target takes the Alias or the email address. To free a name you have forgotten, name the Account it is on.
Aliases and Group names share one namespace. A name is letters, digits, _ and
- in any alphabet, opening with a letter, a digit or _. work and Work
are the same name. ungrouped, none and global are refused as names.
Keeping an Account out of Cycling
Section titled “Keeping an Account out of Cycling”$ perch disable spareDisabled spare@example.com (as `spare`).
$ perch enable spareEnabled spare@example.com (as `spare`).A disabled Account keeps its Alias, its Group and its Credential. perch list
shows it as disabled, and perch switch spare still switches to it. Only
Cycling passes it over. Disabling every Account in a Group is allowed, and a
bare perch switch there then finds nowhere to land.
Enabling does not repair a Quarantined Account:
$ perch enable sparespare@example.com (as `spare`) was already enabled. It is Quarantined: Anthropic would not renew its Credential. `perch relogin spare@example.com` repairs it.When an Account breaks
Section titled “When an Account breaks”$ perch statusAccount you@example.comOrganization AcmePlan proQuarantine Anthropic would not renew its Credential. `perch relogin you@example.com` repairs it.Utilization never observedAn Account whose Credential stopped working is Quarantined. It stays listed
and named, with the reason and the repair beside it. Cycling never chooses it,
and perch switch onto it is refused.
$ perch relogin overflowLogging in again to repair overflow@example.com.Quit Claude Code when the login is done.
Repaired overflow@example.com (as `overflow`). It is no longer Quarantined.Log in as the same Account in the browser that opens. The Account keeps its Alias, its Group, its place in the listing and whether Cycling may choose it. Only the Credential is replaced. A login as a different Account is refused. Abandoning the login changes nothing.
Relogging in the Account you are on also makes the fresh Credential the live one. A healthy Account may be relogged in too.
Giving up an Account
Section titled “Giving up an Account”$ perch remove spareRemoved spare@example.com (as `spare`).The Alias `spare` is free to use again.The Account is forgotten and the Credential Perch holds for it is deleted. The Group it was in stays declared.
Removing the Account you are on asks first, and lands you somewhere else before anything is deleted:
$ perch remove work-mainyou@example.com (as `work-main`) is the active Account. overflow@example.com (as `overflow`) will be made active first; `perch switch <target>` before this lands somewhere else. Its Credential is deleted with it.Remove you@example.com (as `work-main`)? [y/N]: yoverflow@example.com (as `overflow`) is the active Account now.Removed you@example.com (as `work-main`).The Alias `work-main` is free to use again.It lands on an Account in the same Group where there is one, never on a
disabled or Quarantined Account, and never ranked by Headroom. perch switch <target> first if you want a different landing. Removing the last Account is
allowed and confirmed the same way, and does not log Claude Code out.
--yes agrees in advance. Without a terminal and without the flag, a removal
that would have asked is refused instead, and end of input is a no.