Claude Code China Complete Guide
Bypass network and payment barriers — how Chinese developers can reliably use Claude Code and Codex API with Alipay, no VPN required
Why Can't You Use Claude Code Directly in China?
Chinese developers face three barriers
Network Restrictions
api.anthropic.com is inaccessible from mainland China without a VPN or API relay service
Payment Incompatibility
Anthropic only accepts Visa/MasterCard and other international cards; Alipay, WeChat Pay, and UnionPay are not supported
Account Registration Barriers
Registering an Anthropic account requires an overseas phone number, and certain IP ranges are blocked from registration
Three Solutions Compared
From self-hosted proxies to professional relay services — which works best for you?
| Solution | Stability | Setup Difficulty | Payment | Overall Cost | Recommended |
|---|---|---|---|---|---|
| VPN + Direct Access | Unstable | Complex | Int'l Card | Low | ⚠️ |
| Self-Hosted Proxy | Fairly Stable | Very Complex | Int'l Card | High | ⚠️ |
| QCode.cc Relay | High Availability | 5 Minutes | Alipay / Cards | Low | ✅ |
QCode.cc Setup Tutorial
5-minute setup, start using Claude Code immediately
Create a QCode.cc Account
Visit qcode.cc to register. Pay with Alipay — no international credit card needed.
Sign Up Now →Get Your API Key
After signing in, retrieve your API Key from the dashboard (format: sk-ant-xxxx). This is your credential for accessing the Claude API.
Configure Environment Variables
Set these two environment variables in your terminal to route Claude Code requests through QCode.cc:
Verify the Connection
Run the following command to verify the connection works:
Full Feature Compatibility
QCode.cc fully proxies the Anthropic API — all Claude Code features work seamlessly
Claude Code Agent Teams
Multi-agent parallel collaboration with full team mode support
MCP Protocol Integration
Model Context Protocol fully proxied, third-party tools connect seamlessly
Claude Hooks
Automated Hooks workflows and event-triggered scripts work normally
Managed Agents API
Latest Managed Agents cloud platform API fully supported
Codex CLI
OpenAI Codex CLI can also be routed through QCode.cc
Streaming Responses (SSE)
Server-sent event streaming with low-latency real-time responses
Flexible Plans with Alipay Support
Choose your plan, scale anytime, no international card needed
Starter
¥60/mo
$45 USD quota/month
Great for individual developers
Standard
¥360/mo
$295 USD quota/month
Ideal for heavy use and small teams
Premium
¥820/mo
$655 USD quota/month
For high-frequency use and enterprise
Frequently Asked Questions
Start Using Claude Code Today
5-minute setup, Alipay payment, no VPN — the best choice for developers in China