Tunnel VSCode network requests through WireGuard using wireproxy for enhanced security and bypassing regional restrictions. Automatically activates on startup to ensure seamless, secure connectivity.
-
Install the Extension:
- Search for
WireGuard for VSCodein the VSCode Marketplace and click Install.
- Search for
-
Install wireproxy:
- Download the
wireproxybinary from wireproxy releases. - Windows: Add the
wireproxy.exedirectory to your PATH:- Open System Properties → Advanced → Environment Variables.
- Edit the
Pathvariable and add the directory containingwireproxy.exe.
- Linux/macOS: After installation,
wireproxyis typically added to PATH automatically.
- Download the
- Click the status bar item (
WireGuard: No Configor similar) in the bottom-right corner of VSCode. - Select a WireGuard configuration file (
.conf) via the file picker. - The extension will automatically start
wireproxy, set the proxy, and update the status bar toWireGuard: <profile_name>.
The extension automates secure tunneling of VSCode’s network traffic (e.g., extension downloads, telemetry):
- Sets
http.proxytohttp://127.0.0.1:25345in VSCode settings. - Spawns the
wireproxyprocess with the selected WireGuard.conffile. - Displays real-time connection status via the status bar with a tooltip showing the current status and port.
- Handles errors gracefully, resetting the configuration if
wireproxyfails or the config is invalid. - Uses
"*"inactivationEventsto activate immediately on VSCode startup, ensuring the proxy is set up before other extensions make network requests, allowing their traffic to be securely tunneled.
This is a small personal project to simplify secure VSCode networking, but I’d love contributions! Feel free to open issues or submit pull requests on GitHub.
This extension is not officially affiliated with or endorsed by WireGuard LLC.
This extension uses wireproxy, created by Wind Wong, licensed under the ISC License.
