# OpenSurge-for-Mac

Surge-style whole-home gateway and control plane for macOS with IPv4/IPv6 support— mihomo TUN, dnsmasq-powered DHCP/DNS, per-device routing, and an agent-friendly validation workspace.

Canonical page: https://www.reposhelf.co.uk/projects/github/ytwsy/opensurge-for-mac.html

- Project ID: YTwsy/OpenSurge-for-Mac
- Source: GitHub
- Original project: https://github.com/YTwsy/OpenSurge-for-Mac
- Description attribution: project author metadata
- Categories: Other, Apple
- Technologies: Go
- Licence: GPL-3.0
- Repository availability checked: 2026-11-03T01:28:23.787Z
- Demo page loaded: 2026-11-23T18:34:08.545Z

Distributing the software or derivatives can require sharing source under the same licence.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> 把 Mac 变成可按设备分流的 Surge 风格全屋透明代理网关——既可让指定设备通过旁路由手动接入，也支持 DHCP/DNS 自动接管与实验性下游 IPv6 接管

> OpenSurge for Mac 是一个开源的 Surge 风格 macOS 网关与控制面。多数用户可以先从 旁路由模式开始：主路由 DHCP 保持开启，只让需要接入的设备使用稳定 IPv4，并把网关和 DNS 指向 Mac。需要让同一局域网的设备自动接入时，也可以选择局域网 DHCP 接管；有独立 AP、SSID 或 VLAN 时，则可以使用独立下游 LAN。三种模式均可按需启用实验性的 IPv6 接管。

> 无论采用哪种模式，你都可以为已登记设备配置不同的出口策略：手机和 Mac 一起走规则 分流、游戏机连美服、电视走流媒体节点。在局域网 DHCP 接管和独立下游 LAN 模式下， 接入相应网络的手机、电视、PS5 和 VR 设备，都可以自动从 Mac 获取 DHCP/DNS，无需逐台 修改网关和 DNS。

- 导入已有的 mihomo 配置或订阅是可选能力；默认折叠的全局附加配置可以单独添加节点、
- Web GUI 实时展示每台设备的连接、上下行流量和实际出口链；菜单栏随时查看网关状态与恢复提醒。
- 菜单栏与 Web GUI 提供默认关闭、仅本次运行有效的合盖保持运行开关。

## Author-documented requirements and audience

> 把 Mac 变成可按设备分流的 Surge 风格全屋透明代理网关——既可让指定设备通过旁路由手动接入，也支持 DHCP/DNS 自动接管与实验性下游 IPv6 接管





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/YTwsy/OpenSurge-for-Mac/blob/master/README.md

Extraction checked: 2026-10-28T00:32:48.585Z

Last recorded source update: 2026-11-02T11:12:49.000Z

Saved release: v0.3.0 — 2026-10-02T17:23:02.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=YTwsy%2FOpenSurge-for-Mac). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
