How to self-host Activepieces on your own server
We earn commissions when you shop through the links below.
About 20 minutes · Commands checked against the official documentation on November 26, 2026
Activepieces is an open-source automation platform for building workflows and AI agents. Self-hosting it keeps your flows and connected-account credentials on a server you control.
This guide follows Activepieces' recommended install, a single command that writes the configuration, generates the secrets and starts four containers: the app, a worker, PostgreSQL and Redis. You end with Activepieces at http://<your server's IP address>:8080.
Activepieces is #76 on the all-time Top 100 this week.
You will need
- A Linux server running Ubuntu 24.04 LTS with at least 2 vCPUs and 4 GB of memory (Activepieces' stated requirement)
- Docker Compose v2 (installed with Docker below; the old docker-compose won't work)
- Comfort with SSH and a terminal
1.Get a server
Rent a virtual private server (VPS) running Ubuntu 24.04 LTS. Activepieces requires at least 2 vCPUs and 4 GB of memory.
Any provider works. When it is created you will have an IP address and a way to log in over SSH, usually as root or as a user that can run sudo.
Where to run it
Open-source agents are self-hosted. These are places to run one.
- DigitalOceanCloud servers you can self-host an open-source agent on.Visit DigitalOcean →
Affiliate links: we may earn a commission if you sign up, at no cost to you. Partners are hosting providers only, and they have no influence on any ranking or score.
2.Install Docker
Log in to the server over SSH, then install Docker Engine and the Compose plugin from Docker's official repository:
# Add Docker's official GPG key: sudo apt update sudo apt install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: sudo tee /etc/apt/sources.list.d/docker.sources <<EOF Types: deb URIs: https://download.docker.com/linux/ubuntu Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") Components: stable Architectures: $(dpkg --print-architecture) Signed-By: /etc/apt/keyrings/docker.asc EOF sudo apt update # Install Docker: sudo apt install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginCheck that both are available. If Docker isn't running, start it with sudo systemctl start docker.
3.Check Docker Compose v2
docker compose versionIf that command fails, Docker Compose v2 isn't installed; repeat the previous step.
4.Install Activepieces
Run this in the folder where you want Activepieces to live. It creates an activepieces folder there. It needs to run as a user that can use Docker (root, or a user in the docker group):
curl -fsSL https://get.activepieces.com | shPrefer to read the script before running it? Activepieces documents this command, which prints it instead:
curl -fsSL https://get.activepieces.com5.Check it's running
docker compose -p activepieces ps curl http://localhost:8080/api/v1/healthAll four containers should show Up, and the health check should respond.
6.Create the admin account
Open http://<your server's IP address>:8080 in a browser and create an account straight away. The first account becomes the platform administrator; there is no default username or password.
7.Back up the secrets file
The install wrote your secrets to activepieces/.env. Copy that file somewhere safe. Without AP_ENCRYPTION_KEY, stored connections can't be decrypted, even from a full database backup.
Public address and HTTPS
Webhooks and app triggers need an address other services can reach. Activepieces' documentation says that in production AP_FRONTEND_URL in .env should point at your real domain. Put a domain and HTTPS in front of port 8080 before you rely on it.
Updating
Back up the database first, then run the upgrade command, both from Activepieces' guide:
docker compose -p activepieces exec postgres pg_dump -U postgres activepieces > backup.sql
curl -fsSL https://get.activepieces.com | sh -s -- --upgrade
Your .env, your data and any edits to docker-compose.yml are left alone. Review Activepieces' breaking changes before upgrading.
Backups
Your flows live in the postgres_data Docker volume, not in the activepieces folder, so backing up the folder alone doesn't back up your flows. Use the pg_dump command above, and keep the .env file.
Sources
Every command above is taken from these pages. If a step has changed, they are the authority.