anyhop
A universal VPN client that manages multiple VPN connections with rule-based routing, with interfaces for human (Web UI and CLI) and programs (REST API and Docker image).
Platforms
Supported
Docker |
CLI |
Web UI |
Planned
|
macOS |
Linux |
Windows |
OpenWrt (LuCI) |
VPN Providers
Supported
NordVPN |
Proton VPN |
Planned
ExpressVPN |
Surfshark |
CyberGhost |
PIA |
Windscribe |
IPVanish |
Mullvad |
PureVPN |
VyprVPN |
HideMyAss |
VPN Unlimited |
PrivadoVPN |
TorGuard |
PrivateVPN |
FastestVPN |
IVPN |
AirVPN |
VPN.ac |
VPNSecure.me |
SlickVPN |
See VPN provider research for setup archetypes, provider-specific constraints, and excluded providers.
Web UI
Why anyhop
For people
You already pay for a commercial VPN — but its official client connects to one location at a time. Switching countries means disconnecting, reconnecting, and breaking whatever was using the old exit. Two locations at once is not on offer.
anyhop keeps several exits live simultaneously, from one provider or mixed across
providers. Different traffic leaves through different VPN servers, decided by
anyhop's routing rules:
For programs
Every action the CLI performs is also a REST call, and each exit is a stable
127.0.0.1:<port> proxy. So another program can drive the whole lifecycle of
many VPN connections — create, probe, rotate, retire — on its own schedule,
with no human clicking a client. That is what makes proxy rotation across
regions, and reaching geofenced resources from wherever they are served,
something you can script.
It also ships as a container image (ghcr.io/anyhop/anyhop)
so a compose stack can add it as one service and let sibling containers reach
the internet through whichever exit the rules pick.
You may also have heard of gluetun or vopono — anyhop and gluetun and anyhop and vopono compare anyhop to each.
What anyhop does
anyhop runs multiple VPN exits side by side, each its own local HTTP+SOCKS
proxy. One router entrypoint sends traffic by rule to an exit, straight out, or
nowhere at all — see Rule-based routing. For a whole-machine
VPN through those same rules there is an optional TUN mode (anyhop tun on,
one-time privilege grant): CLI reference,
runbook.
The runtime model — one sing-box process, state, ports, probes — is in
How it works. What is supported today is in
Current status.
For AI Coding Agents
anyhop for agents — copy-paste to your coding agent to teach them how to use anyhop. It carries the model, the facts that change how the code is written, and links it can fetch on demand.
Quick Start
For macOS + Linux: installs anyhop and its user-level login service
curl -LsSf https://github.com/anyhop/anyhop/releases/latest/download/install.sh | sh
Then add a VPN provider (use NordVPN as example) and create a connection ("channel").
anyhop providers add nordvpn # will ask you for NordVPN token
anyhop channels add nordvpn --country "United States"
anyhop start
anyhop channels ls # prints each channel's local proxy port
Homebrew, uv, pipx, Docker, the checksum-verified manual install, and the
uninstaller are all in Getting started; container
deployments are in Docker.
Documentation
Using anyhop
- Getting started — install, quick start, provider setup, everyday commands, channel enable/disable.
- Rule-based routing — the router entrypoint: rulesets, first-match priority, kill-switch, built-in LAN bypass.
- Web UI — the browser dashboard (
anyhop ui): pages, sign-in, remote access over SSH. - CLI reference — every command, flag, and environment variable.
Automating anyhop
- anyhop for agents — the entry point to hand a coding agent: model, minimal call set, failure modes, progressive links.
- REST API — the
/api/v1contract: everything the CLI can do, over HTTP with Bearer auth. Loopback by default; opt-in network exposure for compose siblings. Machine-readable spec: openapi.yaml. - Declarative setup and the bundle format — the whole setup (providers, channels, rules) as one YAML file: backup/restore, startup config, secret indirection.
Deploying anyhop
- Docker — image design, proxy hub, VPN gateway container (tun), trust boundaries.
- Docker Compose walkthrough — bundle authoring, secrets, managing anyhop from a sibling container, day-2 operations, troubleshooting.
- TUN runbook — whole-machine capture: privilege models per platform, verification, rollback.
Understanding anyhop
- How it works — the runtime model: one sing-box, state, ports, probes.
- Current status — supported providers and platforms, feature matrix, what is planned, and the non-goals.
- Security model — trust boundaries, credential handling, Web UI/API hardening, fail-closed routing.
- VPN provider research — which providers can be supported next, and why some can't.
- anyhop and gluetun — how the two differ, and how to choose between them.
- anyhop and vopono — request-level routing vs. per-process network-namespace isolation.
Security and privacy
See the Security model.
License
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file anyhop-0.1.18.tar.gz.
File metadata
- Download URL: anyhop-0.1.18.tar.gz
- Upload date:
- Size: 1.4 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f32a799e4a0c74257644df68f29d45ad2a2f1670cbe7be0d13b8c3671ed563a
|
|
| MD5 |
8c9aa7a62ee24c16a536a7795ca71a46
|
|
| BLAKE2b-256 |
b6a41b43d0e792c2d05e939ff7f41ed9376abe92d01e4e5901fc0c470f8e7a31
|
Provenance
The following attestation bundles were made for anyhop-0.1.18.tar.gz:
Publisher:
publish.yml on anyhop/anyhop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anyhop-0.1.18.tar.gz -
Subject digest:
9f32a799e4a0c74257644df68f29d45ad2a2f1670cbe7be0d13b8c3671ed563a - Sigstore transparency entry: 2756197026
- Sigstore integration time:
-
Permalink:
anyhop/anyhop@ceee4130ee1ec6626de6e43c7c00b5c5bdc94d06 -
Branch / Tag:
refs/tags/v0.1.18 - Owner: https://github.com/anyhop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ceee4130ee1ec6626de6e43c7c00b5c5bdc94d06 -
Trigger Event:
push
-
Statement type:
File details
Details for the file anyhop-0.1.18-py3-none-any.whl.
File metadata
- Download URL: anyhop-0.1.18-py3-none-any.whl
- Upload date:
- Size: 337.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c746b90e73d1b996381fa97a3cc1ae6ab1ff8f52030a4d64cae263b7284ed1c4
|
|
| MD5 |
1fc8ddbf225b7700c5321e259dfd2a15
|
|
| BLAKE2b-256 |
607c30e1cf3ef5776a94ea1beeb2694aaea772e07b74dd2e79569e1fdd1f8616
|
Provenance
The following attestation bundles were made for anyhop-0.1.18-py3-none-any.whl:
Publisher:
publish.yml on anyhop/anyhop
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
anyhop-0.1.18-py3-none-any.whl -
Subject digest:
c746b90e73d1b996381fa97a3cc1ae6ab1ff8f52030a4d64cae263b7284ed1c4 - Sigstore transparency entry: 2756197046
- Sigstore integration time:
-
Permalink:
anyhop/anyhop@ceee4130ee1ec6626de6e43c7c00b5c5bdc94d06 -
Branch / Tag:
refs/tags/v0.1.18 - Owner: https://github.com/anyhop
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ceee4130ee1ec6626de6e43c7c00b5c5bdc94d06 -
Trigger Event:
push
-
Statement type: