Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →
ReleaseAPI / Product · ActionableHabr AI→ original

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
Anthropic Blocked a $200 Subscription: Developer Finds 12 Direct Claude Code Requests That Bypass the Gateway
Source: Habr AI. Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceHabr AI ↗
Editor-in-Chief
Key metric #1Flags that disable background traffic leave only the gateway in the session
Key metric #2Over six months, Anthropic blocked 11.4 million accounts and reversed 42 thousand
Key metric #3Treat the token from claude setup-token as a password: it cannot be revoked on its own

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.

Story

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…

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Free · Waitlist · Hermes + DeepSeek

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.

Join the waitlist →Nomad AI Workspace
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Anthropic Blocked a $200 Subscription: Developer Finds 12 Direct Claude Code Requests That Bypass the Gateway https://news.hamidun.com/en/news/18589/anthropic-blocked-a-200-subscription-developer-finds-12-dire

What do you think?
Loading comments…