Anthropic Blocked a $200 Subscription: Developer Finds 12 Direct Claude Code Requests That Bypass the Gateway
A developer had his $200 Claude Ultra subscription blocked, likely because of roaming and VPN use during a trip. He assumed that ANTHROPIC_BASE_URL (his own server's address in place of Anthropic's) would route all Claude Code traffic through it, but his measurements showed that only model requests went that way. During one session, the client contacted api.anthropic.com directly 12 times, and account login went out from his real address. That is why requests and login should come from a single address.
AI-processed from Habr AI; edited by Hamidun News
Imagine this: you renew your $200 Claude Ultra subscription, and six days later Claude Code doesn't respond to your very first request. There's an email from Anthropic: based on "suspicious signals," the account violated the usage policy, and access has been revoked. That's how the author of a Habr write-up lost his subscription. The appeal took nine days and ended with a boilerplate rejection. So he set out to find where Claude Code actually sends its traffic. It turned out that the ANTHROPIC_BASE_URL variable, which replaces Anthropic's address with your server's (gateway) address, redirects less traffic than people assume. In a session with no extra settings, the client contacted api.anthropic.com directly, bypassing the gateway, 12 times.
Why an account might "jump across the map"
The author admits he cannot prove the cause of the block. Anthropic's email cited nothing beyond "suspicious signals." Only two details stood out from the two days before the ban. He was traveling and working from a laptop, using a phone with a Russian SIM card on roaming. At times, a VPN was enabled over hotel Wi-Fi.
On roaming, mobile internet usually exits through the home operator's network, so to a website the person appears to be in Russia even while sitting in an airport in another country. Claude Code sends requests at a rate of dozens per minute. To Anthropic, this looks like two days of continuous "Russian" traffic from an account that had previously been based in one country. Add a VPN that exits in one country, then another, and the account starts jumping across the map.
The scale is significant. Anthropic's transparency section for January through June 2026 reports 11.4 million blocked accounts, 398 thousand appeals, and 42 thousand reversed blocks. That is roughly 63 thousand blocks per day, so automation makes the decisions. About one in ten appealed blocks is reversed, which means mistakes do happen. The company does not publish how much weight each signal carries.
Where Claude Code actually sends traffic
The typical reasoning goes: I'll set ANTHROPIC_BASE_URL to my own server, and Anthropic will only see that server. Based on the documentation and the measurements, this is not the case. Only model requests go through that variable. Everything else goes directly from your real address:
- api.anthropic.com: domain checks for WebFetch, feature flags, telemetry;
- claude.ai, claude.com, and platform.claude.com: account login and the exchange of the code for an OAuth token;
- downloads.claude.ai: the installer, auto-updates, and the plugin marketplace;
- raw.githubusercontent.com: the changelog fetched at startup.
To verify this, the author wrote a local proxy in Node.js, about thirty lines with no dependencies. It logs every connection request (CONNECT) and passes through only allowed hosts. Claude Code is launched with the HTTPS_PROXY variable set. On version 2.1.332, the results were as follows:
- With no flags beyond the gateway, the session contacted api.anthropic.com 12 times, along with raw.githubusercontent.com and downloads.claude.ai;
- With CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1, only downloads.claude.ai remained;
- With CLAUDE_CODE_DISABLE_OFFICIAL_MARKETPLACE_AUTOINSTALL=1 added and skipWebFetchPreflight set in settings.json, only the gateway sends traffic outward.
There is a cost to this. Disabling telemetry also disables the features that depend on it (for example, Remote Control), and you will have to update the client manually. The flags do not affect account login or OAuth token refresh, which still go out from your address. The measurement was not taken on the very first launch: on its initial start, Claude Code still makes a direct check to api.anthropic.com.
How the author builds the gateway
The principle is simple: one person, one exit address. Model requests and account login go through the same server in the same country, every day. According to the author, the gateway does not hide the user but makes their signals "boring."
To achieve this:
- standard HTTPS with a Let's Encrypt certificate; no root certificates need to be installed;
- the gateway token is verified by its SHA-256 hash, and the token itself is not stored in the database;
- headers that reveal the origin (X-Forwarded-For, X-Real-IP, CF-Connecting-IP, and others) are stripped from requests, and the destination address is hardcoded;
- request and response bodies are streamed, without buffering in memory or parsing JSON;
- after 20 failed login attempts from one address within 10 minutes, the gateway responds with 429.
A helper is provided for logging in: it routes the browser's traffic through the gateway tunnel without decrypting TLS. The client-side code is open on GitHub, but the author does not publish the server code, since it runs a live service and holds the keys.
What to do in practice
If you travel a lot, do not look only at ANTHROPIC_BASE_URL. Run Claude Code through a logging proxy and check which hosts see your real address. Keep the limitations in mind as well: the annual token from claude setup-token travels through the gateway with every request, and the author found no separate way to revoke it, so treat the token as a password. Finally, the measurement explains only part of the picture: nobody besides Anthropic knows the actual cause of the block.
- Nov 28, 2026A GPT-5.4-based guard AI missed 0.2% of an agent's sabotage, rising to 23% under tuned attacks
- Nov 28, 2026Gemini 4 Neon drew a poster in code, and you can edit it like text, without regenerating
- Nov 28, 2026Claude wrote the GitHub manual as instructed, while Codex taught students branches and rebase
- Nov 28, 2026UK Parliament Demands Full METR Report from Anthropic on AI Acceleration of 1.3–3x
Key Questions Answered
Why an account might "jump across the map"?
The author admits he cannot prove the cause of the block. Anthropic's email cited nothing beyond "suspicious signals." Only two details stood out from the two days before the ban. He was traveling and working from a laptop, using a phone with a Russian SIM card on roaming. At times, a VPN was enabled over hotel Wi-Fi. On roaming, mobile internet usually exits through the home operator's network, so to a website the person appears to be in Russia even while sitting in an airport in another country.
Where Claude Code actually sends traffic?
The typical reasoning goes: I'll set ANTHROPIC_BASE_URL to my own server, and Anthropic will only see that server. Based on the documentation and the measurements, this is not the case. Only model requests go through that variable.
How the author builds the gateway?
The principle is simple: one person, one exit address. Model requests and account login go through the same server in the same country, every day. According to the author, the gateway does not hide the user but makes their signals "boring." To achieve this: standard HTTPS with a Let's Encrypt certificate; no root certificates need to be installed; the gateway token is verified by its SHA-256 hash, and the token itself is not stored in the database; headers that reveal the origin…
Free 2-Day Vibecoding & AI Agents Intensive
Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
