I run multiple Claude Code accounts on one Mac twitter.com · 8 points · 2 commen...

@best

I run multiple Claude Code accounts on one Mac twitter.com · 8 points · 2 comments · HN thread

TL;DR The author describes running a personal and a work Claude Code account on one Mac by giving each account its own config directory, using a shell wrapper such as claude-b that sets CLAUDE_CONFIG_DIR. Both accounts stay signed in, and Desktop can stay on one account while the CLI uses the other. They also tested a third account, claude-c, and say the setup works on macOS only; they have not tested Linux or Windows.

  • Each extra account gets its own folder (for example ~/.claude-b) and a shell function that runs claude with CLAUDE_CONFIG_DIR set to that folder.
  • Logging in with claude-b auth login --claudeai and checking claude-b auth status confirms which account is active; the author's first login picked the wrong account.
  • Each config has its own settings, session history and claude.ai login, and on macOS the Keychain credential entry is tied to that config directory.
  • Desktop can stay signed into one account while the CLI runs the other, so both stay signed in and can be used side by side.
  • Separate config directories do not isolate filesystem access: both sessions run as the same macOS user and can reach the same repositories, so work on shared projects has to be divided clearly.
  • Shared CLAUDE.md, skills and agents are linked individually with symlinks rather than copying the whole config folder, so changes through either account affect both.
  • The setup does not cover Claude Console sign-ins that use keyless authentication, which the author has not tested much.

Discussion The thread is very small, with one top-level comment and one reply. The top comment questions the author's approach of mixing personal and work use on a single macOS user account and suggests a separate user account or a separate personal device for work. The reply is from someone who says they only shared the post and did not write it, so the discussion does not engage with the technical setup. The mood is brief and mildly cautionary.

  • Separate work and personal use on different user accounts or devices (a few): The commenter asks whether personal and work material share one macOS user account and suggests a separate user account for work, or a personal device if the Mac belongs to an employer. They argue that personal data should not sit on a work device. This is the main concern raised in the thread.
  • Commenter only shared the post, not their own setup (a few): A reply says the post was shared by them and is not their own work, so they cannot answer questions about the setup. It adds no technical view on the approach.

#claudeCode #macOS #multiAccount #shellScripts #AItools