wg-easy
v0.6.0Administer wg-easy (WireGuard Easy) v15: manage VPN clients, configs, QR codes and server status
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_clients List WireGuard clients
List all WireGuard clients of the wg-easy instance, including their status (enabled/expired), addresses and traffic statistics.
| Parameter | Type | Description |
|---|---|---|
filter | string | Optional name filter (substring match) |
sort | string | Sort by name, ascending or descending |
get_client Get WireGuard client
Get the full details of a single WireGuard client. The private key and pre-shared key are redacted. They are not missing from the instance — wg-easy returns them here in full, and this server removes them, because a key in the conversation is a key in the transcript. Use get_client_config or get_client_qrcode when the key is genuinely wanted: handing a peer its configuration is what those two are for.
| Parameter | Type | Description |
|---|---|---|
clientId * | Numeric ID of the client (see list_clients) |
create_client Create WireGuard client
Create a new WireGuard client. Keys and IP addresses are generated by wg-easy. Returns the new client ID. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
| Parameter | Type | Description |
|---|---|---|
name * | string | Display name of the new client |
confirm_token | string | The token from this tool’s previous, unconfirmed response. |
expiresAt | string | Optional expiry date as ISO string (e.g. 2026-12-31). Omit for no expiry. |
update_client Update WireGuard client
Update a WireGuard client. Only the provided fields are changed; all other settings are preserved. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
| Parameter | Type | Description |
|---|---|---|
clientId * | Numeric ID of the client (see list_clients) | |
allowedIps | CIDRs routed through the tunnel on the client side, or null to use the server default | |
confirm_token | string | The token from this tool’s previous, unconfirmed response. |
dns | DNS servers for the client, or null to use the server default | |
enabled | boolean | Enable or disable the client |
expiresAt | ||
ipv4Address | string | IPv4 address of the client |
ipv6Address | string | IPv6 address of the client |
mtu | integer | MTU for the client (1280–9000) |
name | string | New display name |
persistentKeepalive | integer | Persistent keepalive interval in seconds (0 = off) |
serverAllowedIps | array | Additional CIDRs the server routes to this client |
enable_client Enable WireGuard client
Enable a WireGuard client so it can connect again. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
| Parameter | Type | Description |
|---|---|---|
clientId * | Numeric ID of the client (see list_clients) | |
confirm_token | string | The token from this tool’s previous, unconfirmed response. |
disable_client Disable WireGuard client
Disable a WireGuard client. The client keeps its configuration but can no longer connect.
| Parameter | Type | Description |
|---|---|---|
clientId * | Numeric ID of the client (see list_clients) |
delete_client Delete WireGuard client
Permanently delete a WireGuard client. This is irreversible: the client loses VPN access and its keys cannot be restored. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
| Parameter | Type | Description |
|---|---|---|
clientId * | Numeric ID of the client (see list_clients) | |
confirm_token | string | The token from this tool’s previous, unconfirmed response. |
get_client_config Get WireGuard client configuration
Get the WireGuard configuration file (wg .conf format) for a client. SENSITIVE: the output contains the client private key — treat it as a secret and do not repeat it unnecessarily.
| Parameter | Type | Description |
|---|---|---|
clientId * | Numeric ID of the client (see list_clients) |
get_client_qrcode Get WireGuard client QR code
Get the client configuration as a QR code (SVG markup) for scanning with the WireGuard mobile app. SENSITIVE: the QR code encodes the client private key — treat it as a secret.
| Parameter | Type | Description |
|---|---|---|
clientId * | Numeric ID of the client (see list_clients) |
generate_one_time_link Generate one-time config link
Generate a one-time download link for a client configuration that can be shared with the end user. SENSITIVE: anyone with the link can download the full client configuration without authentication — share it only with the intended user. The link expires after five minutes. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it. If the answer says the link value could not be read back, the link still exists on the instance and is downloadable by anyone who has the URL. Say so rather than reporting that nothing happened, and point at the wg-…
| Parameter | Type | Description |
|---|---|---|
clientId * | Numeric ID of the client (see list_clients) | |
confirm_token | string | The token from this tool’s previous, unconfirmed response. |
get_server_info Get wg-easy server info
Get information about the wg-easy instance: release/update status, general settings and the WireGuard interface configuration. Secret fields (private keys, passwords) are redacted.