Skip to content

CouldNot/beacon

Repository files navigation

Beacon icon

Beacon

Beacon is a native macOS VPN client for the Xray-core and sing-box proxy engines. It is a fork of faustyu1/veil and brings a modern SwiftUI interface to V2Box and V2rayN-style clients.

Beacon works on macOS Sonoma 14 or higher.

Contents

Features

  • Support for Xray-core (VLESS, VMess, Trojan, Shadowsocks) and sing-box (Hysteria2, TUIC, WireGuard, AnyTLS)
  • Reality & TLS, XTLS Vision flow, VLESS encryption
  • System Proxy and TUN (all traffic) modes
  • Subscription and QR code import/export
  • Menu-bar window
  • Latency testing

Install (from a release)

  1. Download Beacon.app.zip from the Releases page.
  2. Unzip and move Beacon.app to /Applications.
  3. Important: the app is not notarized. If MacOS gives a warning about not being able to open the app, navigate to Settings > Privacy & Security and press "Open Anyways." If Gatekeeper still blocks it, run xattr -cr /Applications/Beacon.app to clear the quarantine flag.

Build from source

git clone <your-repo-url> beacon
cd beacon

# Fetch the bundled cores (architecture detected automatically)
Scripts/fetch-xray.sh
Scripts/fetch-singbox.sh
Scripts/fetch-tun2socks.sh

# Optional: regenerate the app icon
Scripts/make-icon.sh

# Build, package into Beacon.app, and launch
Scripts/run-app.sh release

Note that a plain swift run will not show a window. MacOS needs the .app bundle that run-app.sh assembles.

Tests

swift test

Usage

  • Add servers with a subscription URL or by pasting share links. You can also import from a QR code.
  • Pick between proxy and TUN mode, which routes your traffic through only the browser or through all apps respectively.
  • Click a server to select it or switch. The connect button and menu bar item act on the currently selected server.
  • Set routing under Settings > Routing > Configure. Choose a preset or build your own rules.

Acknowledgements

About

Native macOS client for Xray-core and singbox

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages