Langflow
Overview
Langflow is an open-source, low-code visual builder for AI agents and retrieval-augmented generation (RAG) applications. You design flows by dragging and connecting components on a canvas, test them interactively, and serve them as APIs.
This SecureAnyCloud image installs Langflow 1.9 in a Python virtual environment at /opt/langflow and fronts it with an nginx reverse proxy on TCP 80. It generates a unique administrator password and credential-encryption key on the first boot of every VM.
What you get:
- Langflow 1.9 in a Python virtual environment at
/opt/langflow - An nginx reverse proxy on
:80in front of the Langflow service, which is bound to loopback - A dedicated Azure data disk at
/var/lib/langflowthat holds the SQLite database, saved flows, uploads and the credential-encryption key, separate from the OS disk and re-provisioned with every VM - A per-VM administrator password and Fernet
LANGFLOW_SECRET_KEY, generated at first boot and written to/root/langflow-credentials.txt langflow.serviceandnginx.serviceas enabled, active systemd units- 24/7 SecureAnyCloud support
Prerequisites
You need an active Azure subscription, an SSH key pair, and a VNet with a subnet in the target region.
Standard_B2ms (2 vCPU / 8 GiB RAM) is a good starting point. Scale up for heavier flows or more concurrent users.
Configure the network security group (NSG) to allow 22/tcp inbound from your management network and 80/tcp from the clients that need the Langflow UI. For public exposure, put TLS in front of port 80 as described in Enabling HTTPS.
Step 1 - Deploy from the Azure Marketplace
Sign in to the Azure Portal, choose Create a resource, search the Marketplace for Langflow by SecureAnyCloud, and select Create.
On the Basics tab, pick your subscription, resource group, region and size (Standard_B2ms or larger). Under Administrator account, choose SSH public key and paste your key. Under Inbound port rules, allow SSH (22) and HTTP (80).
Review the dedicated data disk on the Disks tab, then select Review + create and Create.
Step 2 - Deploy from the Azure CLI
# Accept the Marketplace terms once per subscription (required before the first CLI deploy)
az vm image terms accept --urn sac1647283583153:langflow-ubuntu-24-04:default:latest
az vm create \
--resource-group <your-rg> \
--name langflow \
--image sac1647283583153:langflow-ubuntu-24-04:default:latest \
--size Standard_B2ms \
--admin-username azureuser \
--ssh-key-values ~/.ssh/id_ed25519.pub \
--vnet-name <your-vnet> --subnet <your-subnet> \
--public-ip-sku Standard
az vm open-port --resource-group <your-rg> --name langflow --port 80 --priority 1010Step 3 - Connect to your VM
ssh azureuser@<vm-public-ip>Step 4 - Confirm the services are running
systemctl is-active langflow.service nginx.service ss -tln | grep -E ':80 |:7860 ' curl -s http://127.0.0.1/healthBoth services report active. nginx listens on port 80, the Langflow service listens on loopback 7860, and the health endpoint returns OK.
Step 5 - Retrieve your per-VM credentials
The administrator password is generated uniquely on the first boot of your VM and written to a root-only file:
sudo cat /root/langflow-credentials.txtThe username is admin, and the password is the LANGFLOW_SUPERUSER_PASSWORD value. Keep this file safe, and change the password after your first sign-in.
Step 6 - Open Langflow and sign in
Browse to http://<vm-public-ip>/ and sign in with the username admin and the password from Step 5. The Langflow workspace opens, where you can create and manage flows.
Step 7 - Build your first flow
In the UI, choose New Flow and start from a template or a blank canvas. Drag components (inputs, prompts, models, retrievers, outputs) onto the canvas and connect them to form a pipeline. Use the Playground to test the flow interactively.
Step 8 - Connect a model provider and serve your flow
Add your model-provider API key to the relevant component in the UI, for example an OpenAI or Anthropic component. To confirm that the login API works end to end, run this from the shell:
PASS=$(sudo grep '^LANGFLOW_SUPERUSER_PASSWORD=' /root/langflow-credentials.txt | cut -d= -f2-)
curl -s -X POST http://127.0.0.1/api/v1/login \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=admin' --data-urlencode "password=$PASS" \
| python3 -c "import sys,json; print('token_type:', json.load(sys.stdin)['token_type'])"When a flow is built, select API in the UI to get the endpoint and a ready-made curl or Python snippet to call it.
Step 9 - Confirm the runtime
/opt/langflow/venv/bin/langflow --versionEnabling HTTPS
Terminate TLS at nginx with a real domain that points at the public IP address of the VM. Install certbot and request a certificate, replacing the domain with yours:
sudo apt-get update && sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d your-domain.example.comcertbot updates the nginx configuration and sets up automatic renewal.
Backup and maintenance
All Langflow state lives on the dedicated data disk at /var/lib/langflow. This includes the SQLite database, saved flows, uploads and the encryption key. Snapshot that disk in Azure to back up your flows.
Keep the OS patched with sudo apt update && sudo apt upgrade. The Langflow service restarts cleanly with sudo systemctl restart langflow.
Support
This image is backed by 24/7 SecureAnyCloud support. Contact us by email and chat for help with deployment, flow design, model-provider integration, scaling, TLS and backups.
All product and company names are trademarks or registered trademarks of their respective holders. Their use does not imply any affiliation with or endorsement by them.
Deploy on Azure
Launch Langflow on Ubuntu 24.04 LTS on Azure with 24/7 support from SecureAnyCloud.
View this image
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com
Overview
Langflow is an open-source, low-code visual builder for AI agents, chatbots and retrieval-augmented generation (RAG) applications. This SecureAnyCloud image runs Langflow 1.9 on Ubuntu 24.04 LTS, with login required and a unique administrator password generated on the first boot of every instance.
What you get:
- Langflow installed in a dedicated Python virtual environment under
/opt/langflowon the Python 3.12 runtime, run by an unprivilegedlangflowsystem account under a systemd service that starts it on boot and restarts it on failure - Langflow listening on the loopback address
127.0.0.1:7860by design and never exposed directly - nginx as a reverse proxy on port 80 that forwards every request to Langflow, with the WebSocket and streaming upgrade headers Langflow needs to stream flow output and a raised upload limit for file ingestion
- Login required, because the image sets
LANGFLOW_AUTO_LOGIN=false(Langflow ships with authentication disabled out of the box) and creates a single administrator account namedadmin - A one-shot service that runs on the first boot of every deployed instance. It rotates the administrator password, and the key used to encrypt the credentials you store in your flows, to fresh per-instance secrets, and it writes the password to
/root/langflow-credentials.txt(mode0600, readable only by root) - No shared passwords: two instances launched from the same AMI never share a password
- Persistent data (the SQLite database, your saved flows, file uploads and the encryption key) under
/var/lib/langflowon a dedicated, independently resizable EBS data volume - A CPU-only image with no model weights. Langflow calls an external language model endpoint that you configure: OpenAI, Anthropic, Amazon Bedrock or a self-hosted model
- A default security group for this listing that opens only port 22 (SSH) and port 80 (HTTP)
- 24/7 SecureAnyCloud support
Prerequisites
- An AWS account subscribed to this product in AWS Marketplace.
- An EC2 key pair in your target region for SSH access.
- A security group allowing inbound TCP 22 (SSH) from your IP and TCP 80 (HTTP) from your users.
- Recommended instance type:
m5.largeor larger. Langflow benefits from at least 8 GB RAM for production workloads. - An API key or endpoint for the language model provider you intend to use.
Connecting to your instance
Connect over SSH as the default login user for your operating system variant, using the key pair you launched with.
OS variant, login user and example:
Ubuntu 24.04 ubuntu ssh -i your-key.pem ubuntu@<instance-public-ip>
Step 1 - Launch from the AWS Marketplace console
- Open the product page in the AWS Marketplace, choose Continue to Subscribe, then choose Continue to Configuration.
- Select the Langflow 1.9 on Ubuntu 24.04 delivery option and your region, then choose Continue to Launch.
- Choose your instance type, VPC and subnet, key pair, and the security group described above, then launch.
Step 2 - Launch from the AWS CLI
Replace the AMI ID with the one shown on the launch page of the product for your region, and use your own key pair and security group.
aws ec2 run-instances \
--image-id ami-xxxxxxxxxxxxxxxxx \
--instance-type m5.large \
--key-name your-key \
--security-group-ids sg-xxxxxxxx \
--tag-specifications 'ResourceType=instance,Tags=[{Key=Name,Value=langflow}]'Step 3 - Connect to your instance
ssh -i your-key.pem ubuntu@<instance-public-ip>Step 4 - Confirm the services are running
Both langflow.service and nginx.service should be active. Langflow listens on loopback 127.0.0.1:7860; nginx listens on 0.0.0.0:80 and proxies to it.
systemctl is-active langflow.service nginx.service ss -tln | grep -E ':80 |:7860 ' curl -s http://127.0.0.1/healthExpected output:
active active LISTEN 0 511 0.0.0.0:80 0.0.0.0:* LISTEN 0 2048 127.0.0.1:7860 0.0.0.0:* LISTEN 0 511 [::]:80 [::]:* {"status":"ok"}Step 5 - Retrieve your per-instance credentials
The administrator password is generated on first boot and stored in a root-only file:
sudo cat /root/langflow-credentials.txt# Langflow - generated on first boot by langflow-firstboot.service
# These credentials are unique to this VM. Store them somewhere safe. LANGFLOW_URL=http://<instance-public-ip>/ LANGFLOW_SUPERUSER=admin LANGFLOW_SUPERUSER_PASSWORD=<your-unique-password>The username is admin. Configuration lives in /etc/langflow/langflow.env and the data under /var/lib/langflow.
Step 6 - Open Langflow and sign in
Browse to http://<instance-public-ip>/ and sign in as admin with the password from Step 5.
Step 7 - Build your first flow
After you sign in, the Flows dashboard opens. Choose New Flow and start from a template (for example Basic Prompting or Simple Agent) or a blank canvas.
Drag components onto the canvas and connect them to assemble a working flow: a chat input, a model component, a prompt and a chat output. Use the Playground to chat with your flow and iterate.
Step 8 - Connect a model provider and serve your flow
Langflow ships no model weights and calls the model endpoint you configure. In your model component, paste your provider API key (OpenAI, Anthropic, Amazon Bedrock) or the base URL of a self-hosted model. Keys you enter are encrypted at rest with the per-instance key generated on first boot.
Every flow is also an API. Retrieve an access token and call the API from your application:
PASS=$(sudo grep '^LANGFLOW_SUPERUSER_PASSWORD=' /root/langflow-credentials.txt | cut -d= -f2-)
curl -s -X POST http://127.0.0.1/api/v1/login \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode 'username=admin' --data-urlencode "password=$PASS" \
| python3 -c "import sys,json; print('token_type:', json.load(sys.stdin)['token_type'])"token_type: bearerThe Langflow UI shows ready-made curl and Python snippets for running each flow under the API menu of the flow.
Step 9 - Confirm the runtime
/opt/langflow/venv/bin/langflow --versionlangflow 1.9.6Enabling HTTPS
TLS is not enabled by default. Terminate TLS at an upstream Application Load Balancer or Amazon CloudFront, or obtain a certificate directly on the instance with certbot:
sudo apt-get update && sudo apt-get install -y certbot python3-certbot-nginx
sudo certbot --nginx -d your-domain.example.comcertbot edits the nginx site at /etc/nginx/sites-available/sac-langflow to add the TLS listener and sets up automatic renewal.
Backup and maintenance
- All Langflow state lives under
/var/lib/langflowon its own EBS volume. To back up your flows and stored credentials, snapshot that volume, or copy the SQLite database and theflowsdirectory. - The volume is independently resizable. Grow it in the EC2 console, then run
sudo resize2fs /dev/nvme1n1(or the device shown bylsblk). - Restart the application with
sudo systemctl restart langflow.service. Logs are in the journal:sudo journalctl -u langflow.service. - Configuration is in
/etc/langflow/langflow.env. After you edit it, restartlangflow.service.
Support
SecureAnyCloud provides 24/7 technical support for this image by email and chat, covering Langflow deployment, connecting language-model and vector-store providers, building agent and RAG flows, serving flows through the API, TLS termination and scaling. Contact details are on the AWS Marketplace listing.
Deploy on AWS
Launch Langflow on AWS with 24/7 support from SecureAnyCloud.
View on Marketplace
Need Help?
Our support team is available 24/7.
sales@secureanycloud.com