← ClaudeAtlas

claude-dual-account-setuplisted

Use when questions come up about this machine's two Claude Code accounts (the personal `claude` and `pegasuz`), which config they share and which they don't, why settings.json or CLAUDE.md drifted or reverted between the two, why a model or plugin change did not carry over, when the `pegasuz` or `claude` command is missing or "not recognized", when something breaks right after a Claude Code update, when the wrong account seems to be billed or the HUD account chip turns red, when Orca's account switcher or its credential swapping is involved, or when a junction, hardlink, or the CLAUDE_CONFIG_DIR ambient default needs verifying or repairing.
bygama/workstation · ★ 0 · AI & Automation · score 72
Install: claude install-skill bygama/workstation
# Claude Dual Account Setup ## Overview This machine runs two Claude Code accounts off one binary. Isolation comes from `CLAUDE_CONFIG_DIR`, which decides where credentials, sessions and usage live. Everything meant to be shared is shared through filesystem links, not copies — so there is one physical file, not two that need syncing. The identity rule is: **the command decides, and everything else is pegasuz.** A User-scope environment variable pins the machine's ambient default to the pegasuz dir, so the only path to the personal account is typing `claude` in a shell that loaded `$PROFILE`: | How Claude is launched | Config dir | Bills | | --------------------------------- | ----------------------- | -------------- | | `claude` (function) | `~/.claude` | personal | | `pegasuz` (function) | `~/.claude-pegasuz` | pegasuz | | Orca and the agents it spawns | `~/.claude-pegasuz` | pegasuz* | | bare `claude.exe`, any other tool | `~/.claude-pegasuz` | pegasuz | \* or whatever account Orca's own switcher has placed in that dir — see the Orca section. The asymmetry is deliberate: any mistake, unknown launcher, or third-party integration burns the pegasuz plan, never the personal one. The personal account cannot be reached by accident. The ambient default is `CLAUDE_CONFIG_DIR` at **User scope** pointing at `~/.claude-pegasuz`. The `claude` function *clears* the va