Answer: To stay signed in to multiple accounts at once, give each account its own configuration directory and set the CLAUDE_CONFIG_DIR environment variable to the directory for the account you want to use when you start claude. For example, add an alias like claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude' so claude-work uses your work account while claude keeps your personal one. Status: Confirmed Entry: tool/claude-code/account-and-plans/login-multiple-accounts Revision: 1 Digest: sha256:30c822b4a72c2723 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:03:16Z Last changed: 2026-11-13T03:03:16Z Last verified: 2026-11-20T12:18:06Z Next check: 2026-11-21T12:18:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Environment variable | CLAUDE_CONFIG_DIR | [1] | 2026-11-20 Example alias | alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude' | [1] | 2026-11-20 Per-directory contents | Each directory has its own settings, session history, and claude.ai login or API key. | [1] | 2026-11-20 First-run behavior | Claude Code walks you through login and setup for the new directory | [1] | 2026-11-20 Console sign-in limitation | Separate directories don't keep two Claude Console sign-ins [without an API key](#sign-in-without-an-api-key) apart | [1] | 2026-11-20 Sources: [1] Anthropic. "Authentication". https://code.claude.com/docs/en/authentication.md Role: primary. Accessed: 2026-11-20T12:18:06Z Quote: "set the [`CLAUDE_CONFIG_DIR`](https://code.claude.com/docs/en/env-vars#variables) environment variable to the directory for the account you want to use" (Supports: Environment variable) Quote: "alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude'" (Supports: Example alias) Quote: "Each directory has its own settings, session history, and claude.ai login or API key." (Supports: Per-directory contents) Quote: "After you open a new terminal and run `claude-work` for the first time, Claude Code walks you through login and setup for the new directory." (Supports: First-run behavior) Quote: "Separate directories don't keep two Claude Console sign-ins [without an API key](#sign-in-without-an-api-key) apart, because Claude Code stores that kind of sign-in outside the configuration directory." (Supports: Console sign-in limitation) Published: 2026-11-20T02:54:51Z Snapshot SHA-256: 60939182bd968182fbc6c1671208055560ae39c6708444fd858489c152b061f1 (captured 2026-11-20T12:18:07Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:18:06Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:18:06Z Last attempt: 2026-11-20T12:18:06Z Notes and limitations: Extracted automatically from a single official source (section "Log in with multiple accounts"). Related: https://latestn.com/tool/claude-code/account-and-plans/plans-including-claude-tag Which Claude plans include Claude Tag? https://latestn.com/tool/claude-code/account-and-plans/self-hosted-plan-availability Which Claude Code plans support self-hosted environments? https://latestn.com/tool/claude-code/account-and-plans/slack-prerequisites What are the prerequisites for using Claude Code in Slack? https://latestn.com/tool/claude-code/account-and-plans/gateway-subscriptions How do Claude Code gateways interact with claude.ai subscriptions? https://latestn.com/tool/claude-code/account-and-plans/generate-long-lived-token How do I generate a long-lived token for Claude Code? https://latestn.com/tool/claude-code/account-and-plans/ios-simulator-plan-availability Which Claude Code plans include the iOS Simulator pane in Desktop? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:03:16Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/account-and-plans/login-multiple-accounts/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/account-and-plans/login-multiple-accounts POST: https://latestn.com/dispute/tool/claude-code/account-and-plans/login-multiple-accounts with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/account-and-plans/login-multiple-accounts?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I log in to Claude Code with multiple accounts? Revision 1, last verified 2026-11-20T12:18:06Z. https://latestn.com/tool/claude-code/account-and-plans/login-multiple-accounts (accessed 2026-11-21T10:06:07Z). @misc{LatestN_tool_claude_code_account_and_plans_login_multiple_accounts_r1, title = {How do I log in to Claude Code with multiple accounts?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/account-and-plans/login-multiple-accounts}}, note = {Revision 1; digest sha256:30c822b4a72c2723; last verified 2026-11-20T12:18:06Z; accessed 2026-11-21T10:06:07Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/account-and-plans/login-multiple-accounts