Add account profiles plugin - #80326
Open
Osalumense wants to merge 1 commit into
Open
Conversation
Osalumense
marked this pull request as ready for review
July 22, 2026 21:25
This was referenced Jul 22, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds an experimental
account-profilesplugin that manages isolatedCLAUDE_CONFIG_DIRlaunch environments for people using personal, work, or client Claude accounts on one computer.The plugin provides commands to create, list, inspect, launch, assign, diagnose, and safely remove named profiles. It never reads, copies, exports, or displays OAuth credentials; authentication remains entirely within Claude Code's existing
/loginflow.Related to #20131. This is an interim CLI workflow, not native in-process or Claude Desktop GUI account switching.
User impact
Users can authenticate separate profiles once, launch independent Claude Code processes, and keep those processes tied to different accounts without repeatedly logging out and back in. A project-local assignment can warn when a repository is opened with the wrong profile.
Because plugins cannot mutate the parent process environment, switching requires launching a new Claude Code process.
/statusremains authoritative for the authenticated and billed identity.Security
CLAUDE_CONFIG_DIRisolation limitations.Validation
node --test plugins/account-profiles/tests/profile-manager.test.mjs— 8 tests pass.claude plugin validate plugins/account-profiles— passes.claude auth statusprocesses returned the correct identity for each profile without another login.git diff --checkpasses.