Description
WGRest is a REST API server for WireGuard. It runs on Linux and manages WireGuard by talking to it directly through IPC, so it needs no extra dependencies. Its configuration is stored in standard wg-quick files under /etc/wireguard, so it stays compatible with the usual WireGuard tools. The API covers creating, updating and deleting interfaces, and full create, read, update and delete for peers with search and sorting. You can bring interfaces up and down through the API, and download a peer's configuration as a quick.conf file. The server supports automatic Let's Encrypt certificates through ACME, and it authenticates with a bearer token. A Swagger UI at /docs/ documents the API. It is designed to be small and light enough for routers and other low-power devices. It requires the WireGuard kernel module and the wireguard-tools package, which provides the wg and wg-quick commands. The README lists its environment variables, including the config file path, the listen address, the WireGuard config directory, the certificate directory, the config dump interval, and the static token and TLS domains. It suits administrators who want to manage WireGuard peers from scripts or a web panel.…
Highlights
- REST API for WireGuard interfaces and peers
- Works through IPC with no extra dependencies
- Standard wg-quick config files
- Automatic Let's Encrypt certificates
- Swagger UI documentation
Ratings & Reviews
No ratings yet
Be the first to rate Wgrest.
People also visit
Wgrest FAQ
What is WGRest?
A REST API server for managing WireGuard on Linux.
What does it need?
Linux with the WireGuard kernel module, and the wireguard-tools package for wg and wg-quick.
How is the API secured?
With a bearer token set in the configuration, and optional automatic Let's Encrypt certificates through ACME.
Where are configurations stored?
In standard wg-quick .conf files in /etc/wireguard by default, so the usual WireGuard tools still work.
Is the API documented?
Yes. A Swagger UI is served at /docs/.
What are the best Wgrest alternatives?
Popular alternatives to Wgrest include MTWireGuard, WireGuard Config Generator and Openvpn Webpanel Manager. See all Wgrest alternatives

