Common errors
“Unknown profile: ”
Section titled ““Unknown profile: ””The profile doesn’t exist. Check available profiles:
ccswitch list“No ANTHROPIC_API_KEY in settings to snapshot”
Section titled ““No ANTHROPIC_API_KEY in settings to snapshot””Running ccswitch save <name> --type api-key but there’s no API key in your current settings.json. Either add one to settings first, or use ccswitch add for guided setup.
“No AWS_BEARER_TOKEN_BEDROCK in environment to snapshot”
Section titled ““No AWS_BEARER_TOKEN_BEDROCK in environment to snapshot””Running ccswitch save <name> --type bedrock-key but the env var isn’t set. Export it first:
export AWS_BEARER_TOKEN_BEDROCK=<your-token>ccswitch save <name> --type bedrock-key“Active profile ‘’ is an api-key, but settings.json has no apiKeyHelper”
Section titled ““Active profile ‘’ is an api-key, but settings.json has no apiKeyHelper””The settings file is out of sync with the active profile. Re-switch to fix:
ccswitch <name>“API key for ‘’ is invalid or revoked (HTTP 401)”
Section titled ““API key for ‘’ is invalid or revoked (HTTP 401)””The stored API key no longer works. Generate a new one at console.anthropic.com and re-create the profile:
ccswitch remove <name>ccswitch addThis site uses GoatCounterfor page counts — no cookies, no personal data, no tracking across sites.