Skip to content

cha133/ccswi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccswi

Lightweight CLI to switch Claude Code ~/.claude/settings.json profiles.

Install

bun add -g ccswi

Usage

# Save current settings.json as a profile
ccswi save [name]

# Add a new profile interactively
ccswi add

# List all profiles
ccswi ls

# Switch to a profile
ccswi use <name|index>

# Show profile details
ccswi show [name|index]

# Edit a profile
ccswi edit <name|index>

# Rename a profile
ccswi rename <old> <new>

# Delete a profile
ccswi rm <name|index>

# Modify common config options
ccswi set disable-updater
ccswi set use-pwsh
ccswi set no-flicker
ccswi set skip-ide-install
ccswi set no-ide-connect

Profiles

Profiles are stored in ~/.ccswi/profiles.toml. Each profile contains:

  • vendor — Provider preset name (optional)
  • endpointANTHROPIC_BASE_URL
  • tokenANTHROPIC_AUTH_TOKEN
  • opus / sonnet / haiku — Model names for each tier
  • opus_1m / sonnet_1m — Whether the model supports 1M context

Acknowledgements

The bundled provider preset list (src/providers/presets.ts) is adapted from cc-switch by Jason Young, licensed under MIT. See LICENSE for full third-party notices.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors