How to install Dify on a Cloud VPS
Updated 7/20/2026
Dify is a complete platform for building LLM applications: AI agents, RAG pipelines, a prompt studio and ready-made APIs, all through one visual interface.
Running it on your own server keeps your data and API keys with you, with no SaaS usage limits and predictable hourly billing.
One-click install on cloudlinux.ro
The fastest way: Dify installs automatically at the first boot of a new server.
- Create a Cloud VPS from the control panel.
- In the configuration step, pick Dify from the app catalog.
- Start the server. The install runs in the background for a few minutes and its status shows on the server page.
- Access details and generated passwords are saved on the server in
/root/app-credentials.txt. The app will be available on port 80.
Manual install on any Ubuntu server
If you prefer doing it yourself, below is the exact script our automatic install runs. Execute it as root on a fresh Ubuntu server (24.04 recommended). It stops at the first error, and when it finishes you will find the access details in /root/app-credentials.txt.
export DEBIAN_FRONTEND=noninteractive
curl -fsSL https://get.docker.com | sh
apt-get install -y git
git clone --depth 1 https://github.com/langgenius/dify.git /opt/dify
cd /opt/dify/docker
cp .env.example .env
docker compose up -d
IP=$(hostname -I | awk '{print $1}')
printf 'Dify: deschide http://%s/install si creeaza contul de administrator.\nDupa configurare, panoul este la http://%s\nAdauga o cheie API pentru un model din Settings, Model Provider (OpenAI, Anthropic sau un model local).\nDify ocupa portul 80, nu instala alt server web pe acelasi server.\n' "$IP" "$IP" > /root/app-credentials.txt
You can also save this script as a recipe in your account and reuse it on any new server.
Put this guide into practice on your own VPS
EU cloud servers, billed hourly, ready in minutes, with one-click installs for dozens of apps.
See pricingRelated tutorials
How to install Maxun on a Cloud VPS
Complete Maxun guide: one-click install on cloudlinux.ro or manual setup on any Ubuntu server, step by step.
Updated 7/20/2026ApplicationsHow to install OpenHands on a Cloud VPS
Complete OpenHands guide: one-click install on cloudlinux.ro or manual setup on any Ubuntu server, step by step.
Updated 7/20/2026ApplicationsHow to install Langflow on a Cloud VPS
Complete Langflow guide: one-click install on cloudlinux.ro or manual setup on any Ubuntu server, step by step.
Updated 7/20/2026