CloudLinux.ro
Applications

How to install Langflow on a Cloud VPS

Updated 7/18/2026

Langflow is a visual builder for AI agents and RAG pipelines: drag, drop and connect LLM components, then expose them as APIs.

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: Langflow installs automatically at the first boot of a new server.

  1. Create a Cloud VPS from the control panel.
  2. In the configuration step, pick Langflow from the app catalog.
  3. Start the server. The install runs in the background for a few minutes and its status shows on the server page.
  4. Access details and generated passwords are saved on the server in /root/app-credentials.txt. The app will be available on port 7860.

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
IP=$(hostname -I | awk '{print $1}')
DB_PASS=$(openssl rand -base64 24 | tr -dc 'A-Za-z0-9' | cut -c1-20)
ADMIN_PASS=$(openssl rand -base64 24 | tr -dc 'A-Za-z0-9' | cut -c1-16)
SECRET_KEY=$(openssl rand -base64 32 | tr -dc 'A-Za-z0-9' | cut -c1-40)
mkdir -p /opt/langflow && cd /opt/langflow
cat > docker-compose.yml <<EOF
services:
  langflow:
    image: langflowai/langflow:latest
    restart: always
    ports:
      - '7860:7860'
    depends_on:
      - langflow-db
    environment:
      LANGFLOW_DATABASE_URL: "postgresql://langflow:${DB_PASS}@langflow-db:5432/langflow"
      LANGFLOW_CONFIG_DIR: /app/langflow
      LANGFLOW_AUTO_LOGIN: "false"
      LANGFLOW_SUPERUSER: admin
      LANGFLOW_SUPERUSER_PASSWORD: "${ADMIN_PASS}"
      LANGFLOW_SECRET_KEY: "${SECRET_KEY}"
    volumes:
      - langflow_data:/app/langflow
  langflow-db:
    image: postgres:16-trixie
    restart: always
    environment:
      POSTGRES_USER: langflow
      POSTGRES_PASSWORD: "${DB_PASS}"
      POSTGRES_DB: langflow
    volumes:
      - langflow_pg:/var/lib/postgresql/data
volumes:
  langflow_data:
  langflow_pg:
EOF
docker compose up -d
printf 'Langflow: http://%s:7860\nUtilizator: admin\nParola: %s\n' "$IP" "$ADMIN_PASS" > /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 pricing

Related tutorials