Note: The following is an English translation of a Chinese forum post. The claims below originate from community reverse-engineering reports; Anthropic had not officially responded as of the writing date.
1. The Incident
On June 30, 2026, a Reddit post went viral (reaching ~1 million views in a short time), claiming that a reverse analysis of Claude Code (v2.1.91 / v2.1.196) uncovered a hidden user-identification mechanism embedded by Anthropic in client-side code.
Technical mechanism (per the Reddit post and follow-up coverage)
1. Reads the OS local timezone
- Detects
Asia/ShanghaiorAsia/Urumqi - Timezone is effectively unchangeable for most users—developers may use VPNs, but their local clock remains Beijing time.
- Required for Chinese developers accessing the Claude API via relay/proxy endpoints
- Claude Code extracts the domain from this URL.
- The list contains 147 domains, including known relays, internal corporate proxies, and competing AI companies
- Named companies include: Meituan, NetEase, Baidu, Trip.com, Xiaohongshu (RED), Alibaba, Ant Group, ByteDance, JD.com, Bilibili, Moonshot AI, MiniMax, StepFun, and others
- The list is not stored in plaintext but obfuscated with base64 encoding plus XOR (key 91); inspecting the package directly shows garbled data.
- Before each request, Claude Code appends a date string to the system prompt
- Normal version:
Today's date is 2026-06-30. - Flagged version:
- The single quote
'(U+0027) is replaced by one of 3 visually identical Unicode characters - The date separator
-is replaced by/ - These changes combine into a 2-3 bit classification marker.
- Anthropic's backend needs no IP geolocation
- It only needs to check which Unicode character was used for the quote and whether the date separator is
-or/ - This determines whether the request originates from a mainland-China timezone.
- Chinese detailed write-up: https://mp.weixin.qq.com/s/yLb4T2UC16ebKHApdBbgWw
- CyberSecurity News (English): https://cybersecuritynews.com/anthropic-claude-hidden-code/
- Technical analysis (English): https://freeai.help/blog/invisible-code-broken-trust-how-anthropic-used-steganography_en
- NetEase coverage: https://www.163.com/dy/article/L0NHBQNS0511D6RL.html
- File system read/write access
- Shell command execution
- Git repository operations
- System environment variable access
- Network request interception
- No official Anthropic response as of July 1. Neither their privacy policy nor Claude Code documentation contains explicit terms about detecting local timezone.
- If OpenAI/Google adopt similar mechanisms, it could become a de facto country-based compliance standard for developer AI tools—a very bad outcome.
- What Chinese users can currently do: change the system timezone, unset
ANTHROPIC_BASE_URL, or subscribe via an overseas entity—but these are compliance workarounds, not technical solutions, and degrade the development experience. - Reverse engineering itself may violate the law/ToS—Anthropic's terms explicitly prohibit reverse engineering; the legal and personal risk to the analysts deserves attention.
- Longer term, this event may drive a revival of open-source coding agents—Cline, Continue, and Aider will be re-evaluated.
2. Reads the ANTHROPIC_BASE_URL environment variable
3. Compares the domain against a built-in list
4. Marks flagged "Chinese users" via steganography in prompts
5. Server-side decoding
The technique is called steganography—hiding information inside an apparently normal carrier.
The effect is dual blocking: hitting either the domain list or the timezone check triggers the marker, and even with a VPN, an unchanged system timezone keeps the flag active.
Reference links
2. Deeper Analysis
The essence of this incident is not "regional blocking" but a collapse of the trust model for tool-type AI.
Regional access restrictions are common. Anthropic not letting Chinese users subscribe to Claude directly surprises no one—US companies doing compliance isolation for the Chinese market is routine.
The problem is the implementation method.
Claude Code is not an ordinary app. It is a developer tool that runs with:
In other words, it is nearly the highest-privilege program on the user's machine. Developers grant this because of an implicit contract: *you are a trustworthy assistant; I let you touch my code, my repos, my environment.* The steganographic mechanism unilaterally tears up that contract.
Points worth unpacking:
1. Steganography is not "data collection"—it is deception. Data collection has compliant patterns (GDPR/CCPA/PIPL notice-consent-minimization principles). Anthropic's own security whitepapers emphasize "transparency" and "trust." But hiding markers client-side, XOR-obfuscating detection targets, and disguising a "Chinese user" classification as format differences in normal requests is not data collection—it is deception.
2. The marker targets identity, not behavior. Unlike anti-abuse systems that detect malicious behavior, this detects what category of person you are. A fully compliant Chinese developer using Claude Code normally gets flagged simply for not changing their timezone or for using a relay.
3. Tool vendor vs. user: power asymmetry. Developers chose Claude Code for its coding capability—a one-sided dependency. In this structure, covert classification leaves users no informed-consent or opt-out path.
4. "China" is only the current target; the mechanism is generalizable. Commenters on the original Reddit thread noted the same mechanism could extend to any country, company, or group. Today China; tomorrow Europe, enterprise customers, or a specific industry. The technique is neutral; its use carries a stance. All non-US users may now reassess: *does my local tool really answer only to me?*
3. Why It Matters
1. First alleged case of a top AI vendor embedding covert identity classification in a developer tool—prior controversies targeted consumers (differential pricing, API rate limits); developer tools occupy a different trust tier. 2. Steganography makes blocking hard to bypass—a VPN used to suffice; now timezone changes and relay switches are not enough, and the Unicode-level differences cannot be found without reverse engineering. 3. Real workflow impact for Chinese Claude Code users—many Chinese AI startups depend heavily on Claude Code for coding; this event is prompting discussion of domestic alternatives and local coding assistants. 4. Potential spillover to OpenAI Codex / Google Gemini CLI—if this "compliance isolation for tool-type AI" is tacitly accepted, other vendors may follow.