Windows 10 and 11 · x64 or ARM64 · macOS 13.6 or later · Apple silicon or Intel
Install · What it does · Two ways out · From v2rayN · What's new · Site · Русский
V2pn is a VPN client for the servers your provider gives you: VLESS, VMess, Trojan, Shadowsocks, Hysteria2, TUIC and WireGuard. Inside, it runs v2rayN with the Xray, sing-box and mihomo cores, so every server and subscription that works in v2rayN works here. On top, it is one window: pick a country, choose Proxy or VPN, decide what goes through the VPN, press Connect.
Note
V2pn does not sell or provide servers. You need a subscription link from a VPN provider, or a server of your own.
The mark is a road seen from above: one way in, two ways out. Two choices under the Connect button decide which way your traffic takes.
What goes through the VPN. Change it at any time, connected or not.
| Preset | Direct | Through your server |
|---|---|---|
| Russian sites direct · recommended | Banks, Gosuslugi and .ru sites |
Everything else, blocked .ru sites too |
| Only blocked sites | Everything else | Blocked sites, YouTube, Discord, Telegram and AI services |
| Everything through VPN | — | All traffic; some banks and Gosuslugi may refuse a foreign IP |
An ad and tracker blocker is one switch in the same menu and works with all three. Your own rule sets are there too; no rule editor is needed for the presets.
Proxy or VPN. Proxy turns on the system proxy: browsers and programs that use it go through the server. VPN routes all traffic of the computer, games included; it needs administrator rights on Windows and your password on macOS.
Open Terminal (Win+X → Terminal) and run:
irm https://github.com/Piwqust/V2pn/releases/latest/download/install.ps1 | iexThe script downloads the newest version, checks it against the release's list of files, installs it to %LOCALAPPDATA%\Programs\V2pn, adds Start menu and desktop shortcuts and starts V2pn. No administrator rights, no SmartScreen window. If v2rayN is on the computer, V2pn takes its servers and settings right away.
Install by hand, or a portable copy
- Download V2pn-windows-x64-setup.exe (ARM64 for Windows on ARM).
- Run it. Windows may show “Windows protected your PC”, because the app has no paid developer signature: press More info, then Run anyway.
- The installer puts V2pn into
%LOCALAPPDATA%\Programs\V2pnfor your Windows user, with no administrator rights, adds it to the Start menu (and to the desktop, if you leave that ticked) and offers to take your servers from v2rayN.
Portable: V2pn-windows-x64.zip (ARM64) is the same app. Unpack it into a folder you can write to (not Program Files: settings and servers are kept next to the program) and run V2pn.exe.
.NET does not need to be installed; it is inside.
Open Terminal (Applications → Utilities → Terminal) and run:
curl -fsSL https://github.com/Piwqust/V2pn/releases/latest/download/install.sh | bashThe script picks the build for your Mac, checks it against the release's list of files, puts V2pn into Applications and opens it, without the “unverified developer” warning. If v2rayN is on the Mac, V2pn takes its servers and settings right away.
Install by hand
- Download the build for your Mac: Apple silicon (M1 and later) or Intel. Not sure which? Apple menu → About This Mac: “Chip Apple M…” is Apple silicon, “Processor Intel” is Intel.
- Open the
.dmgand drag V2pn to Applications. - Start V2pn. macOS says it cannot verify the developer: the app is not signed with a paid Apple certificate. Open System Settings → Privacy & Security, scroll down and press Open Anyway next to V2pn. This is needed once.
If there is no Open Anyway, run xattr -cr /Applications/V2pn.app in Terminal and start V2pn again.
On a Mac
- V2pn has an icon in the menu bar and can keep running there with the window closed: Settings → General → “Hide to tray when closing the window”. ⌘+Q quits.
- VPN mode asks for your Mac password: it creates a network interface, which macOS allows only to an administrator.
- Settings and servers are in
~/Library/Application Support/V2pn. - The macOS build is new: an automated check builds it and starts it on a Mac, but few people have used it on real machines yet. If something does not work, open an issue.
- Copy the subscription link from your VPN provider, or a server link such as
vless://…. - In V2pn press Paste from clipboard (Ctrl+V, on a Mac ⌘+V).
- Pick a server in the list or on the map and press Connect.
At the first start V2pn asks for the language (English or Russian) and walks you through these steps. If your provider's bot or site has a Connect in V2pn button, press it instead: V2pn adds the subscription itself.
Tip
For providers. A provider who works with V2pn gets a tab of their own in the title bar, with their mark, colours, plan and only their servers. One form, no keys, no hosting, no separate build: v2pn.angleford.co/providers · the guide.
From the terminal and AI assistants. v2pnctl comes with V2pn, and the Windows installer, install.ps1, winget and Homebrew put it on the PATH: v2pnctl status, v2pnctl servers, v2pnctl use Frankfurt, v2pnctl connect, v2pnctl route all, v2pnctl --help for the rest. v2pnctl mcp is an MCP server for Claude Code, Claude Desktop, Cursor and the like: claude mcp add v2pn -- v2pnctl mcp. It is off until you turn it on in Settings → General → “Control from the command line and AI”, as read only or with control; V2pn shows every change it makes and never gives out links, addresses or keys.
V2pn keeps its data in the same files as v2rayN, so moving takes one button. When a v2rayN with servers is on the computer, V2pn offers Move from v2rayN at its first start: servers, subscriptions, routing and settings. Later it is in the ☰ menu → Tools → Move from v2rayN…. The one-command install moves them by itself.
- v2rayN is closed and no longer starts with the system. Its own files stay as they are, so you can go back to it.
- What V2pn had before the move is kept in
guiTemps\V2pnImportBackup-<date>. - Cores V2pn lacks are taken from v2rayN's folder.
- On Windows V2pn finds v2rayN by its sign-in entry, a running copy, the WinGet and Scoop folders,
%LOCALAPPDATA%\v2rayN, and in Downloads, Desktop, Documents and Program Files. - A v2rayN running as administrator cannot be closed by V2pn; it then asks you to quit v2rayN from its tray icon.
- The status tells the truth. “Connected” appears after a successful connection check, not after the button is pressed. If the core dies, V2pn restarts it; after five failures in a row it disconnects and says why.
- The internet stays after exit. The system proxy is set only while the core runs and is cleared on exit, shutdown and a crash. A proxy set by another program is left alone.
- A busy port is named. If another program holds the port, V2pn does not start on top of it and says so.
- Settings in plain words. The everyday options fit on one page. Routing rules, DNS, cores and custom configs are still there, under “More settings” and “Advanced settings”.
- It updates itself, with signed packages and a rollback (see below).
Every six hours V2pn checks for a new version, downloads it in the background and installs it at the next start or when you press Restart and update. A running connection is never cut by an update. Automatic installation can be turned off in the Updates window.
- Every release is signed with a key whose public half is built into the app. V2pn will not install a package without that signature, a changed one or an incomplete one, wherever it was downloaded from.
- If the new version does not start, the installer puts the previous one back.
- Settings, servers and cores are not touched by an update.
- Cores (Xray, sing-box, mihomo) and site lists are updated separately in the same window.
What exactly is checked before installing: docs/V2PN-RELEASES.md.
Keyboard
| Windows | macOS | |
|---|---|---|
| Paste a server or subscription | Ctrl+V | ⌘+V |
| Search servers | Ctrl+F | ⌘+F |
| Home, Countries, Subscriptions | Ctrl+1 … 3 | ⌘+1 … 3 |
| Add the selected server to favorites | Ctrl+B | ⌘+B |
| Test ping of all servers | Ctrl+Shift+R | ⌘+Shift+R |
| Scan a QR code on the screen | Ctrl+S | |
| Settings | Ctrl+, | ⌘+, |
| Restart the connection | F5 | F5 |
Uninstall
- Windows, installed with the setup: Settings → Apps → Installed apps → V2pn. It asks whether to keep your servers and settings for a later install.
- Windows, installed with the command or unpacked from the zip: quit V2pn from its tray icon, then delete
%LOCALAPPDATA%\Programs\V2pn(or the folder you unpacked it to) and its shortcuts. Settings and servers are inside that folder. - macOS: quit V2pn, move it from Applications to the Bin, and delete
~/Library/Application Support/V2pn.
You need the .NET 10 SDK.
git clone --recursive https://github.com/Piwqust/V2pn.git
dotnet build V2pn/v2rayN/v2rayN.Desktop/v2rayN.Desktop.csproj -c Release
dotnet test --project V2pn/v2rayN/ServiceLib.Tests/ServiceLib.Tests.csproj -c ReleaseThe sources live in the v2rayN/ folder: the name is kept from the original so that its updates merge without conflicts. For the same reason the root holds v2rayN's package-*.sh scripts; V2pn does not use them.
A build from source shows its version with -dev and does not update itself. Release packages are made by tools/release.ps1 (Windows) and tools/package-macos.sh (macOS); the screenshots come from a sandbox with the demo subscription in tools/demo.
| Developer docs | |
|---|---|
| docs/V2PN-UX.md | How the interface is built and why |
| docs/V2PN-RELEASES.md | Releases, updates, the mirror, merging v2rayN |
| docs/partners/README.md | Provider tabs: the form, the headers V2pn reads, the partner file |
| CHANGELOG.md | What changed in each version, with pictures |
GPL-3.0, the same as v2rayN. V2pn is a fork of 2dust/v2rayN: connecting, protocols, subscriptions and core handling are the work of its authors. Cores: Xray-core, sing-box, mihomo. Icons: Lucide; the Apple logo on the download button is from Simple Icons.
Found a security problem? See SECURITY.md. Something does not work? Open an issue.







