environment-variable

Tag

Cards List
#environment-variable

Claude Code and China: The mechanism is activated when the user sets the ANTHROPIC_BASE_URL environment variable (used for local models)

Reddit r/LocalLLaMA ↗ · 2026-07-03

Claude Code has a mechanism for users in China that activates when the ANTHROPIC_BASE_URL environment variable is set, allowing the use of local models.

0 favorites 0 likes
#environment-variable

@leifuchen: This guy's method is a bit overpowered. According to the published code logic, as long as the environment variable ANTHROPIC_BASE_URL is empty (i.e., no intermediary is used), the entire detection logic will not be activated.

X AI KOLs Timeline ↗ · 2026-07-02 Cached

The user points out that leaving the ANTHROPIC_BASE_URL environment variable empty can bypass the detection logic, which is a code-level vulnerability or design flaw.

0 favorites 0 likes
← Back to home

Submit Feedback