Moving from claude-acc to Devpit without signing in again
claude-acc (Claude Code Account Switcher) is an open-source, MIT-licensed tool that binds Claude Code accounts to folders. It is good at what it does, and it does several things Devpit does not. If you use it and are happy, keep using it.
If you want to move to Devpit, for example because you also want Git, GitHub or deploy accounts per folder, this post shows how to do it without signing in to any Claude account again, and how to remove claude-acc afterwards without losing a login.
The short answer
Section titled “The short answer”- Your claude-acc accounts are ordinary Claude Code config folders. Leave them where they are.
- Import them into Devpit, which only records where they are.
- Verify that every folder still picks the right account.
- Then remove claude-acc’s PowerShell profile line and its program, in that order.
- Never delete the account folders while Devpit uses them.
How claude-acc works
Section titled “How claude-acc works”From its README: “Bind different Claude Code accounts to different directories. On cd, the correct account is activated automatically.” It stores everything under %USERPROFILE%\.claude-switch:
.claude-switch\ accounts\ work\ one Claude Code config folder per account bin\ claude-acc.exe config default=<account> (empty means ~/.claude) links one folder=account line per bindingWhen you change folder, it “looks up the current directory in ~/.claude-switch/links”, walks up the tree if needed, falls back to the default, and “sets CLAUDE_CONFIG_DIR”. On Windows, its PowerShell integration does this through PowerShell’s LocationChangedAction, and sets $env:CLAUDE_CONFIG_DIR in your session. A more specific link wins over a parent one, and the name default means your normal ~/.claude.
claude-acc install adds two lines to your PowerShell profile:
# Claude Code Account SwitcherInvoke-Expression ((& 'C:\Users\you\.claude-switch\bin\claude-acc.exe' init pwsh) -join "`n")What claude-acc does that Devpit does not
Section titled “What claude-acc does that Devpit does not”To be fair, here is what you give up. From claude-acc’s own command list:
usage: 5-hour and 7-day rate-limit usage for every account.sessionsandsession copy: move a conversation to another account so--resumecan find it.doctorandlock: check which identity each folder is really signed in as, and pin it.desktop: separate Claude Desktop profiles side by side.statusline: show the active account in Claude Code’s status line.- It runs on macOS, Linux and Windows. Devpit is Windows only.
If any of these matter to you, stay with claude-acc.
What changes with Devpit
Section titled “What changes with Devpit”- Shims instead of a profile hook. claude-acc’s switch runs inside an interactive PowerShell 7 session.
LocationChangedActiondoes not exist in Windows PowerShell 5.1 (we checked), and a profile hook never runs forcmd.exe, VS Code tasks or AI agents. claude-acc’s own docs say its IDE wrapper is “Not on Windows yet”. Devpit puts a smallclaude.exefirst on your user PATH, which picks the account for each process, wherever it was started. See Shims or shell hooks?. - Other tools. The same folder rules cover Git, GitHub, Vercel, Firebase, Supabase and Cloudflare (Convex is shown, not switched).
- Sharing instead of copying. claude-acc’s
clone-settingscopies files once (“a one-shot seed, not a sync”). Devpit links skills, agents and commands to your default~/.claudeso they stay in step. - Preview and undo on every change, with the answer already set to No.
Step 1: import, without moving anything
Section titled “Step 1: import, without moving anything”Devpit reads claude-acc’s files directly: config, links and the accounts folder. The accounts stay where they are. Devpit’s rule file just points at them, so their logins keep working and nobody signs in again. claude-acc’s default becomes Devpit’s default, your normal %USERPROFILE%\.claude.
You can start it two ways:
- Open Devpit’s Accounts page. On first open it lists accounts it found on this PC and asks Use them in Devpit or Ignore.
- Or from a terminal:
devpit claude import --from claude-acc.
Each folder binding from links becomes a Devpit folder rule for Claude Code. As always, you see a preview first.
See Claude Code accounts for the screens.
Step 2: verify before you remove anything
Section titled “Step 2: verify before you remove anything”Open a new terminal in a few folders that had claude-acc links, and check which folder Claude Code uses:
claude auth statusconfigDirectory should be the account folder you expect, and email the right account. In Devpit, press v on the Accounts page, or run devpit accounts verify, which checks every rule in one go.
One catch: while claude-acc’s profile line is still active, it sets CLAUDE_CONFIG_DIR in your session on every cd. That makes it hard to tell which tool picked the account. Do this check after Step 3 too.
Step 3: remove the profile line
Section titled “Step 3: remove the profile line”- Open your profile:
notepad $PROFILE. claude-acc finds the PowerShell 7 profile first, so if you use both shells, checkpowershell.exe’s profile as well. - Delete the two lines shown above: the
# Claude Code Account Switchercomment and theInvoke-Expression ... init pwsh ...line. - Save, and open a new terminal. An open window keeps the old hook and the old
CLAUDE_CONFIG_DIRuntil you close it.
To confirm the variable is gone in the new window:
Test-Path Env:CLAUDE_CONFIG_DIRFalse means nothing in your session sets it any more, and Devpit’s shim decides per process.
Step 4: remove the program, keep the accounts
Section titled “Step 4: remove the program, keep the accounts”claude-acc has no uninstall command. Its docs describe removing the shell line and, optionally, the files in bin. So:
- Delete
%USERPROFILE%\.claude-switch\bin. That is only the program. - Keep
%USERPROFILE%\.claude-switch\accountsand everything in it. Devpit uses these folders in place. Each one holds a Claude Code login. - The
configandlinksfiles are no longer read by anything once claude-acc is gone. Keeping them costs nothing and lets you go back.
If you later want to retire an account, remove it in Devpit. Devpit lists the rules that still use it, suggests the tool’s own sign-out first, and asks for a typed word before it removes the account from Devpit. The account folder, and the sign-in in it, stays where it is.
Going back
Section titled “Going back”Because nothing moved, going back is the same steps in reverse: remove the Devpit rules (or undo them), reinstall claude-acc with claude-acc install, and it finds its config, links and accounts where it left them.
Checklist
Section titled “Checklist”- Import with Devpit; nothing is moved or copied.
- Verify with
claude auth statusand Devpit’s verify. - Remove claude-acc’s profile line, then open a new terminal.
- Check that
CLAUDE_CONFIG_DIRis no longer set in your session. - Delete only
.claude-switch\bin. - Never delete
.claude-switch\accounts, and neverclaude-acc removean account Devpit uses.
Sources
Section titled “Sources”- claude-acc README
- claude-acc docs: Installation and platforms
- claude-acc docs: Accounts and configuration (
clone-settings,remove) - claude-acc docs: IDE integration
- claude-acc source: PowerShell integration
- Claude Code: Environment variables (
CLAUDE_CONFIG_DIR) - Claude Code: CLI reference (
claude auth status) - Microsoft: about_Profiles
Common questions
Do I have to sign in to my Claude accounts again?
No. Each claude-acc account is a normal Claude Code config folder with its own login inside. Devpit points at those folders where they are, so the logins keep working.
Can I delete the .claude-switch folder after moving?
Not the accounts folder inside it. Devpit uses those account folders in place, and they hold your logins. You can remove claude-acc's program and its PowerShell profile line, but keep .claude-switch\accounts.
Should I run claude-acc and Devpit at the same time?
It is better not to. Both decide which account Claude Code uses in a folder. If both are active, it is hard to tell which one made the choice. Pick one, and remove the other's hook or rules.
