⚠️ Warning!This project was written with the help of AI. I don't know Go. The code was created to solve a specific problem and might not follow all best practices.
A simple tray indicator app for Linux that lets you manage
adguardvpn-cli
. It provides a basic GUI to connect, disconnect, and
view the status, since there is no official GUI for Linux.
- Displays an icon in the system tray.
- Shows the current connection status and location.
- A "Connect" button if the VPN is disconnected, and a "Disconnect" button if it's connected.
It connects to the fastest available location, equivalent to running
adguardvpn-cli connect -f
.
- AdGuard VPN CLI: The
adguardvpn-cli
utility must be installed, and you must be logged into your account. - Go: Version 1.18 or newer.
- Terminal:
x-terminal-emulator
is used to enter the sudo password when connecting. - System Libraries (for Debian/Ubuntu):
sudo apt-get install build-essential libgtk-3-dev libappindicator3-dev
- You are expected to have already logged into your AdGuard account
using
adguardvpn-cli login
.
-
Clone the repository:
git clone https://github.com/FroggerHH/adguard-vpn-indicator.git cd adguard-vpn-indicator
-
Build the binary:
go build
-
Run the compiled application:
./adguard-vpn-indicator
-
For debugging, you can run it with the
-v
flag for verbose logging in the console:./adguard-vpn-indicator -v
After launching, an icon will appear in the system tray. Right-click on it to see the status and control menu.