Enable TUN Mode: Route CLI Tools & Stop WebRTC Leaks
If your browser works fine but terminal tools like CC, Codex, OpenCode time out — or leak tests show your local ISP IP via WebRTC — enable Clash Verge Rev's virtual network interface (TUN).
1. Select Rule Mode
In Clash Verge Rev → Proxies, select Rule at the top. All AI domains are already prioritized through your server while domestic traffic goes direct.
2. Install Service & Turn On TUN Mode
1. Open Settings on the left sidebar;
2. Next to Tun Mode, click the gear/service icon → Install and approve the OS prompt;
3. Toggle Tun Mode ON (on Windows, keep Strict Route enabled).
3. Verify in Terminal
curl -fsSL https://api.ipify.org && echo Once it prints your overseas VPS IPv4, CC, AGY, Codex, and OpenCode will connect seamlessly with zero manual proxy variables.