Fish plugin to manage multiple Claude CLI accounts.
fisher install MaEscalanteHe/claudenvThe plugin manages Claude configurations in ~/.claude-accounts/:
~/.claude-accounts/
βββ personal/ # Config for personal account
βββ work/ # Config for work account
βββ .current # Tracks active account
Each directory becomes a CLAUDE_CONFIG_DIR with separate authentication and session data.
Each account has its own isolated:
- OAuth session / authentication
- Conversation history
- MCP servers configuration
- Subagents
- Plugins
- Project settings cache
- Todos
| Command | Description |
|---|---|
claudenv |
Interactive account selector (fzf) |
claudenv switch |
Same as above |
claudenv add |
Add a new account |
claudenv list |
List all accounts |
claudenv current |
Print active account name |
claudenv remove |
Remove an account |
claudenv help |
Show help |
claudenv # Creates 'personal' by default
claude # Authenticate
claudenv add work # Add more accounts as neededfunction fish_prompt
if set -q CLAUDE_CONFIG_DIR
echo -n "["(claudenv current)"] "
end
# ...
endMIT