Configuration August 8, 2026

Clash Verge Rev External Controller Setup on Windows 11

This beginner-friendly Windows guide shows where to enable the Clash Verge Rev external controller, configure its port and secret, test the Web UI, and avoid common security mistakes.

Docker Proxy GitHub Acceleration Advanced Config YAML

1. What the external controller does—and who should use it

Clash Verge Rev on Windows 11 can be managed from its desktop interface, but the client also exposes an external controller: an HTTP API that lets a Web UI, automation script, monitoring tool, or another local application read status and change selected Mihomo settings. For a beginner, the most useful result is usually the controller’s Web UI. Instead of opening the Clash window every time, you can inspect active connections, switch proxy groups, review traffic, and verify that the running profile matches your expectations in a browser.

The controller is not the proxy itself. Your browser and applications still connect through the mixed port, HTTP port, SOCKS port, system proxy integration, or TUN service configured by Clash Verge Rev. The controller is a separate management channel. A typical Windows setup therefore has two different addresses to remember: one for ordinary proxied traffic, such as 127.0.0.1:7897, and one for management, such as 127.0.0.1:9090. The exact values depend on your profile and Clash Verge Rev version, so do not copy a port number blindly from a screenshot.

This distinction matters for security. A local controller bound to 127.0.0.1 accepts requests only from the same Windows computer. A controller bound to 0.0.0.0 may listen on every network interface, including Wi-Fi, Ethernet, a virtual adapter, or a public-facing interface created by another networking tool. If the secret is empty or weak, another device on the same network could potentially change proxy groups, inspect connection metadata, or interfere with your traffic policy.

Do not treat the external controller secret as a cosmetic password. It is an API credential for changing the running proxy service, so keep it private, use a long random value, and avoid sharing screenshots that reveal it.

This guide focuses on a practical Windows 11 workflow: find the controller setting in Clash Verge Rev, choose a safe address and port, create a secret, open the Web UI, test the API, and troubleshoot the most common failures. It assumes that Clash Verge Rev is already installed and that you have at least one valid Mihomo configuration or subscription profile.

2. Find the external controller in Clash Verge Rev

Open Clash Verge Rev from the Start menu or its notification-area icon. Depending on the release, the wording and location can vary slightly because the application interface evolves with the Mihomo core and the desktop shell. Look for a page named Settings, General, Profiles, or External Controller. Some builds expose controller fields in the general application settings, while others place them in a Mihomo configuration editor or advanced section.

The fields you are looking for normally include an external controller address, a controller port, and an external controller secret. The address may be displayed as a complete value such as 127.0.0.1:9090, or the interface may show host and port separately. If a Web UI URL is shown, it may use the controller address as its API base and append a path for the dashboard. Do not confuse this management endpoint with the mixed port. The mixed port handles HTTP and SOCKS proxy requests from applications; the external controller handles management requests.

  1. Open Clash Verge Rev settings. Keep the application running while you change the controller values. If the client uses a tray menu, double-click its icon to open the main window.
  2. Locate the controller section. Use the settings search field if the build provides one. Search for external controller, controller, API, or secret.
  3. Set a local bind address. For management from the same Windows machine, use 127.0.0.1. Avoid 0.0.0.0 unless you have a specific LAN administration requirement and understand the firewall consequences.
  4. Choose an unused port. A value such as 9090 is common, but any free local TCP port above 1024 can work. The port must not be occupied by another service.
  5. Enter a strong secret. Use a unique random string with enough length to prevent guessing. Do not reuse your Clash secret for an email account, server login, or password manager.
  6. Apply or save the setting. Some versions restart the Mihomo core automatically. If the endpoint does not respond, restart Clash Verge Rev once and verify that your profile remains loaded.

A controller address often follows this pattern:

127.0.0.1:9090

The first part is the bind address and the second part is the listening port. If you later decide to manage Clash from another device, do not simply replace the address with 0.0.0.0 and expose it broadly. A safer design is to bind to a private LAN address, restrict inbound access with Windows Defender Firewall, and use a protected management path such as a trusted VPN or SSH tunnel. For ordinary personal use, local-only access is simpler and safer.

3. Configure the port and secret on Windows 11

The controller port has to satisfy two conditions: it must be syntactically valid and it must be available. On Windows 11, you can check a suspected conflict with PowerShell. Replace 9090 with the port you plan to use:

Get-NetTCPConnection -LocalPort 9090 -ErrorAction SilentlyContinue

If the command returns no result, the port may be free. “May” is intentional: another program can claim it immediately after your check, and a service may listen only after startup. You can also inspect listening sockets with:

netstat -ano | findstr :9090

A result containing LISTENING means that a process already owns the port. The final number in the line is a process ID. You can map it to an application with:

Get-Process -Id 1234

Do not disable Windows Firewall merely because a port test fails. A conflict is normally solved by selecting another unused port or stopping the unrelated service. If Clash Verge Rev reports that it cannot bind the controller, check whether another Mihomo instance, an older Clash client, a development server, Docker, or a local monitoring application is already using that port.

For the secret, prefer a generated value rather than a memorable phrase. PowerShell can create a random hexadecimal string:

-join ((1..32) | ForEach-Object { '{0:x2}' -f (Get-Random -Minimum 0 -Maximum 256) })

Copy the result into the external controller secret field, then store it in a password manager if you expect to use scripts or a separate Web UI. Never place the value in a public Git repository, a shared configuration screenshot, a support forum post, or a screen recording. If you use a browser bookmark containing the secret in its URL, remember that browser history, sync services, and screenshots may preserve it.

Setting Recommended local value Reason
Bind address 127.0.0.1 Limits management access to the current Windows computer.
Controller port An unused local TCP port, such as 9090 Avoids collisions with other applications.
Secret A unique random string Prevents unauthorised API requests.
External access Disabled unless required Reduces LAN exposure and firewall complexity.

After saving, check whether Clash Verge Rev shows the controller as active. If the setting is stored inside the current profile instead of global application settings, changing profiles may replace the address, port, or secret. Record the final values in a private note and verify them again after importing or switching to a different configuration.

4. Open and test the Clash Web UI

Once the controller is enabled, open the Web UI from Clash Verge Rev if the application provides an Open Web UI button. This is the least error-prone method because the client can supply the correct dashboard path and API address. If you need to open it manually, use the dashboard’s documented URL and point its API base to the controller endpoint, for example:

http://127.0.0.1:9090

The exact dashboard path can differ. A Web UI may be bundled with Clash Verge Rev, selected from a dashboard list, or loaded from a locally configured resource. The important part is that the dashboard must know where the Mihomo controller is listening. Opening a dashboard without configuring its API base may produce a blank page, a “connection failed” message, or an interface that loads but cannot display groups.

When the dashboard asks for authentication, enter the external controller secret. If it asks for an API base URL separately, enter the controller address without accidentally adding the mixed proxy port. For example, if ordinary applications use 127.0.0.1:7897 and the controller uses 127.0.0.1:9090, the Web UI must use 9090. Sending management requests to the mixed port will not work because the two services speak different protocols.

You can test the endpoint independently of the dashboard with PowerShell. The API usually expects an authorization header in the form Bearer SECRET:

$secret = "PASTE_YOUR_SECRET_HERE"
$headers = @{ Authorization = "Bearer $secret" }
Invoke-RestMethod -Uri "http://127.0.0.1:9090/version" -Headers $headers

A successful response should contain version information from the running core. Depending on the Mihomo version, the JSON fields may include a version string or related build details. If you receive an HTTP 401 or 403 response, the endpoint is reachable but the secret is missing or incorrect. If the browser or PowerShell reports that the connection was refused, the core is not listening at that address and port, the port changed after a profile switch, or a local firewall rule is blocking the request.

For a second read-only check, request the active configuration endpoint if your core version supports it:

Invoke-RestMethod -Uri "http://127.0.0.1:9090/configs" -Headers $headers

Be careful with API tools that can modify state. A controller API may let a client select proxy groups, reload configuration, close connections, or change runtime settings. Test with read-only requests first, and do not run copied commands that use POST, PUT, or DELETE until you understand their effect. If you use a third-party dashboard, inspect its source or documentation before giving it a controller secret.

5. Troubleshoot failures and keep the controller private

Connection refused or timeout

First compare the address in the browser with the address currently displayed in Clash Verge Rev. Check the port with netstat, restart the client, and confirm that the Mihomo core is running. If the controller is bound to 127.0.0.1, do not test it from another computer and conclude that it is broken; loopback addresses deliberately work only on the host where they are configured. Also check whether a profile reload overwrote the controller value.

401 or unauthorized response

A 401 response is useful evidence: the network path works, but authentication failed. Remove accidental quotation marks from the secret if the UI does not expect them, check for leading or trailing spaces, and confirm that the dashboard is using the same controller endpoint as PowerShell. If you recently changed the secret, close and reopen the Web UI so it does not continue sending an old token stored in browser memory.

The dashboard loads but shows no groups

This usually indicates an incorrect API base, a dashboard compatibility problem, or a core version mismatch. Verify the /version request first. If it works, inspect the browser’s developer console and Network panel for failed requests. A dashboard may load its static files successfully while API calls still target an old port or an HTTPS URL that the local controller does not provide. Select a dashboard known to support the Mihomo API exposed by your installed core.

LAN access and firewall mistakes

If you intentionally need to manage Clash from another device, document the reason before exposing the endpoint. Bind it only to the required private address, create a narrow inbound Windows Defender Firewall rule, and limit the remote address range. Do not forward the controller port on your router. Do not assume that a long secret makes public exposure safe: APIs can contain implementation bugs, logs can leak credentials, and a compromised device on the LAN may still attempt brute-force requests. Disable remote access again when the task is finished.

It is also wise to separate controller administration from ordinary proxy testing. The controller secret should never be placed in HTTP_PROXY, HTTPS_PROXY, browser proxy settings, or a subscription URL. Those settings describe where applications send traffic; they are not authentication fields for the management API. Keep a private checklist containing the controller address, port, dashboard API base, and the date when you last rotated the secret.

Compared with many one-click VPN clients that hide routing state behind a single on/off switch, Clash Verge Rev exposes the controller, active connections, proxy groups, and runtime decisions in a way you can test from both a Web UI and PowerShell. That visibility takes a few more minutes to configure, but it makes Windows troubleshooting more concrete: you can distinguish a bad proxy route from a closed management port, and a wrong secret from a firewall problem. If you want that level of control across Windows, macOS, Linux, and Android-compatible Mihomo clients, the next step is to choose a client that matches your workflow rather than relying on a black-box toggle.

Download Clash clients →

Ready to get started?

Choose a Clash-compatible client, configure your profile, and manage proxy routing with clearer feedback on Windows.