wg-interactive
is a command line tool for initializing WireGuard server configuration files as well as adding and deleting peers interactively.
Install the module from PyPI:
pip install wg-interactive
Launch wg-interactive via the included command wg-interactive
.
usage: wg-interactive [-h] [-l {critical,fatal,error,warn,info,debug}] [-d DIRECTORY]
An interactive command line tool for modifying and initializing WireGuard server configuration files and adding/deleting peers.
options:
-h, --help show this help message and exit
-l {critical,fatal,error,warn,info,debug}, --logging {critical,fatal,error,warn,info,debug}
Set the log level (default: info)
-d DIRECTORY, --directory DIRECTORY
WireGuard config directory (default: /etc/wireguard)
Initialize a local python virtual environment:
mkdir .venv
pipenv install
Then build the package:
pipenv shell
python -m build
This application uses Open Source components. You can find the source code of their open source projects along with license information below. We acknowledge and are grateful to these developers for their contributions to open source.
WireGuard is a registered trademark of Jason A. Donenfeld.
- Copyright (c) 2020-2025 Dirk Henrici.
- AGPL3 license
- Copyright (c) 2008-2011 Volvox Development Team.
- MIT license
- Copyright (c) 2022 Samuel Yvon.
- MIT license