Skip to content

Installation

curl -sSf https://getmeridian.org/install.sh | bash

This script:

  1. Installs uv if it is not present, with pipx or pip as fallbacks. The uv installer is pinned by version and checked against its SHA-256 before it runs.
  2. Installs meridian-vpn from PyPI. Set MERIDIAN_VERSION to a published version number to install that exact release.
  3. Adds the tool directory to your shell PATH when needed
  4. Creates /usr/local/bin/meridian only when passwordless sudo is available

Choose a published GitHub release with install.sh and SHA256SUMS attached. Set VERSION below to its tag without the leading v, then download and verify the files:

VERSION=4.0.0b22 # example: use the release you chose
curl -fLO https://github.com/getmeridian/meridian/releases/download/v$VERSION/install.sh
curl -fLO https://github.com/getmeridian/meridian/releases/download/v$VERSION/SHA256SUMS
sha256sum -c SHA256SUMS # macOS: shasum -a 256 -c SHA256SUMS
less install.sh # optional: read it
MERIDIAN_VERSION=$VERSION bash install.sh

To check the copy at getmeridian.org instead, compare curl -sSf https://getmeridian.org/install.sh | sha256sum with the release’s SHA256SUMS; they match unless the script changed after that release. When the newest release is a beta, the website’s copy installs that beta by default, and that one line makes its checksum differ from the release asset.

With uv (recommended):

uv tool install 'meridian-vpn>=4.0.0b0,<5'

With pipx:

pipx install 'meridian-vpn>=4.0.0b0,<5'

These commands select Meridian 4, including 4.x prereleases. To install the latest stable release regardless of major version, run uv tool install meridian-vpn or pipx install meridian-vpn. These guides describe Meridian 4.

meridian update

Meridian checks PyPI now and then before interactive commands and prints a notice when a newer version exists. It never installs updates on its own. meridian update upgrades through whichever package manager installed it and confirms that the active meridian command reports the new version. Set MERIDIAN_DISABLE_UPDATE_CHECK=1 to turn off the background check in automation.

Updating the CLI changes nothing on your servers. If a server works, there is no rush; read the release notes, then run the same meridian deploy command (or meridian apply) when you are ready to apply the new version.

Meridian 4 is not an in-place upgrade. It replaces the 3x-ui panel with its own control service and web panel, and links from a 3.x server cannot carry over: every user needs a new link.

Your 3.x servers keep working. You have two choices:

  • Keep managing them with 3.x. Reinstall the 3.x CLI:
    uv tool install 'meridian-vpn<4'
    (or pipx install 'meridian-vpn<4'). Meridian 3.17.3 and later stay on 3.x when you run meridian update, unless you pass --major.
  • Move to Meridian 4.
    1. Deploy a fresh server with Meridian 4: meridian deploy NEW_IP
    2. Give your users their new connection pages (meridian client add NAME for each person)
    3. After everyone connects through the new link, retire the old VPS at the provider only if it was dedicated to Meridian 3.x. On a shared VPS, keep it running until you have backed up and separated the old installation from your other services. The new 4.x fleet does not own the old host.

Meridian 4 keeps its own state in ~/.config/meridian/ and never reads or changes 3.x state in ~/.meridian/, so both versions can live on one machine; fleet commands that find only 3.x state explain these options instead.

A fleet deployed by an earlier Meridian 4 release runs the Remnawave panel. That one moves in place, keeping every link: see Moving from Remnawave.

These docs describe Meridian 4. The Meridian 3.17.3 docs stay on GitHub for servers you keep on 3.x.

  • The CLI supports Python 3.11–3.15. On the VPS, uv installs Python 3.15 for the control service and leaves the system Python unchanged.
  • SSH access to your server, as root or a user with passwordless sudo. Key login is best; if the server accepts only a password, meridian deploy and meridian setup offer to create a key for Meridian and install it with that password once (see Password-only servers)

Terminal QR codes are rendered by the bundled segno package; no system dependency is required.

meridian --version