a client for vpngate.net
  • Go 96.6%
  • Nix 2%
  • Just 1.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-09-01 03:26:06 +00:00
.github/workflows chore(deps): update extractions/setup-just action to v4 (#206) 2026-08-12 08:09:36 -04:00
cmd feat(connect): simplify server selection list with flag emoji 2026-07-27 19:32:57 -04:00
docs docs: update usage documentation [skip ci] 2026-09-01 03:26:06 +00:00
pkg feat(connect): simplify server selection list with flag emoji 2026-07-27 19:32:57 -04:00
test_data Add parsing tests (#17) 2021-01-30 18:38:52 -05:00
tools/gendocs docs: generate per-command CLI reference into docs/cli/ 2026-07-22 00:15:15 -04:00
.envrc record new demo gif 2026-07-27 20:01:37 -04:00
.gitignore chore(deps): update dependency go to v1.26.0 (#169) 2026-02-14 07:38:10 -05:00
.goreleaser.yaml feat(release): add winget packaging for Windows 2026-07-22 17:22:58 -04:00
AGENTS.md chore: migrate Makefile to justfile 2026-07-27 19:18:55 -04:00
CHANGELOG.md docs(changelog): release 0.7.0 2026-07-27 20:04:24 -04:00
flake.lock record new demo gif 2026-07-27 20:01:37 -04:00
flake.nix fix(deps): update module github.com/stretchr/testify to v1.12.1 (#208) 2026-08-31 23:25:32 -04:00
go.mod fix(deps): update module github.com/stretchr/testify to v1.12.1 (#208) 2026-08-31 23:25:32 -04:00
go.sum fix(deps): update module github.com/stretchr/testify to v1.12.1 (#208) 2026-08-31 23:25:32 -04:00
justfile chore: migrate Makefile to justfile 2026-07-27 19:18:55 -04:00
LICENSE Update LICENSE (#29) 2021-04-04 10:38:39 -04:00
main.go Add initial prototype (#1) 2020-12-31 02:56:01 -05:00
README.md docs(readme): restore winget installation instructions 2026-08-31 10:18:37 -04:00
renovate.json Change Renovate schedule to 1st day of the month 2026-06-06 07:29:01 -04:00
vpngate.gif record new demo gif 2026-07-27 20:01:37 -04:00

vpngate

This is a client for vpngate.net.

vpngate

This client fetches the list of available relay servers provided by vpngate.net, and allows you to filter and connect to a server of your liking.

You can check out your current IP address and region at https://ipinfo.io/json, or run the following:

curl ipinfo.io

Requirements

  • OpenVPN
  • macOS, Linux, or Windows

Install

Check out vpngate-mac for a native macOS Client

You can install vpngate in a few different ways, and it will differ slightly depending on your OS.

Homebrew (macOS and linux)

vpngate can be installed with homebrew (if on macOS, ensure that xcode is installed before installing homebrew by running xcode-select --install).

brew install openvpn davegallant/public/vpngate

Windows

vpngate can be installed with winget, which also installs OpenVPN as a dependency:

winget install davegallant.vpngate

Alternatively, install OpenVPN from the official website, then manually download and extract the Windows release from the relevant Github release.

Once the release is extracted, open Command Prompt as Administrator, and run vpngate.exe from the location where it was extracted.

image image

Build from source

Ensure that go is installed.

CGO_ENABLED=0 go get github.com/davegallant/vpngate

Ensure that the go bin path is discoverable:

echo 'export PATH=$PATH:$HOME/go/bin' >> ~/.profile
source ~/.profile

Usage

For full usage instructions, see the cli docs.

If on macOS, you may need to add openvpn to your PATH (if you installed it with brew): export PATH=$(brew --prefix openvpn)/sbin:$PATH

Examples

Run in the background, then check on it, tail its log, or disconnect later. status, logs, and disconnect need sudo too, since the daemon's state is only readable by the user that ran connect -d (root):

sudo vpngate connect -d --country Japan
sudo vpngate status
sudo vpngate logs -f
sudo vpngate disconnect

List Japanese servers sorted by lowest ping:

vpngate list --country Japan --sort ping

List high-scoring US servers as JSON:

vpngate list --country us --min-score 1000000 --output json

Connect to a random server with quality filters:

sudo vpngate connect --random --country Japan --max-ping 100 --min-score 500000

Refresh the cached server list before listing:

vpngate list --refresh

Bypass the cache entirely:

vpngate list --no-cache

Inspect or clear the cache:

vpngate cache path
vpngate cache clear

Notes

  • I do not maintain any of the servers on vpngate.net (connect to these servers at your own discretion)
  • Many of the listed servers claim to have a logging policy of 2 weeks