# Login (opens browser)
cloudflared login
# Create a named tunnel
cloudflared tunnel create claude-remote
# Route a subdomain (replace with your domain or Cloudflare Pages domain)
cloudflared tunnel route dns claude-remote claude-remote.yourdomain.com
Access → Applications → Add an application → Self-hosted
Set the subdomain: claude-remote.yourdomain.com
Policy: Allow → Email → your@gmail.com
Save
4. Configure the extension
In VS Code settings (Ctrl+,), search Claude Remote:
Setting
Value
claudeRemote.tunnelName
claude-remote
claudeRemote.port
3131 (or any free port)
claudeRemote.autoResume
true
Usage
Open a project in VS Code
Click ○ Claude Remote: OFF in the status bar (bottom right)
Tunnel starts → URL appears in notification
Open URL on any device → Google login → Claude terminal
Important: Don't use VS Code Claude Code chat and the remote terminal simultaneously on the same session — they share the same session file.
Commands
Command
Description
Claude Remote: Start
Start remote session for current project
Claude Remote: Stop
Stop remote session
Claude Remote: Copy URL
Copy tunnel URL to clipboard
Claude Remote: Setup Cloudflare Tunnel
Open setup guide
Security
Access is controlled by Cloudflare Access — only the Google account(s) you whitelist can reach the terminal. The server binds to 127.0.0.1 only and is never directly exposed to the internet.