Getting Started
One command turns a fresh VPS into a hardened VPN server, with a built-in web panel for you and a connection page for each person. This guide takes you from zero to a working connection in a few minutes.
Someone sent you a link? You don’t need any of this: see Connecting.
Prerequisites
Section titled “Prerequisites”You need:
- A VPS running Debian or Ubuntu that you can reach over SSH with a key, as root or a user with passwordless sudo
- A terminal on your own machine (macOS, Linux, or WSL on Windows)
Install the CLI
Section titled “Install the CLI”curl -sSf https://getmeridian.org/install.sh | bashThis installs the meridian command with uv (or pipx as a fallback). See Installation for other options.
Run Meridian on your own machine rather than on the VPS: it connects over SSH, keeps credentials on your device, and lets meridian test check the server from the outside.
Coming from Meridian 3.x? Meridian 4 is not an in-place upgrade. Read Upgrading from 3.x first.
Set up your server
Section titled “Set up your server”meridian setupThe guided wizard asks for your server’s address, a camouflage site (it suggests ones that answer from the server’s network), an optional domain, and the names of the people who will connect. It shows a review before it changes anything. Progress is saved, so if it stops, run meridian setup again and it resumes. If you are logged into the VPS itself as root, give local as the address and it skips SSH.
For one server and no questions, meridian deploy does the same in one line:
meridian deploy 198.51.100.10Run meridian deploy without an IP and it asks for one; meridian deploy local runs on the VPS itself.
What happens
Section titled “What happens”- Hardens the server — SSH key-only login, fail2ban, a UFW firewall that opens only what the deployment needs, BBR congestion control
- Installs the control service and web panel — Meridian’s control service keeps your users, serves their subscriptions, and hosts the web panel; a node agent on the server runs Xray. No Docker, no third-party panel
- Picks a camouflage target — it looks for a suitable TLS 1.3 site on the server’s own network, then falls back to
www.google.com,dl.google.com, andwww.cloudflare.com.setuplets you choose from them or enter your own;deploypicks one (pass--snito choose your own) - Configures the connection methods — VLESS+Reality and XHTTP on TCP 443 behind nginx, with a Let’s Encrypt certificate for the server’s IP, and Hysteria2 on UDP 443
- Verifies real traffic — Meridian pushes traffic through the delivered subscription before it hands over the links;
deploymoves to the next camouflage target if traffic doesn’t pass - Publishes a connection page for each person and prepares your web panel
- Shows a recovery key once — keep it offline; with it, a lost control server can be rebuilt (see Backups)
Both commands are checkpointed. If one is interrupted, run it again and it finishes where it stopped.
Connect
Section titled “Connect”When it finishes, Meridian prints:
- A connection page link with a QR code — send this to the person who will connect. The page has app download links, QR codes, and one-tap “Open in app” buttons.
- A subscription URL — paste it into any Xray/V2Ray app. Apps refresh it, so new servers and relays show up automatically.
Recommended apps:
| App | Platforms |
|---|---|
| Happ | iOS, Android, Windows, macOS, Linux |
| FlClashX | Android, Windows, macOS, Linux |
| Clash Mi | iOS, Android, Windows, macOS, Linux |
| Throne | Windows, macOS, Linux |
The connection page lists these first and links more apps for each platform.
Check the server from your machine at any time:
meridian test 198.51.100.10Manage people: web panel or CLI
Section titled “Manage people: web panel or CLI”Open the built-in web panel (owner console) in your browser:
meridian panelThe first time, it prints the panel address and a one-time setup link where you choose a password. From the web panel you can add people, share their connection pages and QR codes, set expiry dates, traffic limits, and device caps, leave private notes and tags, post a notice for everyone, and check server health and monthly allowances.
Or manage people from the terminal:
meridian client add aliceEach person gets their own key, connection page, and subscription URL. meridian client list shows everyone, and meridian client disable alice cuts someone off immediately. See Client management.
Where things live
Section titled “Where things live”| What | Where |
|---|---|
| Topology, control service access, and keys | ~/.config/meridian/cluster.yml on your machine |
| Saved SSH servers | ~/.config/meridian/servers.json on your machine |
| Encrypted snapshots of the control service | ~/.config/meridian/snapshots/ on your machine |
| Users, limits, traffic, and the web panel | The control service on the VPS |
| VPN services | Xray, nginx, and the node agent on the VPS |
Client commands talk to the control service’s API recorded in cluster.yml; they don’t need SSH. meridian panel opens the same people and settings in the web panel. Back up ~/.config/meridian/ — it is how Meridian manages your servers.
More than one server
Section titled “More than one server”The same wizard builds fleets with several exits, relays through a domestic server, or routing gateways: add more servers at its first step, then say what each one does. It shows a review before it applies anything.
You can also grow a deployment one step at a time with meridian node add and meridian relay add. Every change goes through the same reviewed topology; meridian plan shows what would change and meridian apply applies it.
Separate fleets
Section titled “Separate fleets”To keep fleets apart, say one for family and one for work, give each its own context. The first deploy into a new context creates it; context use makes it current, and --context runs one command on another fleet:
meridian deploy 203.0.113.5 --context workmeridian context listmeridian context use workmeridian --context default client listYour first fleet is the default context and stays in ~/.config/meridian/; every other context keeps its own cluster.yml and saved servers in ~/.config/meridian/contexts/NAME/. Meridian’s SSH key is shared, and a server belongs to one fleet at a time. MERIDIAN_CONTEXT=NAME chooses a context for one shell; MERIDIAN_HOME pins a single fleet and turns contexts off. See meridian context.
Next steps
Section titled “Next steps”- Deploy guide — every deploy option, camouflage targets, redeploys
- Domain mode — add a Cloudflare CDN fallback with your own domain
- Relay nodes — give users a domestic entry point
- IP blocked? — what to do when the server gets blocked
- Troubleshooting — common issues and fixes
