WireGuard config generator

Generate a WireGuard key pair and a starter config entirely in your browser — the same client-side key generation vpn.golf uses.

How to use the wireguard config generator

  1. Press Generate to create a key pair locally.
  2. Fill the [Peer] section with your server's public key and endpoint.
  3. Download wg0.conf and import it into the WireGuard app.

What to do with this

Fill in the [Peer] section with your server's public key and endpoint (vpn.golf does this for you when you play a hole), import the file into the WireGuard app, and connect. New to this? See our setup guide.

Code & API examples

Use this from the command line or your code.

Keys with the wg CLI
wg genkey | tee privatekey | wg pubkey > publickey

See all endpoints at /api/tools/.

Frequently asked questions

Only if the keys are generated in your browser and never transmitted — which is how this tool works. The private key never leaves your device.

Your server's public key and endpoint. With vpn.golf, that's filled in automatically when you play a hole.
Want to hide your IP for real?

vpn.golf is a no-logs WireGuard VPN. Pick a hole, take the shot.

Step up to the tee — free