claude-code - 💡(How to fix) Fix Feature request: named profiles for multi-identity workflows (work + personal) [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#52355Fetched 2026-04-24 06:09:22
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

Code Example

claude --profile personal
claude --profile work
RAW_BUFFERClick to expand / collapse

Problem

Users who straddle work and personal accounts on one machine have no way to scope Claude Code actions to a specific identity. Everything — gh auth, MCP tokens, git config, settings — is globally shared across the session.

Concrete example: I needed to file a GitHub issue from my personal account (sreedeepnarayan) but my session is authenticated as my work account (sreedeepnarayan-atari). There's no way to do this without switching global gh auth, which disrupts all other work in the session.

Proposed solution

Named profiles, e.g.:

claude --profile personal
claude --profile work

Each profile would scope:

  • GitHub auth (gh identity)
  • MCP server tokens (separate OAuth sessions per profile)
  • Git user config (name/email)
  • Settings overrides (different CLAUDE.md, permissions, hooks)

Alternatives considered

  • gh auth switch per command — partial fix for GitHub only, doesn't cover MCP tokens or git identity
  • Separate macOS user accounts — too heavy, breaks workflow continuity
  • Cross-session clipboard/handoff — lighter version where one Claude session can export a task (issue body, PR description, etc.) for another session to pick up under a different identity

Use cases

  • Filing personal GitHub issues while working in a corporate repo
  • Keeping work Slack MCP tokens separate from personal workspace tokens
  • Contributing to open-source repos with a personal git identity mid-workday
  • Any dual-identity developer workflow

extent analysis

TL;DR

Implementing named profiles for Claude Code, such as claude --profile personal and claude --profile work, could help scope actions to a specific identity.

Guidance

  • Consider adding a --profile flag to the Claude Code command to allow users to switch between different profiles, each with its own GitHub auth, MCP tokens, git config, and settings.
  • Evaluate the proposed solution of using named profiles to determine if it meets the requirements for dual-identity developer workflows.
  • Investigate how to implement separate OAuth sessions per profile for MCP server tokens and git user config overrides.
  • Assess the feasibility of settings overrides, such as different CLAUDE.md files, permissions, and hooks, for each profile.

Example

claude --profile personal --gh-auth sreedeepnarayan --mcp-token personal-token --git-config personal-config
claude --profile work --gh-auth sreedeepnarayan-atari --mcp-token work-token --git-config work-config

Notes

The implementation details of named profiles and their integration with existing Claude Code functionality are not specified in the issue, so further investigation is needed to determine the best approach.

Recommendation

Apply a workaround by using separate commands or scripts for personal and work accounts until a named profile feature is implemented, as it allows for some separation of identities without disrupting the entire session.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING