Claude Code config

ccswap

CLI for switching between Claude Code configuration profiles.

18 stars 2 forksConfig & memory Source

Install

From source
git clone https://github.com/juanmackie/ccswap.git

From the README

ccswap
A lightweight, cross-platform command-line tool for managing multiple Claude Code configuration profiles. It allows users to easily switch between different sets of configurations, such as API keys, endpoints, and model mappings, using simple commands like ccswap use . The tool supports both API key and OAuth2 authentication methods.

Version: 2.0.0 (with OAuth2 Device Code Flow support)

Built with ❤️ by JUAN MACKIE

Windows Installation

Method 1: System32 (Easiest)
1. Download ccswap.bat
2. Copy to C:\Windows\System32\ccswap.bat
3. Open new Command Prompt and run: ccswap

Method 2: Custom Tools Directory
1. Create C:\tools directory
2. Copy ccswap.bat to C:\tools\ccswap.bat
3. Add to PATH:
   - Press Win + R, type sysdm.cpl
   - Go to "Advanced" → "Environment Variables"
   - Edit "Path" → add C:\tools
4. Restart Command Prompt and run: ccswap

Unix/Linux/macOS Installation

Method 1: System-wide (Recommended)

Method 2: User Local

Verification

After installation, verify it works:

You should see the usage information if installed correctly.

First Use

1. Run Claude Code at least once to create settings.json
2. Save your first profile: ccswap save default
3. Create additional profiles as needed

Example profile for GLM 4.6

Example profile for Kimi K2-thinking

Example profile for MiniMax M2

File Structure After Installation

Windows
%USERPROFILE%\.claude\
├── settings.json          # Active Claude Code config
├── profiles\              # Profile storage
│   ├── default.json
│   ├── work.json
│   └── personal.json
└── _current.txt          # Active profile tracker

Unix/Linux/macOS
$HOME/.claude/
├── settings.json          # Active Claude Code config
├── profiles/              # Profile storage
│   ├── default.json
│   ├── work.json
│   └──…
Read the full README on GitHub

Details

Language
Shell
License
MIT
Last updated
17 January 2026

FAQ

What is ccswap?

CLI for switching between Claude Code configuration profiles. It is a config for Claude Code, from juanmackie/ccswap on GitHub.

How do I install ccswap?

Clone juanmackie/ccswap from GitHub and follow the setup steps in its README.

Is ccswap popular?

juanmackie/ccswap has 18 GitHub stars and 2 forks. It was last updated on 17 January 2026.

More config & memory

Browse the most popular Claude Code mods, all config & memory, or the skills and MCP server directories.