Prerequisites
- macOS (secrets are stored in the macOS Keychain)
- zsh as your shell
- Node.js 18+ and npm
- Claude Code CLI (
claude) on your PATH — required for subscription login flows - Optional: VS Code for the extension
1. Install the CLI
ccp is distributed as source. Clone the repository, build the core package, and link the CLI onto your PATH:2. Source the zsh wrapper
ccp switch needs to mutate your current shell’s environment, and a child process can’t do that on its own — same reason nvm and pyenv ship shell functions. Source the wrapper from your ~/.zshrc:
ccp switch will print an env script but won’t change the current shell.
3. Install the VS Code extension
Download the latest.vsix from the GitHub Releases page, then install it:
npm run package:ext.
The extension is not published to the VS Code Marketplace yet — that’s on the roadmap.
4. Create your first profile
Pick the auth type that matches your Claude Code setup. See Authentication for the full matrix.- Subscription
- API key
- Gateway
- Bedrock / Vertex / Foundry
credentials.json inside the profile’s own CLAUDE_CONFIG_DIR.5. Switch to the profile
CCP_ACTIVE_PROFILE is exported so you can display it in your prompt.
Verify the switch:
6. Launch Claude Code
With the profile active in your shell, just run:CLAUDE_CONFIG_DIR (default ~/.claude-<name>) along with the right auth variables.
What’s next
Profiles
How profiles are stored and isolated on disk.
Authentication
Every supported auth type and its routing variables.
CLI reference
Every
ccp command.VS Code extension
Command palette entries, status bar, and workspace pinning.