OneLine VPN Read the installer

Your own private VPN. Installed with one line.

A server you rent. A Telegram bot that invites your family. Keys that stay on that machine. Use it to keep a phone or laptop private on public Wi‑Fi, and to connect family devices to your own server.

Never used a server? Start here

A phone, a laptop, and a tablet joined by one line to a home server.
One server. The household hangs off a single line.
$ curl -fsSL https://onelinevpn.com/install | sudo bash

How it works

Three steps, then /start

  1. 01 Rent any Ubuntu VPS 22.04 or 24.04 is enough. About one CPU and 1 GB of memory. Never rented one? Start here.
  2. 02 Create a Telegram bot Open @BotFather, create a bot, and copy the token it gives you. The short BotFather steps are on the server guide.
  3. 03 Paste the line On the server, paste the command. Enter the token and your numeric Telegram ID. Open the bot and press /start. Where each answer comes from.

Features

A private network for a household

  • Invite-only, through Telegram

    You send a link. That person presses /start and receives access. No public signup.

  • A .conf file and a QR code

    Each device gets a config file and a code to scan. Import it in the app the bot names.

  • Revoke a device

    A phone was lost, or someone left. Turn that device off from the bot.

  • AmneziaWG, with WireGuard behind it

    The installer builds AmneziaWG when the kernel allows, and uses WireGuard when it does not.

  • No subscription, no third-party servers

    There is nothing to renew. Traffic is handled by the machine you installed, not by a VPN company.

  • Shell scripts you can read

    Save the installer and read it before you run it. The same line updates an existing server and keeps your keys.

In the bot

What family members see

OneLine VPN bot

Invite

Invite link, one person:
t.me/your_bot?start=inv_····

Send that link. They press /start.

OneLine VPN bot

You are in. Import this on a phone or a computer.

OneLine VPN devices
Phoneonline
Laptoplast seen 4 min ago
Tabletnot connected yet

Revoke tablet

Access removed.

Get a server

A small Ubuntu machine is enough

  • 1 vCPU, 1 GB RAM, 10 GB disk

    Ubuntu 24.04 or 22.04, with a public IPv4 address. About $4–6 a month covers a family of up to about 10 devices. Prices change, so check the provider.

  • Any of these hosts

    Hetzner Cloud, DigitalOcean, Vultr, or Contabo. No referral codes. The five-minute guide shows every click, including the first time you open a terminal.

Requirements

What the server needs

  • Ubuntu 22.04 or 24.04

    A clean VPS is the path this is tested on.

  • A public IPv4 address

    Family devices connect to that address. One free UDP port is enough.

  • A Telegram account

    Yours becomes the admin. Everyone else joins from an invite you send.

  • Root for one command

    The line installs the network, the bot, and a systemd service.

FAQ

Short answers

How do I find my Telegram ID?

In Telegram, open @userinfobot and press Start. The reply includes your numeric ID. Paste that number when the installer asks.

How do I uninstall?

On the server, run sudo bash /opt/familyvpn/uninstall.sh. It asks you to confirm, then removes the bot, the keys, and the database.

How do I update?

Run the same line again. The installer replaces the bot program, restarts it, and leaves existing keys and the database in place.