ccswitch add
Synopsis
Section titled “Synopsis”ccswitch addDescription
Section titled “Description”Interactive wizard to create a new profile. Walks you through:
- Profile name
- Auth type selection (login, API key, Bedrock, Bedrock API key, custom endpoint)
- Credential input (varies by type)
- Optional config isolation
For login profiles, launches claude auth login and captures the credential. Optionally captures an OAuth token for per-shell use.
For bedrock-key profiles, automatically derives expiry from short-term tokens.
For custom profiles, prompts for the endpoint’s base URL, a bearer token, and optional KEY=value model overrides. It also doubles as the way to rotate a custom endpoint token — re-run with --force and the same profile name.
Examples
Section titled “Examples”ccswitch add# → prompts for name, type, credentials, isolationRelated
Section titled “Related”- ccswitch save — snapshot current state instead of interactive setup
- Auth Types — understand the different auth types
This site uses GoatCounterfor page counts — no cookies, no personal data, no tracking across sites.