Home
A new dashboard of cards over a calm background in Surge's blue. The start switch is the first card on Home: slide it to start Surge. As you scroll, it folds into a capsule that shows whether Surge is running.
- While Surge is off, Home shows the Last Session, with its duration, traffic, and requests, followed by announcements, each with a two-line preview.
- Choose Customize Home at the bottom of the page to hide cards or change their order. Remote Dashboard uses the same arrangement.
- Customize Home also sets how the start switch looks: always expanded, collapsed into a capsule beside the title once Surge is running, or always collapsed. Tap the capsule to stop Surge, or to start it while Surge is off.
- Activity charts upload and download for the last 60 seconds, with peak speed, request count, total traffic, and open connections.
- Network shows the SSID, outbound mode, latency to the router and to the internet, and local and router addresses.
- External IP shows your public address and location, NAT type, carrier, and ASN.
- Bandwidth keeps the latest speed test. DNS shows average lookup time, whether DNS is encrypted, and recent queries, with a button to flush the cache.
- Usage covers today, this month, and last month, split into proxy and direct, with an hourly breakdown.
- Top Traffic ranks domains or policies by traffic, each with its site icon. Each bar shows the proxy share in blue and the direct share in purple, as on the Usage card.
- Policy Latency plots every policy on one shared scale.
- Events surfaces warnings and errors on Home, with a warnings-only filter.
- Prefer an earlier layout? In More, Home Tab offers the Surge 5 and Surge 2 styles, or None to remove the tab. With None, the Configure header starts and stops Surge.
Design
- The tab bar, the start switch, Home cards, and menus use Liquid Glass.
- Configure sorts settings into categories. Swipe between them and the page follows your finger. Star the settings you use most to keep them in Favorites.
- Modules are sorted into categories too, with the same category bar as Configure and policy groups.
- Policy group cards take SF Symbols or emoji icons. Tap a card to expand it in place and pick a policy. Touch and hold to edit the group or change its icon. Swipe sideways to move between policy group categories.
- Give a policy group card a background: one of 63 preset graphics, a system color, or any color you pick. A global option in the customize sheet shows each folded card's latency with its dot, the dot only, or nothing.
- Menus anchored to the row replace most action sheets, so options open instantly where you tapped, with a description under each choice.
- Every editor opens with a Settings-style header that says what the page controls.
- Surge reopens on the tab you last used, and each tab keeps its own navigation stack.
- The More tab gives every item a colored icon.
- Lucid is now the only style, and it no longer needs a Feature Subscription. The Gradient theme is removed, and its card backgrounds now work in every style.
Requests
- Filter bar pinned to the top of the list. Show only HTTP or only active requests in one tap, and turn custom filters on or off. Add filters with the Add Filter button, and touch and hold a filter to invert it, so it hides matching requests instead of showing only them.
- Site icons are fetched and cached, and also appear in DNS Cache, Traffic Statistics, and Top Traffic.
- Status is named next to its colored dot on every row. Type badges are neutral, so the status is the only color in the row.
- Image thumbnails appear for captured image responses.
- Request details are redesigned. Protocol, status, traffic, timing, and the matched rule fit on the first screen, and you can add a rule from there. Touch and hold the URL to copy it. A response's trailer section appears under Trailers.
- The packet capture list uses the same layout as the request list.
Status
Type
Profile History
- Every saved version of a profile is kept on the device, labeled with where the change came from: the app, text mode, or another source such as iCloud sync.
- When you save in text mode, Surge shows how many lines changed. Choose Review Changes to step through each one, with changed words highlighted.
- Switch between side-by-side and unified views. Unchanged sections fold away, and arrows jump between changes.
- Compare any version with the current profile, copy it as a patch, or roll back. Swipe to delete a version you don't need.
- Versions are kept for up to one year, within 100 MB in total.
- The text editor checks profiles and modules as you type. Lines with errors or warnings are marked and listed in a menu, and Surge asks before saving a profile that fails to parse.
- Error messages say why a profile line is invalid, not just where it is.
- Comments in a profile stay next to their entries when you add or remove entries in the app.
iPad and iPhone Duo
- Surge switches between a tab bar and a split layout based on window width, on rotation, in Split View, and when iPhone Duo unfolds. It keeps your current tab across the switch.
- Home cards flow into two columns once the area reaches 640 pt.
- On the iPhone Duo outer screen, content stays centered in the safe area, clear of the side tab bar and status bar.
MCP Server
The HTTP API can now serve a Model Context Protocol endpoint. Agents such as Claude Code get the same capabilities as surge-cli, including control of Surge on another device. MCP apps on the same iPhone, such as FlowDown and Minis, can drive Surge directly through http://127.0.0.1:6171/v1/mcp.
- The endpoint is
/v1/mcp, using stateless Streamable HTTP. It shares the HTTP API key, sent asX-KeyorAuthorization: Bearer. - Agents edit the profile one section at a time. Each write is validated against the whole profile, and with
#!includeonly the file that holds the section changes. - Each tool is marked as read-only, test traffic, settings change, or destructive, so clients can ask for confirmation first.
- Tools cover status and network summary, policies and groups, rule match explanations, DNS and GeoIP lookups, requests and captured bodies, logs, live events, policy and network tests, policy avoidance, temporary rules, profiles and modules, capture filters, saved capture sessions, and scripts.
# Turn on the endpoint [General] http-api = examplekey@0.0.0.0:6171 http-api-mcp = true
# Add it to Claude Code $ claude mcp add --transport http surge \ http://192.168.1.10:6171/v1/mcp \ --header "X-Key: examplekey"
// Or in a client that reads JSON config { "mcpServers": { "surge": { "type": "http", "url": "http://192.168.1.10:6171/v1/mcp", "headers": { "X-Key": "examplekey" } } } }
The MCP endpoint is off by default. The API key grants full control of Surge, including running scripts and stopping Surge. Only expose the listening port on networks you trust.
Engine
Surge iOS 6.0 shares these engine updates with Surge Mac 6.11 and 6.12.
Tested against official clients
- Surge Engine now runs on a fully automated, AI-driven test platform. It checks compatibility and performance against the latest official implementations of every supported proxy protocol, so Surge keeps up with or beats them. Every engine change goes through it, to catch compatibility issues and performance regressions before release.
VLESS
- New
vlessproxy type, implemented the way Xray-core does it. It supports the RAW, WebSocket, HTTPUpgrade, gRPC, and XHTTP transports, with no TLS, TLS, or REALITY, and thextls-rprx-visionflow. - UDP is always sent as XUDP.
- VLESS Encryption (
mlkem768x25519plus), a post-quantum key exchange that encrypts the VLESS stream itself, is set withencryption. Paste the server's client string into the proxy editor and every field fills in. - The XHTTP transport (
xhttp=true) supports the stream-one, stream-up, and packet-up modes over HTTP/1.1, HTTP/2, or HTTP/3, together with VLESS Encryption and Vision. - REALITY connections send the same TLS ClientHello as Chrome. Servers older than Xray 25.5.16, which reject that ClientHello, are recognized on the first connection and get one without ML-KEM from then on.
- The proxy editor has VLESS settings, and imports
vless://share links.
# RAW + REALITY + Vision Proxy = vless, 1.2.3.4, 443, username=<uuid>, flow=xtls-rprx-vision, sni=www.microsoft.com, reality-public-key=<key>, reality-short-id=0123456789abcdef
Performance
- Fixes a large number of performance problems that showed up with particular configurations or environments, especially chains of proxies.
- Uses about half the memory after a proxy group reload with thousands of proxies, and much less with large profiles, many inline rules, large modules, and thousands of tested policies.
- A
policy-paththat points to a complete profile reads only its[Proxy]section, which cuts peak memory on start and on every update. - URL rewrite, script, Map Local, and
URL-REGEXpatterns that start with a host are skipped for requests to other hosts, so HTTP requests are faster and large modules cost less memory. - On iOS, Surge reads and writes the tunnel's packets directly instead of through the system packet flow, for higher throughput to apps on the device.
Tailscale exit node and subnet routes
- Other tailnet devices can connect to this device, or use it as an exit node or subnet router. Incoming traffic goes through your rules and policies, and shows up in Requests under the peer's name.
allow-peer-access = truelets tailnet devices reach this device through its tailnet address, for example to use Surge's proxy.advertise-exit-nodeandadvertise-routestake effect once you approve them in the Tailscale admin console.
[Tailscale home]
auth-key = tskey-auth-xxxx
advertise-exit-node = true
advertise-routes = 192.168.1.0/24Surge does not apply your Tailscale access control policy to incoming connections. Use rules such as SRC-IP to limit who can reach which destination.
WireGuard listen port
- With
listen-portset, Surge listens for WireGuard clients such as phones and laptops. A peer can leave outendpoint: Surge learns its address when it connects and follows it when it changes. allow-peer-access = truelets the peer open connections to this device through an existing tunnel.- Clients can use Surge's tunnel address as their DNS server.
[WireGuard home]
self-ip = 10.8.0.1
listen-port = 51820
peer = (public-key = <phone>, allowed-ips = 10.8.0.2/32)Adaptive QUIC blocking
- Surge blocks QUIC so the client falls back to TCP. QUIC is allowed for a hostname only when the app shows it can't fall back: no TCP connection appears, and the app retries over QUIC within three seconds. QUIC-only apps keep working, and the result is remembered per hostname.
autonow uses this mode for policies that support UDP relay.- Surge finds the hostname of more QUIC connections, including a ClientHello split across several packets, as recent browsers send with post-quantum key exchange. QUIC v2 and draft-29 are recognized too, so rules, MITM, and Requests see more hostnames.
- DTLS, WireGuard, STUN, and other UDP traffic on port 443 is no longer treated as QUIC, so
block-quicleaves it alone.
Proxy = trojan, ..., block-quic=adaptiveAvoid in automatic groups
- Touch and hold a policy and choose Avoid in Automatic Groups when it passes latency tests but performs poorly.
url-test,fallback,load-balance, andsmartgroups skip it as long as another member is usable. - Marks are cleared when Surge restarts, like overrides. surge-cli, MCP, and the HTTP API can set them too.
MITM with your own certificates
server-certificatesdecrypts the listed hosts with a certificate from your keystore, such as a publicly trusted one, instead of one signed by Surge's CA. Use it for apps that pin their certificate or reject user-installed CAs.
[MITM]
server-certificates = api.example.com:my-certificateSaved capture sessions
- HTTP capture sessions saved to disk can be listed, browsed, and read, bodies included, through surge-cli, MCP, and the HTTP API.
UDP over SOCKS5 Wi-Fi Access
- The SOCKS5 server for Wi-Fi Access supports UDP ASSOCIATE. Each association is matched against your rules once, using the destination of its first packet.
[General]
allow-wifi-access = true
wifi-access-socks5-port = 6153No rule set limit
- DOMAIN-SET and RULE-SET were capped at one million entries. The cap is gone, so large ad-blocking lists work as is.
Capture filters and section editing
- Capture filters, which decide which requests are recorded, can be read and changed with surge-cli and the HTTP API.
- Profiles can be read and written one section at a time.
surge-cli capture-filter surge-cli profile section Rule GET /v1/capture/filters
More for surge-cli, MCP, and the HTTP API
- Traffic statistics for today, this month, or last month, merged by host, policy, and interface.
- Module details: type, version, modification time, the lines each module adds to each section or why it failed to load, its header fields, arguments, and text.
- Rule match and explain show where the matched rule comes from, the profile file and line or the module that added it, and the entry that matched inside a rule set or domain set.
- New capture sessions record their start and end time, limits, filter, and why they ended.
Proxy protocols
- Snell v6 sends UDP data right after the tunnel command, without waiting a round trip, so QUIC over Snell v6 connects noticeably faster. This requires a v6 server.
- Hysteria 2 splits UDP datagrams larger than the server allows into fragments, even when they're marked Don't Fragment. Official servers since v2.6.4 cap datagrams at about 1,200 bytes, which broke Steam Datagram Relay (CS2 matchmaking) and QUIC inside the tunnel. Each datagram also carries about 45 more bytes.
- When a SOCKS5 proxy rejects a connection, Surge shows the reason the server gave, such as connection refused or host unreachable.
- HTTPUpgrade transport: with
ws=true,ws-http-upgrade=trueswitches VMess, Trojan, and VLESS from WebSocket to HTTPUpgrade. Share links withtype=httpupgradeare imported too. - TrustTunnel's new
client-random-auth-keyworks with servers v1.3.0-beta.2 and later that accept only clients holding a shared key, over HTTP/2 or HTTP/3. It requires an SNI, and it is masked in sanitized profiles. - When a Hysteria 2, TUIC, or MASQUE server stops answering, Surge notices within about 3 seconds and opens a new connection, instead of sending new requests into the dead one until the idle timeout.
- MASQUE UDP associations survive the server closing their QUIC connection.
- Wrong credentials fail right away instead of after the 10-second setup timeout, for HTTP and HTTPS proxies, SOCKS5, Hysteria 2, ShadowTLS v3, and an SSH host key that doesn't match
server-fingerprint. - When a server closes the connection during setup, as TrustTunnel does with a wrong key, Surge retries once and then fails, instead of retrying until the timeout.
Proxy = trojan, ..., ws=true, ws-http-upgrade=true Proxy = trust-tunnel, ..., client-random-auth-key=<hex key>
Tailscale and WireGuard
- Changing
[Proxy]or[Proxy Group]no longer restarts every WireGuard and Tailscale session. A session whose policy line and section are unchanged keeps running, so a change made over the tailnet no longer cuts off its own reply. - Connections to this device's own tunnel address or MagicDNS name reach the device itself instead of timing out.
- A DERP connection that receives nothing for 120 seconds is treated as dead and reconnected.
- Surge finds a direct path to a peer behind NAT on the local network, such as a tailscaled container on a Docker bridge.
- A new web sign-in takes effect right away, without restarting Surge.
- A rejected or expired auth key is raised as a warning that stays, and is recorded in Events and the Logbook, until the node is authorized again.
- The Tailscale admin console no longer shows an update warning for devices running Surge.
- Tailscale MagicDNS hosts (
*.ts.net) appear under their full hostname in Traffic Statistics. - Tailscale sends its traffic through the interface of a DIRECT underlying policy bound to one, or the interface set by the policy's own
interface.
Profile reload
- Changing
[Proxy],[Proxy Group], or[Keystore]no longer cuts in-flight connections of SSH, HTTP/2 CONNECT, MASQUE, TUIC, and Hysteria 2 policies whose own definition is unchanged. Their shared connections are kept, as WireGuard and Tailscale sessions are.
DNS
- Encrypted DNS follows
dns-follow-interfaceand connects directly over the bound interface. - Queries are resent after 1, 2, and 4 seconds, and a lookup with no answer fails after 5 seconds instead of about 11.
Ponte
- A device no longer stays stuck in LAN-only mode when its record was captured while its remote channels were restarting.
- When a LAN connection fails, Surge falls back to Internet mode and refreshes the device record, instead of ending in a ping timeout.
- Two devices with the same virtual machine bridge address, as with OrbStack, Parallels, or UTM, are no longer treated as being on the same LAN.
- Device records in logs no longer include the PSK or controller key.
HTTP and scripting
- The HTTP proxy no longer forwards
Proxy-Authorization, which carries the credentials for Surge itself, to the upstream server. - A malformed HTTP/2 request resets only its own stream, not the whole connection. A response cut off by the upstream server is reported as truncated instead of complete.
$httpClientdecodes percent-encoded usernames and passwords in the URL before sending them as Basic auth, and reports a body it cannot decode as an error.$response.trailersgives anhttp-responsescript withrequires-body=truethe response's trailer section, and returningtrailersreplaces it. A modified trailer section only reaches HTTP/2 clients.- Profile errors explain why a line is invalid, not only where it is.
- surge-cli, MCP, and the HTTP API (
POST /v1/ponte/restart) can restart the Surge Ponte server.
Fixes
- Half-closed connections no longer lose data, such as a client that sends a request and shuts down its sending side before the reply. This affected TLS-based policies (Trojan, HTTPS, SOCKS5 over TLS), TUIC, Hysteria 2, MASQUE, TrustTunnel, Vector, and HTTP/2 CONNECT.
- Uploads through SSH policies no longer get corrupted after the session rekeys at 1 GB, and SSH servers no longer drop the whole session after Surge closed a channel twice.
- MASQUE with Envoy no longer loses the first packet to each new UDP destination, fails after about 100 destinations, or drops 1,200-byte replies.
- Killing one HTTP/3 stream no longer closes the whole session and every tunnel on it (MASQUE, TrustTunnel with
h3=true). - TrustTunnel HTTP/2 downloads no longer break after a few seconds at full speed, and Hysteria 2 uploads with obfuscation no longer stall.
- UDP datagrams over Hysteria 2, TUIC, and MASQUE are no longer dropped while a large upload runs on the same connection.
- UDP over AnyTLS and Trojan no longer queues without limit when the sender outpaces the connection, which could use gigabytes of memory.
- Shadowsocks 2022 no longer drops received UDP datagrams larger than 1,500 bytes, and TCP through WireGuard chained over a UDP relay such as Shadowsocks now connects.
- Idle TUIC connections no longer close after about 15 seconds with servers that announce a 15-second idle timeout.
- Response trailers are kept, so gRPC calls no longer fail after an
http-responsescript returns$done(). - Devices that use Surge as a Tailscale exit node can resolve domains again, and Tailscale no longer stays on a relay after a peer restarts.
- Smart groups fail over when an IPv6-only proxy server becomes unreachable, for example on an IPv4-only network.
- A failing encrypted DNS server no longer marks the network as Unstable while the network itself is fine.
- Network time synchronization works again.
Other Improvements
- Surge iOS 6 requires a license. The free tier is no longer available.
- The proxy editor imports share links of every supported protocol, from the formats of v2rayN, Shadowrocket, Xray, mihomo, sing-box, and others, as well as a proxy line copied from a Surge profile. A link with settings Surge can't express is rejected with an explanation, never imported in part.
- The proxy editor keeps uncommon settings on an Advanced page, marked In Use when any of them differs from the default, and now has controls for nearly every parameter, including test timeout and UDP testing, ALPN,
server-fingerprint, Hysteria obfuscation, and WireGuard and Tailscale peer access and route advertising. - TUIC v4 is a version option of the TUIC proxy type, which defaults to v5.
- The script editor opens inside Utilities, so the tab bar stays and you can visit other tabs while it's open. Saving lists the file you're editing first.
- Remote Control is now called Remote Dashboard, and uses the same dashboard cards as Home. It can show a remote Surge's Traffic Statistics, and add temporary rules from request details on any remote device. Device management is redesigned, with a new device details page.
- The News page is redesigned. Each announcement shows whether it's important, new, or pinned, and stays until you dismiss it.
- Each keystore item shows where it's stored, the profile or the keychain, right on its row, and a tap moves it.
- Policy group editors offer
CELLULAR,CELLULAR-ONLY,HYBRID, andNO-HYBRID. - New
log-file-size-limitsetting, also under General → Log, sets the largest log file in MB. - Nearly every view is redesigned for Surge iOS 6.
- Wi-Fi Timeline, Traffic Statistics, External Resources, and Modules are rebuilt. Module updates show only what changed.
- Real-Time Statistics is redesigned. It charts each policy's traffic by hour, and can hide policies that only carried proxy tests.
- The script editor, Add Rule, DNS settings, and Subnet Overrides are redesigned in the Surge iOS 6 style.
- Traffic from proxy tests is counted separately per policy, and policy statistics survive engine restarts.
- The HTTP API can list policies loaded by external policy groups with
include_external=true. - New settings screens for QUIC blocking mode and the [Testing] section.