Skip to content

Running one Account in one terminal

perch run <target> launches Claude Code as an Account without changing which one is active.

$ perch run overflow
Running Claude Code as overflow@example.com (as `overflow`), in this terminal alone.

Every other terminal, the editor extension and the desktop app go on as the Account they were on. Two terminals running two Accounts is what the command is for. Your memory, settings, plugins, past work and plans are linked into the Account’s Profile before the launch, so Claude Code opens with your Shared State. Where a link cannot be made, the Run is refused and names the entry.

Trust and tool approvals for the repository you are standing in are carried over from the most recently used Profile in the same Group, so the first Run of a new Account does not ask for trust again mid-task.

The client’s exit code is Perch’s, so perch run stands in a script wherever claude would.

$ perch run work
`work` is a Group. Name one Account: its Alias, or its email address. # exit 14

A Quarantined Account is refused rather than launched into a login prompt.

$ perch switch overflow
A client is running against you@example.com's Profile (pid 4242).
Quit it, or `perch switch` to another Account. # exit 16

While a Run is going, its Profile is Live, and Perch writes nothing into it. A Switch away from the Account you are running is refused as above. A --refresh on that Account shows the cached figure and says why:

$ perch status --refresh
you@example.com: its access token has expired and a client is running against it (pid 4242 in /Users/you/.config/perch/profiles/you-example-com), so it was not Renewed.
Account you@example.com
Organization Acme
Plan pro
Utilization never observed

Reading is untouched. perch switch onto the Account you are running lands normally, and a Run and a Switch do not lock each other out. A Run that was killed rather than closed leaves nothing behind that matters.

Running with arguments, and running something else

Section titled “Running with arguments, and running something else”
$ perch run overflow -- --resume --model opus
Running Claude Code as overflow@example.com (as `overflow`), in this terminal alone.
$ perch run overflow -- npm test
Running `npm` as overflow@example.com (as `overflow`), in this terminal alone.

Everything after -- reaches the program exactly as typed. A first word that is a flag goes to Claude Code. Any other first word is the program to launch, with CLAUDE_CONFIG_DIR pointed at the Account’s Profile.

$ perch run dev --resume
`--resume` could be Perch's flag or the program's, and Perch will not guess which. Everything meant for the program you are running goes after `--`:
perch run dev -- --resume

A program typed without the separator is refused the same way.