Setting up a proxy for Claude Code from Russia — CLI, Claude Desktop, and VS Code/Cursor.
I'll show you how to avoid having a VPN running all the time — just set up the proxy once and use Claude Code as usual. I'll cover three options: the terminal, the desktop application, and code editors. This method works for Claude Code CLI, Claude
Desktop, and the Claude extension in VS Code and Cursor.
0:00 Intro
0:17 Claude Code CLI via proxy
1:19 Claude Desktop via proxy
2:05 VS Code / Cursor extension
3:36 Claude Cowork
4:01 Conclusion
Commands from the video:
Claude Code CLI (all OS):
HTTPS_PROXY=http://IP:PORT claude
Claude Desktop (macOS):
open -a "Claude" --args --proxy-server=http://IP:PORT --ignore-certificate-errors
Claude Desktop (Linux):
/opt/Claude/claude --proxy-server=IP:PORT --ignore-certificate-errors
Claude Desktop (Windows):
"Claude.exe" --proxy-server=http://IP:PORT --ignore-certificate-errors
Claude Desktop (Windows) cmd):
"C:\Users\%USERNAME%\AppData\Local\AnthropicClaude\Claude.exe" --proxy-server=IP:PORT
--ignore-certificate-errors
Replace %USERNAME% with your name
Claude Desktop (Windows PowerShell):
& "$env:LOCALAPPDATA\AnthropicClaude\Claude.exe" --proxy-server=IP:PORT
--ignore-certificate-errors
VS Code/Cursor (settings.json):
{
"claudeCode.environmentVariables": [
{
"name": "HTTP_PROXY",
"value": "http://IP:PORT",
},
{
"name": "HTTPS_PROXY",
"value": "http://IP:PORT",
}
]
}
How do I use Claude Code without a VPN? • Как я пользуюсь Claude Code без VPN