claude-code-toggle
v1.0.4
Published
A tool for switching between Claude Code settings configurations
Maintainers
Readme
claude-code-toggle
A tool for switching between Claude Code settings configurations. Quickly switch between different model providers like GLM, Minimax, or any custom setup.
Install
npm install -g claude-code-toggleUsage
claude-code-toggleOr run directly without installing:
npx claude-code-toggle # npm
pnpx claude-code-toggle # pnpm
bunx claude-code-toggle # bunAlias
Add to your .bashrc or .zshrc:
alias cct="npx claude-code-toggle"How it works
The tool looks for settings files in ~/.claude/:
settings.json- shown as "default"settings.{name}.json- shown as "{name}"
When you select a configuration, it launches Claude with that settings file:
claude --settings ~/.claude/settings.{name}.jsonActions
- Select a config - launches Claude with that configuration
- Create new - creates a new
settings.{name}.jsonfile - Edit - opens a config in your editor (nano/vim/code/cursor)
- Delete - removes a config (default cannot be deleted)
