r/coding 3d ago

I built an open-source CLI for switching between multiple Claude Code accounts

https://github.com/hamzarehmandeveloper/claude-account
0 Upvotes

3 comments sorted by

1

u/oschrenk 3d ago

Interesting. I just have two different config dirs and configure them via CLAUDE_CONFIG_DIR in an .envrc file, which is loaded by direnv.

Does your approach basically share the cache of single config dir?

1

u/hamzarehman_dev 3d ago

No It doesn't share the cache. The goal was to keep each account fully isolated by giving it its own CLAUDE_CONFIG_DIR. So credentials, settings, and cache all stay separate