Install Anlyon on your server
Install self-hosted Anlyon on a Linux server with one command, or with Docker Compose from a clone of the repository, then create the owner with the one-time setup link.
One command installs Anlyon on a fresh Linux server. It checks the server first, asks before each change it makes, and ends with a one-time link that creates the owner. If the machine already runs Docker, you can install from a clone instead.
Check the requirements
- Linux: Ubuntu 22.04 or 24.04, or Debian 12, on x86_64 or arm64. Other distributions usually work but are not tested.
- Size: 2 CPU cores, 4 GB of memory and 20 GB of free disk. 2 GB of memory works with swap, which the installer offers to add.
- Docker 24 or later with Compose 2.24 or later. The installer offers to install it.
- A domain name pointing at the server, with ports 80 and 443 open, for anyone other than you to reach it. Caddy gets the HTTPS certificate on its own.
- Root, or a user who can run
sudo.
No third-party account is needed. Email, file storage, OAuth apps and the Slack app are optional, and you set them later in the console.
Install with one command
curl -fsSL https://anlyon.com/install | sudo sh
That installs the latest release. To install a given release, put its version after install@:
curl -fsSL https://anlyon.com/install@1.0.0 | sudo sh
To pass flags, put them after sh -s --:
curl -fsSL https://anlyon.com/install | sudo sh -s -- --domain anlyon.example.com
To read the script before you run it, download it first:
curl -fsSL https://anlyon.com/install -o bootstrap.sh
less bootstrap.sh
sudo sh bootstrap.sh
Know what the installer does
The installer changes nothing on the server until you answer. It works in this order.
It checks the server
It prints a table of what it found, each line marked ✓ or ✗: the operating system, the architecture, CPUs, memory, free disk, ports 80 and 443, Docker and Compose, clock synchronisation, privileges, and whether your domain points at this server. If a check fails, it asks whether to continue. To run only the checks, without changing anything: curl -fsSL https://anlyon.com/install | sudo sh -s -- preflight.
It asks for your domain
Enter a domain such as anlyon.example.com. The installer finds the server’s public IP address and checks the domain against it. If the domain does not point here yet, it shows you the exact DNS record to create, and waits. See Point your domain at the server.
It asks before each change to the server
One question at a time. Changes that reach deeper into the server default to no.
| Change | When it is offered |
|---|---|
| Install Docker Engine and Compose from Docker’s apt repository | Docker is missing, stopped or too old |
Add a swap file and list it in /etc/fstab |
The server has less than 4 GB of memory |
| Allow ports 80 and 443 in ufw | ufw is already on. The installer never turns ufw on and never touches SSH rules |
Create /opt/anlyon |
Always. --dir picks another directory |
Add your sudo user to the docker group |
You ran it with sudo. Membership is equivalent to root on the server, so the default is no |
Install the anlyon-selfhost command in /usr/local/bin |
Always |
It installs and starts Anlyon
It puts the install in /opt/anlyon and writes /opt/anlyon/.env with new secrets, readable by root only. It builds the images on the server, or pulls the release’s published images, then starts the five containers and waits for the server to report ready. Caddy then gets the certificate for your domain.
It offers a daily backup
Say yes and a backup runs every day at 03:17 server time. See Back up and restore.
It prints the setup link
The link creates the owner, and works once. See Create the owner.
If the server does not come up, the installer shows the last 50 lines of its log. If the certificate does not arrive, check the firewall in front of the server at your hosting provider as well as the server’s own: ports 80 and 443 must be reachable from the internet.
Run the installer again on a server that already has Anlyon and it says so, and offers an upgrade instead. It never replaces an install or its .env. If an earlier run stopped part way, it offers to resume, keeping the .env and its root key.
Point your domain at the server
When the domain does not point at the server yet, the installer prints the record to create: type A, the name within your zone, the server’s IP address, TTL automatic. If the server has IPv6, it shows an AAAA record to create too. It recognises your DNS provider from the domain’s nameservers and links that provider’s instructions. It knows Cloudflare, Vercel, Namecheap, GoDaddy, Porkbun, Squarespace, AWS Route 53, DigitalOcean, Hostinger and Gandi.
Then it waits, checking again every 10 seconds:
| Key | What happens |
|---|---|
| Enter | Check now |
s |
Continue on the IP address, over plain HTTP |
q |
Stop, and come back later |
On Cloudflare, set the record to DNS only (grey cloud). Behind Cloudflare’s proxy (orange cloud) the server cannot get its own certificate. If you give the installer a Cloudflare API token limited to the zone’s DNS, it creates the record for you. The token is used for that one request and never stored.
Without a domain, press Enter at the domain question. Anlyon then runs at http://<server IP>:8080, over plain HTTP. Sign-ins, the setup token and API keys cross the network unencrypted, so use this for a trial only.
Choose flags for the installer
| Flag | What it does |
|---|---|
--domain anlyon.example.com |
The public address. A host name gets HTTPS with an automatic certificate. An IP address or localhost runs over plain HTTP on port 8080 |
--edition team |
community (the default), team or enterprise. See Licences |
--dir /srv/anlyon |
Install somewhere other than /opt/anlyon |
--version 1.0.0 |
The release to install |
--images build or --images ghcr |
Build the images on the server from the release’s source, or pull them from ghcr.io/anlyonhq |
--yes |
Do not ask. Accept each change except the docker group |
--add-docker-group |
Add your sudo user to the docker group (root-equivalent) |
--no-docker-install, --no-swap, --no-firewall, --no-cli |
Decline that one change |
--docker-method script |
Install Docker with Docker’s convenience script instead of its apt repository |
--backup-schedule daily |
With --yes: set up a daily backup. weekly and off work too |
--allow-ip-fallback |
With --yes: if the domain does not point here yet, continue on the IP address over plain HTTP instead of stopping |
--public-ip 203.0.113.10 |
The server’s public IPv4 address, when the installer cannot detect it |
--ignore-preflight |
Continue past failed checks |
--timeout 600 |
Seconds to wait for the server to be ready. 300 by default |
For an unattended install:
curl -fsSL https://anlyon.com/install | sudo sh -s -- --domain anlyon.example.com --yes --backup-schedule daily
sudo anlyon-selfhost help lists every command and flag once Anlyon is installed.
Install with Docker already set up
On a machine that already runs Docker 24 or later with Compose 2.24 or later, install from a clone of the repository:
git clone https://github.com/AnlyonHQ/anlyon.git
cd anlyon
npx @anlyonhq/cli self-host init
Without Node.js, run ./deploy/self-host/install.sh instead of the last line. Both do the same thing. They ask one question, the public domain (anlyon.example.com, or Enter for localhost:8080), and then:
- generate a root key, a one-time setup token and a database password with a cryptographically secure random generator;
- write
deploy/self-host/.env, readable by you only. The root key and the password are never printed, and an existing.envis never replaced unless you pass--force; - offer to start everything with
docker compose up -d --build; - print the setup link.
Without questions:
npx @anlyonhq/cli self-host init --domain anlyon.example.com --yes --up
--force replaces an existing .env with a new root key. Secrets stored under the old root key can then never be read again, so use it only to start over.
An install from a clone has no anlyon-selfhost command. Operate gives the Docker Compose commands for it.
Create the owner
Open the setup link the installer printed. It looks like https://anlyon.example.com/setup#token=... and carries a one-time setup token. Until the owner exists, every sign-up is refused, so whoever reaches the server first cannot claim it without the token.
If you lost the link, read the token from the .env file, open https://anlyon.example.com/setup and paste it:
sudo grep ANLYON_SETUP_TOKEN /opt/anlyon/.env
For an install from a clone, the file is deploy/self-host/.env.
The setup page then walks you through three steps.
Create the owner
Enter the owner’s name, email address and a password of at least 12 characters. You can also name the owner’s first workspace.
Keep a copy of the root key
Copy ANLYON_ROOT_KEY from the .env file to a password manager or a vault, somewhere other than this server. Every key the server uses is derived from it. If it is lost, stored secrets and connected accounts can never be read again. If it changes, everyone is signed out and every API key stops working. The console never shows it.
Choose the optional settings
Each one can be skipped and set later: email, file storage, who may sign up, a licence key, telemetry, OAuth apps for connected accounts and the Slack app. See Configure.
Sign in for the first time
Sign in to the console at your address, such as https://anlyon.example.com, with the owner’s email and password. The owner is an instance admin: they see Settings → Instance, where every setting of the install lives, and they can make other people instance admins.
From here, everything in these docs works the same on your server. Create an API key, declare an action and invoke it: the quickstart walks through it. Skip its notes about plans and billing, which apply to anlyon.com only. Point the SDKs and the CLI at your own address, as shown in Point your agents at your server.

