r/LocalLLaMA
· Communities
Claude Code and China: The mechanism is activated when the user sets the ANTHROPIC_BASE_URL environment variable (used for local models)
The list of suspicious hostnames is not stored in plaintext within the code; instead, it is Base64-encoded and then encrypted using a simple XOR operation with a key of 91. Once decoded, it reveals domains belonging to Chinese companies, keywords related to artificial intelligence laboratories, and various gateways or