Skip to content

MaEscalanteHe/claudenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

claudenv

Fish plugin to manage multiple Claude CLI accounts.

Requirements

Installation

fisher install MaEscalanteHe/claudenv

How it works

The 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.

What's separated per account

Each account has its own isolated:

  • OAuth session / authentication
  • Conversation history
  • MCP servers configuration
  • Subagents
  • Plugins
  • Project settings cache
  • Todos

Commands

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

First time setup

claudenv          # Creates 'personal' by default
claude            # Authenticate
claudenv add work # Add more accounts as needed

Prompt integration

function fish_prompt
    if set -q CLAUDE_CONFIG_DIR
        echo -n "["(claudenv current)"] "
    end
    # ...
end

License

MIT

About

🐟 Fish shell plugin for managing multiple Claude CLI accounts with fzf-powered switching

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors

Languages