Skip to content

Support multiple account switching for Max/Pro subscriptions #42775

Description

@emanuel-syllabus

Problem

Claude Code currently requires /logout + /login (browser-based, interactive) to switch between accounts. Users with both personal and work Max/Pro subscriptions need to go through this flow every time they want to switch — there's no way to automate or speed it up.

Suggested Solution

Some form of multi-account/profile support, e.g.:

  • claude /accounts — list saved accounts and switch between them
  • claude --profile work — launch with a specific profile
  • Per-directory account binding (e.g., via .claude/config or similar)

Context

  • API key auth (ANTHROPIC_API_KEY) works for API-billed accounts but not for Max/Pro subscriptions
  • The browser-based OAuth login flow can't be scripted or automated
  • This is a common need for developers who use Claude Code for both personal and work projects

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions