Skip to content

claude-account-email widget ignores CLAUDE_CONFIG_DIR when multiple profiles are active #317

Closed

Description

@daren-porter

I set up multiple Claude Code profiles using CLAUDE_CONFIG_DIR (one for work, one for personal) using aliases:

alias cc-work='CLAUDE_CONFIG_DIR=$HOME/.claude-work command claude'
alias cc-personal='CLAUDE_CONFIG_DIR=$HOME/.claude-personal command claude'

Each profile has its own .claude.json with separate auth, and CLAUDE_CONFIG_DIR is confirmed set correctly inside sessions (I asked Claude to run echo $CLAUDE_CONFIG_DIR in each one).

Even so, the claude-account-email widget shows the same account email in both sessions. It seems like the widget is reading ~/.claude.json at the home level rather than $CLAUDE_CONFIG_DIR/.claude.json. I tried removing the base home file, and both sessions no longer show an email account at all. When I restore it, they go back to showing the same email address. I know they're using their respective accounts, because Claude Code reports one as a Pro account and the other as Team.

I'm happy to test a fix or provide more information about my setup if it's useful.

Activity

  1. added a commit that references this issue on Apr 27, 2026
    6f87563
  2. added a commit that references this issue on Oct 20, 2026
    6cf2d84
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions