Skip to content

v0.26.22

Choose a tag to compare

@ykdojo ykdojo released this 03 Jul 23:28
332912a

Tip 45: switch between multiple Claude accounts

New tip on switching between multiple Claude accounts (for example, personal vs work) quickly:

  • Mint a long-lived token per account with claude setup-token
  • Store each token in the macOS Keychain instead of plaintext dotfiles
  • Add clw/clp shell functions that pass the token via CLAUDE_CODE_OAUTH_TOKEN

The env var works on Linux and Windows too (their logins live in ~/.claude/.credentials.json instead); the Keychain setup shown is a Mac example to adapt to your own system.

(#35)