Claude Code secretly collected user data in China
Since version 2.1.91, Claude Code has been tracking Chinese users based on their timezone and proxy settings. It’s an “experiment”, according to Anthropic, and they plan to revert it.
From version 2.1.91 (released April 2nd, 2026), Claude Code quietly checked whether a user was located in China by looking at their timezone (Asia/Shanghai, Asia/Urumqi) and their proxy settings (proxies are servers that relay your internet requests) for Chinese domains or IP addresses associated with Chinese AI labs. It went undetected for nearly three months before Redditor LegitMichel777 noticed that there was no mention of it in the release notes.
It’s using steganography (hiding messages within other messages) to send this information. The messages are hidden in various date representations and apostrophe usages within the system prompt (hidden code that sets up the behavior of your AI assistant). And it’s also XOR encrypted with key 91, meaning that a simple keyword search of the code would never turn up anything.
According to Anthropic employee Tarik Shihipar, “this was an experiment we started in March to stop unauthorized resellers abusing our service and to protect against model distillation.” Model distillation refers to the process whereby another company takes a high-performing model’s results and trains their own model on those results. Although Anthropic does not support China due to national security concerns, many Chinese developers still use Claude Code.
Anthropic says it has implemented stronger protections and plans to completely eliminate this feature in their next update. This has led to many discussions about transparency in AI applications in 2026. These coding assistants can access everything about your codebase, environment variables, and API keys, which you expect to be kept confidential.
But the frightening thing here is that any AI coding assistant can potentially do something similar. There are no standards or best practices around verifying what these applications do. We only learn about them once they’re discovered in the code or release notes.
Source: the-decoder.com
Free course
Stop reading about AI — start building with it
The free Claude Code course: your first site, tool or game — no coding. No upsells, no cross-sells — nothing to buy here.
Start free →▌ Related guides

Author
Evgenii Arsentev
PhD · Founder & CEO, Dad4Kids
Articles · Latest articles