Claude Code Relay Setup Guide
Use Claude Code CLI without a VPN — China direct. Covers full installation and configuration tutorials for macOS / Windows / Linux.
// Recommended
Recommended Platforms
These platforms have strong Claude Code support (ranked independently)
Lume Coder — China Direct
99.9% SLA, sub-second RTT, enterprise-grade stability. Genuine Claude Code mirror, zero-config connection.
CC Club — USTC Team
Operated by USTC-affiliated team, complete Claude Code Academy tutorials, beginner-friendly.
SSSAiCode — Lowest Multiplier
0.45x multiplier, credits never expire. Claude Code + Codex + Gemini CLI all supported.
AICoding — Plug and Play
One-click install, zero config. OpenClaw / VS Code / Cursor supported, $200 Max account pool.
// Installation
Install Claude Code
Official CLI tool, all three major OS supported
macOS / Linux
Install via npm or curl
npm install -g @anthropic-ai/claude-code
# or
curl -fsSL https://claude.ai/install.sh | shWindows
Install via npm
npm install -g @anthropic-ai/claude-code// Claude Code officially requires a Claude API Key from Anthropic (needs overseas credit card). With a relay, just use the relay's provided key and endpoint to bypass this restriction.
// Configure Relay
Configure Your Relay
Set environment variables to replace official endpoints
Create Config File
Claude Code uses settings.json in the ~/.config/claude directory.
Enter Relay Info
Set ANTHROPIC_BASE_URL (relay endpoint) and ANTHROPIC_API_KEY (your API key).
Launch Claude Code
Run claude in any directory, follow the prompts to complete setup.
// IDE Integration
IDE Integration
Beyond CLI, use Claude Code in popular IDEs via plugins
OpenClaw
A powerful Claude Code GUI client supporting VS Code / JetBrains / Cursor.
Cursor
An AI code editor with built-in Claude Code support — just configure the API endpoint.
VS Code (Official Plugin)
Anthropic's official VS Code plugin, supports connecting to relays.
JetBrains
Claude Code supported via plugins like AICodeMirror. JetBrains + VS Code dual IDE support.
// FAQ