Using Claude and Claude Code in China
Claude does not work on a connection in mainland China, and it does not work through a Hong Kong server either, because Anthropic does not offer it in either place. You need a VPN that exits in a country Anthropic supports, and that keeps using the same exit.

Two separate blocks
The first is the familiar one. From mainland China, claude.ai and Anthropic's API are unreachable on an ordinary connection. Any working VPN fixes that part.
The second is Anthropic's own. Claude is offered only in a published list of supported countries and regions, and neither mainland China nor Hong Kong is on it. A request arriving from an unsupported location is refused with a message that the service is not available in your region, even though the connection itself is fine.
That is why "my VPN is on and Claude still says unavailable" is so common. Many VPNs, and many travel eSIMs, come out in Hong Kong because it is the closest place to the mainland.
What kind of exit matters
- —It has to be in a supported country. Japan, Taiwan, South Korea and the United States are; Hong Kong is not
- —It should be the same one each time. An account that shows up in Tokyo, then Los Angeles, then Frankfurt within an hour can look like a shared or compromised account
- —It should not be an address shared with heavy general traffic. Like OpenAI, Anthropic runs risk checks on where requests come from, and addresses used by large numbers of VPN customers attract more of them
Account creation is a separate matter. Signing up for Claude normally involves phone verification with a number from a supported country, and a paid plan needs a payment method Anthropic accepts. A VPN changes neither, so set the account up before you move or travel if you can.
What DopeVpn does
ChatGPT, Claude, Gemini, Cursor and other AI traffic is routed automatically through dedicated AI exits in Japan (Tokyo / Osaka) and Taiwan (Taipei), and each account keeps the same exit — nothing to set up, including on the free trial.
In practice you can leave the app on automatic, or pick a nearby Hong Kong server for everything else, and requests to claude.ai, claude.com and anthropic.com still leave through an AI exit. Those exits carry AI traffic only.
We cannot promise that Anthropic will never challenge or restrict an account; those decisions are theirs. What the routing removes is the two avoidable causes: an exit in an unsupported place, and an exit that keeps changing.
If you would rather have an exit address that nobody else uses, we also sell dedicated lines, a server of your own, separately from the regular plans. You buy one from your account.
Claude Code and the API
Claude Code runs in a terminal, and terminal programs do not read the system proxy that a desktop VPN app sets. So the browser works, claude.ai loads, and Claude Code still cannot connect or sign in. There are two fixes, both in the DopeVpn desktop app:
- —Turn on Enhanced mode under Connection mode. It routes every program on the computer through the VPN, terminals included. It needs administrator rights on Windows and your password once on a Mac (Mac app 0.5.33 or later)
- —Or connect, click Copy terminal proxy command and paste it into the terminal. It applies to tools started from that window, so paste it again in each new one
The API from your own code
api.anthropic.com is covered by the same routing, so SDK calls and editor integrations behave like the browser once their traffic is actually going through the VPN.
Before you travel
- —Create your Claude account and sign in on every device at home
- —Claude usually signs you in through Google or with a link or code sent by email. In China, Google and Gmail are blocked, so both depend on the VPN already working. Install and test the VPN first
- —Open claude.ai through the VPN once before you fly, and run Claude Code once with Enhanced mode on if you use it
ChatGPT, Cursor and the desktop app
The same routing covers ChatGPT; the verification loops it runs into are explained in using ChatGPT in China. Editors have their own version of the region problem, covered in Cursor and developer tools in China. For the desktop app itself, see the Mac and Windows setup guides. AI routing is included on every plan; prices are on the pricing page.
Quick answers
Does Claude work in China? Not on a mainland connection, and not through a Hong Kong exit either: Anthropic does not offer Claude in mainland China or Hong Kong. It works through a VPN whose exit is in a supported country such as Japan, Taiwan or the United States.
Why does Claude say it is unavailable in my region when my VPN is on? Your VPN is probably exiting in an unsupported location, most often Hong Kong. Use an exit in a supported country. DopeVpn sends Claude traffic through its dedicated AI exits whichever server you have selected.
Why does Claude Code fail when claude.ai works in my browser? Terminal programs ignore the system proxy that desktop VPN apps set, so Claude Code is not actually using the VPN. In DopeVpn, turn on Enhanced mode or paste the app's terminal proxy command into the terminal.
AI routing is on by default
Including on the 3-day free trial. Nothing to configure.
Create a free accountWant the numbers first? See plans and prices