ccswitch env / ccuse
Synopsis
Section titled “Synopsis”ccswitch env <name>ccswitch env --unsetccuse <name>ccuse --unsetDescription
Section titled “Description”Prints shell export statements that configure the current terminal to use a specific profile. Designed to be wrapped in eval "$(…)" — which is what the ccuse helper does.
Nothing global changes. Different terminals can use different profiles simultaneously.
Options
Section titled “Options”| Option | Description |
|---|---|
--unset |
Print unset statements to clear all managed env vars |
What gets exported
Section titled “What gets exported”| Profile type | Variables set |
|---|---|
| api-key | ANTHROPIC_API_KEY |
| login | CLAUDE_CODE_OAUTH_TOKEN |
| bedrock | CLAUDE_CODE_USE_BEDROCK, AWS_PROFILE, AWS_REGION |
| bedrock-key | CLAUDE_CODE_USE_BEDROCK, AWS_BEARER_TOKEN_BEDROCK, AWS_REGION |
| custom | ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, any model overrides |
If the profile has an isolated config dir, CLAUDE_CONFIG_DIR is also set.
Examples
Section titled “Examples”eval "$(ccswitch env work)" # activate 'work' in this shelleval "$(ccswitch env --unset)" # clear overridesccuse work # same as the eval line aboveccuse --unset # same as the unset line aboveRelated
Section titled “Related”- Shell setup (ccuse) — how to set up
ccuse - ccswitch — global switching
This site uses GoatCounterfor page counts — no cookies, no personal data, no tracking across sites.