Skip to content

algo

Ansible scripts that deploy a hardened personal WireGuard and IPsec VPN to your cloud

Copyleft (OSI) · AGPL-3.0

Listed by , founder & editor

52

Health

Slowing

Overview

Stars

30,480

Last commit

11 days ago

Nov 2026

Repository age

10 years

since May 2016

Latest version

v2.0.1

Nov 2025

Contributors

–

4 active in 90 days

Releases

1

last 12 months

Docker pulls

174k

trailofbits/algo

Language

Python

Algo is a set of Ansible scripts that set up a personal VPN on a cloud server you control. It supports WireGuard and IKEv2 IPsec, uses strong crypto defaults such as AES-GCM, SHA2 and P-384, and runs on Ubuntu 22.04 LTS with automatic security updates.

You edit config.cfg to list one user per device, then run the algo script on macOS or Linux, or algo.ps1 on Windows through WSL. The first run installs the required Python environment, which needs Python 3.12 or later. Algo can deploy to DigitalOcean, Amazon Lightsail, Amazon EC2, Vultr, Azure, Google Compute Engine, Scaleway, Hetzner Cloud, Linode, OpenStack, CloudStack, or your own Ubuntu server.

It generates .conf files and QR codes for WireGuard clients on iOS, macOS, Android and Windows. It also builds Apple profiles that configure IPsec on iOS and macOS with no extra client software. Helper scripts add and remove users. Optional extras include an ad-blocking DNS resolver and limited SSH tunnel users. It is AGPL-3.0 licensed and an alternative to free VPN services.

Who it's for

Individuals who want a private VPN on a cloud server

One script run creates a server with sensible security defaults and client configs for each device.

Skip if: You want a native app with a kill switch or split tunneling controls.

Apple device users

Generated profiles configure IPsec on iOS and macOS without installing client software.

Skip if: You need OpenVPN support.

Travelers who want ad blocking on every network

An optional local DNS resolver blocks ads for connected devices.

Skip if: You need to bypass censorship, which Algo does not aim to do.

The problem it solves

Free VPN services are hard to trust, and setting up your own VPN server by hand is error-prone. Algo automates the deployment so you get a single-purpose server with strong defaults.

Strengths

  • Supports both WireGuard and IKEv2 IPsec
  • Generates configs and QR codes for client devices
  • Deploys to many cloud providers or your own Ubuntu server
  • Helper scripts add, remove and manage users
  • Minimal logging with automatic log rotation

Trade-offs

  • No OpenVPN, obfuscation or censorship circumvention
  • Uses stock WireGuard and IPsec clients, with no native app
  • No kill switch or split tunneling controls
  • Some config choices may require redeploying a new server

Self-host algo

Self-hostable
Yes
Docker image
trailofbits/algo

Quick start

git clone https://github.com/trailofbits/algo.git

From the project's own install instructions. Check the docs for production settings.

Frequently asked questions

Is Algo free?

The software is free under the AGPL-3.0 license. You pay your cloud provider for the server it runs on.

Which protocols does it support?

WireGuard and IKEv2 IPsec. Legacy options such as L2TP and IKEv1 are not supported.

Which devices can connect?

WireGuard works on iOS, macOS, Android, Windows 11 and Linux. IPsec works on iOS, macOS and Linux.

Does it give me anonymity?

No. It does not claim to provide anonymity or censorship avoidance.

Similar tools in VPNs and proxies

hysteria

VPNs and proxies

QUIC-based proxy that looks like HTTP/3, for slow or censored networks

23k 2.3k 5 days ago Active MIT

Amnezia VPN

VPNs and proxies

VPN client that installs its own VPN server on your VPS over SSH

16k 1.3k 4 days ago Thriving GPL-3.0

Replaces Free VPNs

Shadowsocks

VPNs and proxies

Android client for Shadowsocks proxies, built for bypassing network filtering

37k 11k 9 months ago Dormant GPL-3.0-or-later

subspace

VPNs and proxies

Web GUI for running your own WireGuard VPN server on a small VPS

2.6k 445 5 years ago Dormant MIT

v2rayNG

VPNs and proxies

Android client for V2Ray and Xray proxy protocols such as VMess, VLESS and Trojan

66k 8.7k today Thriving GPL-3.0

Clash Meta For Android

VPNs and proxies

Android app for running the Clash.Meta proxy core with a graphical interface

50k 3.1k 6 days ago Thriving GPL-3.0