Copying a command does not enable a proxy
Clash Verge Rev’s terminal proxy copy function writes environment-variable assignments to the clipboard. Copying does not execute the command, enable System Proxy or TUN, or start the core. You must inspect the command and run it in PowerShell. Programs subsequently started from that session can use the values only if they support the corresponding proxy variables.
This guide covers the maintained Clash Verge Rev v2.5.8 stable release on Windows 11, x64 / ARM64, using the English interface. The command syntax applies to Windows PowerShell 5.1 and PowerShell 7.5, not CMD, Git Bash, WSL, macOS or Linux. The instructions are based on pinned-version source code and Microsoft documentation, not a Windows device connectivity test.
Before starting, confirm that the current configuration and node work and that the core is running. This procedure is for a local proxy on the same computer, not a remote proxy host or authentication setup. Open a separate PowerShell process for this task rather than overwriting variables in an existing work session. Starting a nested shell inside an already modified terminal does not provide that separation.
Choose PowerShell, then copy and inspect
- Open Settings in Clash Verge Rev and find Verge Basic Setting. This is not another client’s General page.
- Note the original value of Copy Env Type, then select PowerShell. The choice saves the client preference directly, with no separate Save button. If saving reports an error, resolve it before copying.
- Wait for the selection change to finish, then click the two-page copy icon beside that same row. Paste into a plain-text editor first, not directly into a terminal where unfamiliar clipboard content could execute.
- Check that the text contains only the expected
$env:HTTP_PROXYand$env:HTTPS_PROXYassignments, points to your trusted local proxy, and uses its actual listening port. Only then run it in the separate PowerShell window for this task. Bash’sexportand CMD’ssetare not interchangeable with this format.
In v2.5.8, the PowerShell output joins two assignments on one line with a plain semicolon. Both proxy URLs use http://. The name HTTPS_PROXY refers to the target request type; it does not mean you should change the proxy URL to https://. This format does not also set ALL_PROXY or NO_PROXY.
The default local address is 127.0.0.1, but CLASH_VERGE_REV_IP in the Clash Verge Rev process environment or its saved proxy_host preference can change the copied address. The port normally comes from the core’s current effective mixed port; a failed read or zero value falls back to configuration values. Do not substitute a fixed port from an online example or treat a successful copy as proof that a port is listening.
Inspect before executing. A copy-success notification is not a substitute for checking the clipboard. Stop if it still contains old text, extra commands, unexpected line breaks, unusual characters or an unfamiliar remote address. Do not create persistent variables, disable security checks or run an unknown script to fix a copying problem.
Check variables and requests in the same session
After execution, run this read-only query in the same PowerShell window to inspect the two current values. It neither sets a proxy nor sends a network request:
Get-Item Env:HTTP_PROXY, Env:HTTPS_PROXY
Both values should match the copied output you inspected. If an item cannot be found, first check that you ran the correct assignments in this window, rather than merely copying again or querying another terminal. Existing variables show only that this process holds the strings; they do not prove that the proxy, node or target service works.
Next, start the command-line program you actually need from this session and perform one normal task. Match its request time and destination domain against Clash Verge Rev’s connections or logs. The program must support these variables; an already running independent program does not update its environment because you made these assignments. If no matching request appears, check the program’s proxy support, where it was started and existing exclusions. If a request appears but fails, inspect its rule, exit and specific error.
A new window may still inherit earlier proxy or exclusion values; it is not necessarily a blank environment. This copy format leaves existing values such as NO_PROXY unchanged. A program that supports that variable may still connect directly to a matching destination. Do not clear these settings globally to make a test pass, or use a working browser as proof that the current command-line task is proxied.
Finish by ending the temporary process
$env: assignments change the current process environment, which subsequently started child processes can inherit. They do not write these two values to the Windows User or Machine environment or change other independent terminals already running. This temporary procedure needs no administrator privileges and does not edit the registry, a PowerShell profile or subscription YAML.
When finished, stop any still-running child programs started from this session, then exit the separate PowerShell process. Ending the temporary process discards this process’s changes; it does not clear the machine’s original proxy settings. Quitting Clash Verge Rev alone does not revoke values inherited by other surviving processes and may instead leave them pointing at an unavailable proxy.
Copy Env Type is a separate, saved client preference. If you changed it from another format to PowerShell for this task, use your earlier record to select the original option again. That does not retroactively change any terminal variables. There is no need to delete configurations, reset subscriptions or reinstall the app. For troubleshooting, share only the necessary variable names, redacted addresses and errors, not subscription links, credentials or complete private logs.
Official sources and version scope
- Clash Verge Rev v2.5.8 official release
- Pinned source: copy format and adjacent copy button
- Pinned source: PowerShell output and clipboard behavior
- Pinned source: effective mixed port and fallback order
- Microsoft: Windows PowerShell 5.1 environment variables
- Microsoft: PowerShell 7.5 process scope
- Microsoft: Get-Item read-only queries and multiple paths
- Microsoft: Windows child-process environment inheritance
- Official curl documentation: proxy variables and exclusions
Version numbers, filenames, and interface labels can change. Confirm them in the linked project documentation before making changes.