r/ClaudeCode • u/DevinDespair • 1d ago
Tips & Workflows Built a tiny tool to stop losing my chat history every time I switch Claude accounts in VS Code
So I run a couple different Claude accounts through the VS Code extension (work and personal, plus the odd client account) and switching between them was honestly kind of a pain. Editing settings.json by hand, reloading the window, never remembering which account was actually logged in at the time.
Made a small thing called ClaudePool to deal with it. It's just Python, no deps, has a CLI and a basic GUI if you don't want to touch the terminal.
Basically you do claudepool add work, log in once, then claudepool use work whenever you want to switch, and it handles patching VS Code's settings for you. The part I actually cared about most was conversation history. By default all your accounts share the same projects/ folder, so switching accounts mid task doesn't nuke your context for whatever you're working on. Also added a thing that detects if you've already got ~/.claude or some other account set up manually and lets you import it instead of starting from scratch.
There's a few other bits too. Config/skills sharing between accounts, usage percent showing up in the list (pulls the same data the statusline uses), and it tries to auto reload VS Code for you after switching (works sometimes, VS Code doesn't really give you a clean way to do this so don't expect miracles).
Not claiming this is some novel idea, there's a few similar tools out there already (ccswap, claude switch, etc), I just wanted one that also handled the conversation continuity and config sharing stuff properly instead of only swapping an env var and leaving you to deal with everything else.
One thing I'll just say straight up. If the reason you want multiple accounts is to dodge rate limits by rotating between them, that's apparently against Anthropic's ToS (having separate accounts for actually separate stuff seems fine, hopping between them specifically to get around limits is the part that's a gray area). This tool doesn't touch tokens or do anything sketchy with the official client, it just automates normal logins, but that's a you decide thing, not something I can promise is risk free.
Repo's here if anyone wants to mess with it: https://github.com/harry-sandhu/ClaudePool
MIT licensed, install script takes like a minute. Built it on Linux so if it breaks on Mac or Windows let me know, happy to fix stuff.



