Skip to main content
This guide walks you through installing the ccp CLI, wiring up the zsh shell integration, installing the VS Code extension, and creating your first profile.

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:
Without this step, ccp switch will print an env script but won’t change the current shell.
Show the active profile in your prompt by adding this to ~/.zshrc:

3. Install the VS Code extension

Download the latest .vsix from the GitHub Releases page, then install it:
Or build it yourself from a clone with 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.
ccp walks you through the Claude Code OAuth browser flow and stores the resulting credentials.json inside the profile’s own CLAUDE_CONFIG_DIR.

5. Switch to the profile

In a shell that has the zsh wrapper sourced, this unsets every known routing variable and applies the new profile in the current shell. 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 Code picks up the profile’s isolated 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.