Repository navigation
Folder accounts: a project folder always uses one account - #3
Merged
Merged
Conversation
Harshul1484
force-pushed
the
feature/per-project-accounts
branch
from
November 27, 2026 10:02
c2163b1 to
237f378
Compare
Harshul1484
force-pushed
the
feature/per-project-accounts
branch
2 times, most recently
from
December 1, 2026 11:24
75c59f9 to
cc81b33
Compare
… for VS Code Settings → Folder accounts: add a folder path (or Choose…) and pick its account; change it with the select, remove with ×. Nothing is bound by default. In a bound folder, VS Code's Claude uses that account; everywhere else, the active one. The account stays usable everywhere else too, including as the active login: then the folder needs no override (one live copy of the login, never two), and every switch rewrites the launcher. A Set up VS Code side panel (opens the first time; the ? icon reopens it) walks through the four manual steps one at a time, with real VS Code screenshots as short before/after clips. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Harshul1484
force-pushed
the
feature/per-project-accounts
branch
from
December 1, 2026 13:01
7990889 to
cc2188d
Compare
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
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.
What
Give a project folder its own account: in that folder, Claude Code for VS Code uses the account you picked; everywhere else it uses the active account. The picked account stays usable everywhere else too, including as the active account.
claudeCode.claudeProcessWrapperis in the same pane, with a Copy button.assets/guide/, taken in a throwaway profile so nothing personal is in them). It opens the first time; the ? icon reopens it.How
VS Code can't set a per-folder login for the extension, so the extension starts Claude through a launcher that sets
CLAUDE_CONFIG_DIRto the bound account's profile for the folder Claude starts in (deepest match wins): a generated shell script on macOS/Linux, and Switcher.exe itself on Windows (about 0.5 s extra per session start).Safety
configDirForand the launcher skip it; every switch rewrites the launcher). Otherwise the folder runs it from its profile and Switcher never refreshes it.AGENTS.md.~/.claudesetup (settings, CLAUDE.md, agents, commands, skills, plugins, hooks, session history) is linked into the profile from an explicit list; login,policy-limits*andremote-settings*never are.Not covered
claudein a terminal keeps using the active account. User-scope MCP servers aren't shared into folder accounts; project.mcp.jsonworks.Checked
npm test: 21 pass (plus a Linux-only launcher test that runs in CI). UI checked in light and dark in the app on fake accounts; the setup guide's screenshots are Windows ones.🤖 Generated with Claude Code