Bedrock token expired
Problem
Section titled “Problem”Switching to a bedrock-key profile gives:
Profile '<name>' Bedrock token expired 2h ago. Refresh it: ccswitch refresh <name>Short-term Bedrock API keys have an embedded expiry (typically 12 hours). Once expired, ccswitch blocks switching to prevent using a dead token.
Get a fresh token from your Bedrock API key provider, then:
export AWS_BEARER_TOKEN_BEDROCK=<new-token>ccswitch refresh <name>Or pass it directly:
ccswitch refresh <name> --token <new-token>The profile’s expiry is re-derived from the new token automatically.
This site uses GoatCounterfor page counts — no cookies, no personal data, no tracking across sites.