Connecting to api.anthropic.com eventhough configured for bedrock
For the following configuration I see the claude is still accessing api.anthropic.com
export CLAUDE_CODE_USE_BEDROCK=1
export ANTHROPIC_MODEL='us.anthropic.claude-3-7-sonnet-20250219-v1:0'
export DISABLE_PROMPT_CACHING=1
export AWS_ACCESS_KEY_ID='ID'
export AWS_SECRET_ACCESS_KEY='KEY'
export AWS_REGION='us-west-2'
export AWS_PROFILE=
export https_proxy="proxy"
> claude
I see the following:
â â» Welcome to Claude Code research preview! â
â°âââââââââââââââââââââââââââââââââââââââââââââ¯
Unable to connect to Anthropic services
Failed to connect to api.anthropic.com: fetch failed
Please check your internet connection and network settings.
Note: Claude Code might not be available in your country. Check supported
countries at https://anthropic.com/supported-countries
Note I am behind a firewall and have access to AWS bedrock but not to api.anthropic
This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗