Find a proxy/VPN
EN RU
SELF-HOSTED · CHECKED AGAINST AMNEZIA DOCS · NOVEMBER 2026

AmneziaWG on your own server: installing Amnezia VPN on a VPS

In short: to run Amnezia VPN on your own server you need a KVM VPS with Ubuntu 22.04/24.04 or Debian 12/13, an x86-64 CPU, 1 GB of RAM and a public IPv4. The AmneziaVPN app connects over SSH and installs AmneziaWG itself — no commands to type. Below — the official server requirements, the setup in the app step by step, two community alternatives (Docker with a web panel and a one-script install), how to share keys with family and when Amnezia Premium is the easier choice.

✍ BestProxyHub Team · 🗓 09/11/2026 · ⏱ 10 min read

HOW IT IS BUILT

The app needs the server’s IP, the SSH user and a password or key once. After that it manages the server for you: protocols, users and keys.

BEFORE YOU RENT A SERVER

Amnezia VPN on your own server: what you gain and what you take on

A self-hosted server gives you an IP address that nobody else uses, full control over who connects, and no device limit beyond what the server can handle. Amnezia’s own guidance: one core and 1 GB of RAM is the minimum, and for ten or more simultaneous connections it suggests 2 GB and two vCPUs.

The other side is maintenance. When the protocol changes — as with the move from AmneziaWG 2.0 to 3.1 — you remove the old version, install the new one and send everyone new keys. If the hosting provider’s IP range gets slowed down, you move to another server yourself.

So the honest rule is simple: a self-hosted server suits people who are comfortable renting a VPS and checking on it now and then; if you just want a working VPN on your phone today, the paid Amnezia Premium does the same job on Amnezia’s servers.

The app is free, the server is not

AmneziaVPN costs nothing for self-hosting; you pay only the VPS provider, at its own prices.

CHECK BEFORE PAYING

VPS for Amnezia VPN: official requirements

From the “VPS requirements” page of docs.amnezia.org, November 2026. A server that misses one of these lines may fail to install.

ParameterWhat you needNote
SystemUbuntu 22.04 / 24.04 or Debian 12 / 13Officially supported; Ubuntu 20.04, Debian 11, Fedora 42/43 should also work
VirtualisationKVMOpenVZ and LXC containers won’t work
CPUx86-64 (amd64), 1 core or moreARM (aarch64) servers are not supported
Memory and disk1 GB RAM, 10 GB SSD2 GB RAM and 2 vCPU for 10+ connections
AddressPublic IPv4IPv6-only servers are not supported
AccessSSH: root or a sudo user without a password promptPassword or private SSH key from the hosting
SoftwareNothing pre-installedNo control panel needed; systemd is required
OFFICIAL WAY

How to install Amnezia VPN on a VPS: 6 steps in the app

This is the route from Amnezia’s “Set up a self-hosted VPN” guide. You don’t open a terminal: the app sends the commands over SSH.

  1. Rent a suitable VPS

    KVM, x86-64, Ubuntu 22.04/24.04 or Debian 12/13, a public IPv4. The provider emails the IP, the user (usually root) and a password or key.

  2. Update AmneziaVPN

    Install the latest version from the official download page — for AmneziaWG 3.1 you need 5.0.1.5 or newer.

  3. Choose “Self-hosted VPN”

    Press the plus or “Get started” and pick the self-hosted option. Enter the IP (add :port if SSH is not on 22), the user and the password or key.

  4. Pick automatic setup

    Automatic installs AmneziaWG only; other protocols can be added later from the server’s Protocols tab.

  5. Change the port to one below 9999

    AmneziaWG starts on a random high port. Amnezia advises switching to a number up to 9999, such as 585 or 1234, that no other service uses.

  6. Connect and check the IP

    The app creates a connection with full access to the server. Turn it on and check that sites now see your VPS address.

OTHER WAYS

AmneziaWG server without the app: Docker panel or one script

Two community projects install an AmneziaWG server by other means. They are not made by Amnezia — check their GitHub pages and your provider’s rules before using them.

  1. The official route: SSH from the app, no terminal.
  2. Manages users, protocols and keys from your phone or PC.
  3. Best for most people and for sharing keys with family.
  1. WireGuard Easy runs in Docker and manages clients in a browser panel.
  2. Version 15.5 (October 2026) added AmneziaWG 3.1 support.
  3. Suits people already running Docker on their server.

💡 Community project, not Amnezia.

  1. amneziawg-installer by bivlked: one bash script, kernel module, no Docker and no web panel.
  2. Ubuntu 24.04 / 26.04 or Debian 13 (kernel 6.7+ for 3.1), KVM on x86-64; about 15–25 minutes with two reboots.
  3. Creates two sample clients at the end.

💡 Community project, not Amnezia.

FOR FAMILY AND FRIENDS

How to share your Amnezia server: keys, files and revoking

  1. Open “Share”

    From your full-access connection press the Share icon on the bottom bar and pick the protocol for the guest.

  2. vpn:// key for AmneziaVPN

    Send it as a file, text or QR code. It works in the AmneziaVPN app, not in the AmneziaWG app or on a router.

  3. .conf file for AmneziaWG and routers

    The native format: a file or copied parameters for the AmneziaWG app or a Keenetic router. There is no QR code for it.

  4. One guest key — one device

    A guest key only connects to the VPN and can’t manage the server. A leaked key shows your server’s IP and uses its bandwidth.

  5. Revoke when needed

    Share → Users → pick the server and protocol → the user → Revoke. Full-access keys can’t be revoked, so keep them to your own devices.

NO SERVER TO LOOK AFTER

Own server or Amnezia Premium: who does the work

Both run on the same AmneziaWG protocol. The difference is who rents the server, updates it and moves to a new one when needed.

With your own VPS you…

  • pick and pay for the hosting yourself
  • have one server and one country
  • reinstall the protocol after big updates
  • reissue keys to everyone after a reinstall

Amnezia Premium gives you

  • AmneziaWG 3.1 by default, updated by Amnezia
  • 50+ locations to switch between
  • Up to 7 devices on one subscription
  • From $3.50 a month on the 2-year plan, 14-day refund (amnezia.org, Nov 2026)
Get Amnezia Premium instead of a VPS →
MYTHS

Self-hosted Amnezia myths that waste an evening

❌ MYTH

Any cheap VPS will do

Hover or tap — see the fact
✅ FACT

OpenVZ/LXC containers, ARM CPUs and IPv6-only servers are not supported. Check for KVM, x86-64 and a public IPv4 before paying.

❌ MYTH

You need to know Linux commands

Hover or tap — see the fact
✅ FACT

Not with the official route: the app logs in over SSH and runs everything itself. The terminal is only needed for community scripts.

❌ MYTH

A vpn:// key works on a router

Hover or tap — see the fact
✅ FACT

Routers and the AmneziaWG app need the .conf format; the vpn:// key is for the AmneziaVPN app.

❌ MYTH

Set it up once and forget it

Hover or tap — see the fact
✅ FACT

Protocol updates such as 2.0 → 3.1 need a reinstall and new keys, and Amnezia publishes server security updates you should apply.

FAQ

Common questions

How do I set up Amnezia VPN on my own server?

Rent a KVM VPS with Ubuntu 22.04/24.04 or Debian 12/13 and a public IPv4, open AmneziaVPN, choose the self-hosted option, enter the IP, SSH user and password or key, and pick automatic setup — the app installs AmneziaWG.

Which VPS is suitable for Amnezia?

KVM virtualisation, an x86-64 CPU with at least 1 core, 1 GB RAM (2 GB for 10+ connections), 10 GB SSD and a public IPv4. OpenVZ, LXC and ARM servers won’t work.

Can I install AmneziaWG on Ubuntu?

Yes: Ubuntu 22.04 and 24.04 are officially supported for the app-based install, and 20.04 should work too. The community script targets Ubuntu 24.04/26.04 and Debian 13.

Is there an AmneziaWG Docker image or web panel?

The community project wg-easy runs in Docker with a browser panel and supports AmneziaWG 3.1 since version 15.5 (October 2026). It is not an Amnezia product.

How do I give family access to my server?

In AmneziaVPN press Share, choose the protocol and send a vpn:// key (for the AmneziaVPN app) or a .conf file (for the AmneziaWG app or a router). One guest key works on one device and can be revoked any time.

Which port should AmneziaWG use on a VPS?

Amnezia recommends changing the random high port to any free number up to 9999, such as 585 or 1234, because some providers handle UDP on high ports badly.

Own server or Amnezia Premium — which is cheaper?

It depends on the VPS price you find. Premium costs from $3.50 a month on the 2-year plan for up to 7 devices and 50+ locations, with updates handled by Amnezia; a VPS gives one location and the upkeep is yours.

A VPN without a server to maintain

Amnezia Premium runs AmneziaWG 3.1 on Amnezia’s servers: 50+ locations, up to 7 devices, 14-day refund — and 10% off with our code.

Server requirements and steps from docs.amnezia.org, checked November 2026; prices from amnezia.org, November 2026.
🎟 Coupon: AMDI•••••How to apply →
Get Amnezia Premium →
WHAT’S NEXT

Read next

Amnezia Premium
No VPS needed, −10%
Get it →
Find a proxy/VPN