ALightVPN setup guides

macOS: connect with the ALightVPN console

Install OpenVPN separately, then use the console to provision your API key, request an OpenVPN profile, and connect. These instructions cover the console package rather than a native Mac desktop app.

1. Install OpenVPN with Homebrew

If Homebrew is not installed, follow the installation instructions at brew.sh. Then run the OpenVPN formula's install command in Terminal:

brew install openvpn
printf '%s\n' "$(brew --prefix openvpn)/sbin/openvpn"
"$(brew --prefix openvpn)/sbin/openvpn" --version

Keep the executable path returned by the Homebrew prefix. Typical locations are /opt/homebrew/opt/openvpn/sbin/openvpn on Apple Silicon and /usr/local/opt/openvpn/sbin/openvpn on Intel. Package and macOS support depend on Homebrew's current formula; if it cannot install on your Mac, ask support for a compatible OpenVPN build.

2. Select and verify the console package

Open Apple menu → About This Mac. Choose alightvpn-console-osx-arm64.zip for an Apple Silicon chip, or alightvpn-console-osx-x64.zip for an Intel processor. Download the listed package and its matching checksum from ALightVPN Downloads.

This example uses Apple Silicon. Substitute the x64 archive name for an Intel Mac. Run it from the folder containing the download and checksum:

shasum -a 256 -c alightvpn-console-osx-arm64.zip.sha256
mkdir -p alightvpn-console
unzip alightvpn-console-osx-arm64.zip -d alightvpn-console
cd alightvpn-console
chmod +x alightvpn

Continue when verification reports OK. If no checksum file is provided, compare shasum -a 256 alightvpn-console-osx-arm64.zip with the hash published for that release. Console release packages are self-contained and do not require a separate .NET runtime.

3. Start ALightVPN and provision a key

sudo -v
./alightvpn

Run the console as your normal Mac user. It uses sudo to launch OpenVPN when necessary.

  1. First run opens API Key Setup. The console generates a public key and attempts to copy it. If that fails, copy the printed value.
  2. Keep the console session open. In your browser, sign in and open API Keys.
  3. Enter an optional label such as Mac laptop, paste the public key, and select Generate API Key.
  4. Copy the encrypted transfer. Return to Terminal and press Enter at the blob prompt to read the clipboard, paste the whole transfer, or enter the full path of its downloaded .key file without surrounding quotes.
  5. Wait for Credentials saved. See the API-key guide for replacing keys or recovering from a lost setup session.

4. Connect and disconnect

  1. At the menu, enter o if OpenVPN was not detected. Enter the executable path from step 1, without shell quotes or a sudo prefix. The app expects a file path rather than a shell command.
  2. Enter c to request a profile and connect. Wait for the connected message.
  3. Enter t to run diagnostics, then confirm website access and name resolution.
  4. Enter c again to disconnect or q to quit normally. Disconnecting also requests revocation of the current assigned profile.

Save a profile instead of connecting

Enter s and choose a permitted save path, such as the suggested file in the current directory. Import the saved .ovpn file into a compatible OpenVPN client if you prefer to connect there. Saving the file does not establish a tunnel. Requesting another profile from the console can revoke the previously exported profile.

Other console commands

Use r to revoke the current profile, p to re-provision your API key, d to toggle DNS mode for the next request, and l to toggle logging. The complete console menu reference is the same on Linux and macOS.

Troubleshooting