[BUG] Claude CLI on WSL in China fails with ‘unsupported country/region’ error

Resolved 💬 8 comments Opened Jun 27, 2025 by Vieufoux Closed Dec 10, 2025

Environment

  • Platform (select one):
  • [ ] Anthropic API
  • [x] AWS Bedrock
  • [ ] Google Vertex AI
  • [ ] Other: <!-- specify -->
  • Claude CLI version: 1.0.35
  • Operating System: Windows WSL(Ubuntu 22.04)
  • AWS Region tested: cn-northwest-1 (Ningxia), ap-northeast-2 (Seoul)

Bug Description

When I invoke claude from my WSL Ubuntu in China (using Bedrock), I immediately get:

API Error: 400 Access to Anthropic models is not allowed from unsupported countries, regions, or territories. 
Please refer to https://www.anthropic.com/supported-countries for more information.

However, if I launch an EC2 instance in ap-northeast-2 and run the exact same steps there, Claude works fine. Even on an EC2 in cn-northwest-1 it fails with the same unsupported‐region error. My understanding is that Bedrock’s Anthropic models should be reachable from China regions (via the public AWS endpoints).

Steps to reproduce

  1. In WSL Ubuntu 22.04 (or EC2 in cn-northwest-1):

a. Install Node/NPM & AWS CLI
b. aws configure (with valid credentials)
c. export CLAUDE_CODE_USE_BEDROCK=1
d. export AWS_REGION=cn-northwest-1
e. run claude, then type “Hello”

  1. Observe the 400 “unsupported country/region” error
  2. Repeat steps on an EC2 in ap-northeast-2 → no error, Claude responds normally.

Expected behavior
I should be able to call Claude via Bedrock in any AWS region—even cn-northwest-1—without hitting an “unsupported region” error.

Questions / Additional info
• Do I need to explicitly configure a proxy or custom endpoint for China regions?
• Is there a Bedrock-CLI setting in @anthropic/claude or the AWS SDK that I’m missing?
• Could this be a networking restriction from my local environment (China)…or something baked into the CLI?

View original on GitHub ↗

This issue has 8 comments on GitHub. Read the full discussion on GitHub ↗