Loading...

Knowledge Base

Purchase a HostGator Self-Managed VPS with Langflow Installation

Build and manage AI applications with Langflow, an open-source platform that lets you create AI-powered workflows through a visual interface. You can connect components such as language models, prompts, data sources, agents, tools, MCP servers, and other integrations to build customized workflows. With Langflow, you can design, test, and refine AI workflows without building every component from scratch. Whether you're creating a chatbot, an AI agent, a document-based application, or another AI-powered solution, Langflow provides a centralized workspace for building, managing, and connecting your application's components. Langflow uses the AI model providers you connect, such as OpenAI or Anthropic, so prompts and any data your workflows process are sent to those providers, and provider usage may incur separate charges. With a Self-Managed VPS, you're responsible for configuring, maintaining, updating, and securing your server, your Langflow installation, and the workflows and user accounts you create.

Key Benefits of Langflow

Langflow provides tools that help you build, test, and integrate AI-powered workflows from a single platform.

  • Visual Flow Builder: Create workflows by adding, configuring, and connecting components through a drag-and-drop interface.
  • Flexible AI Integrations: Connect language models, prompts, data sources, vector stores, agents, tools, MCP servers, and other supported components.
  • AI Agent Support: Build agent workflows that use connected tools and resources to help complete tasks.
  • Reusable Components: Combine different components into workflows that can be customized and reused across multiple AI applications.
  • Real-Time Testing: Use the Playground to test your workflows, review inputs and outputs, and refine them as you build.
  • API Integration: Access and run your workflows through the Langflow API, allowing you to integrate them with your own applications.
  • MCP Support: Use Langflow as an MCP client or server to connect workflows with compatible tools and applications.
  • Customizable Workflows: Adjust component settings and create custom components to meet your application's requirements.

What Can You Do with Langflow?

Langflow provides the tools you need to create, test, and integrate AI-powered workflows. With Langflow, you can:

  • Build AI Workflows: Create workflows by connecting components that represent different steps in your application's process.
  • Create AI Agents: Build and configure AI agents with language models, custom instructions, and connected tools.
  • Connect AI Models: Add supported language models and other AI components to your workflows based on your application's needs.
  • Use Data Sources and Tools: Connect data sources, external tools, and other integrations that your workflows can use when processing requests.
  • Build Chatbots: Create chat-based workflows using input, language model or agent, and output components.
  • Test Workflows in the Playground: Run and test your workflows in real time, review outputs, and monitor agent tool activity.
  • Customize Components: Configure component settings and create custom components to add functionality to your workflows.
  • Use Prebuilt Templates: Start with available templates and customize them to create your own workflows.
  • Integrate Workflows with Applications: Use the Langflow API to connect and run your workflows from external applications.
  • Expose Workflows Through MCP: Use Langflow's MCP capabilities to make your workflows available as tools for compatible MCP clients.
  • Export and Share Workflows: Export workflows as JSON and use available sharing and integration options based on your requirements.

Using Langflow on a HostGator Self-Managed VPS provides a flexible environment for building and running AI-powered workflows. From creating visual workflows and AI agents to testing workflows and integrating them with other applications, Langflow gives you the tools to develop AI-powered solutions while maintaining full control over your environment.

System Requirements

Before deploying, ensure your server meets the following minimum hardware requirements. For a stable production deployment, we recommend using higher specifications than the minimum requirements.

Resource Minimum Recommended
CPU 2 vCPUs 4 vCPUs
RAM 4 GB 8 GB
Disk 20 GB 30 GB

How to Purchase a Self-Managed VPS with Langflow

Pre-configured Setup

Self-Managed VPS - Pre-configured Setup
Not sure which VPS setup is right for you? That's exactly what Pre-configured Setup is for. You'll find this option near the top of the HostGator Self-Managed VPS purchase page, and it takes the guesswork out of getting started. Just tell us what you're building—a WordPress Site, an AI Agent/Claude Code project, a Dev/Staging environment, or an eCommerce Store—and we'll automatically select the right plan, operating system, and template to match.
  • Great option if you're new to VPS or want a fast, easy setup
  • Get the recommended configuration for your project right away
  • No need to figure out the technical details yourself
  • Full flexibility to adjust settings later on
Try Pre-configured Setup and have your HostGator Self-Managed VPS ready to go in minutes!

To use Langflow on HostGator, you first need to buy a Self-Managed VPS plan. Here is how to do it:

  1. Open https://www.hostgator.com/vps-hosting in your browser.
  2. Pick the plan you want and click Choose Plan.

    Self-Managed VPS - Choose Plan
     

  3. Pick a Data Center location.

    Self-Managed VPS - Data Center Locations
     

  4. On the Cart page, you can set up your server the way you want:
    1. Hardware:
      1. Pre-selected:

        You can change to a different Self-Managed VPS plan here.

        Self-Managed VPS - Pre-selected Hardware
         

      2. Configure:

        Click Configure if you want to build your own custom package.

        Self-Managed VPS - Configure
         

    2. Software:
      1. Click the Application tab.
      2. Choose Langflow.

        Self-Managed VPS - Langflow Software
         

      3. In the pop-up, click Confirm.

        Self-Managed VPS - Langflow -Confirm
         

  5. Support & Security:

    You can add Premium Support, an optional paid add-on that gives you a dedicated specialist team for server tuning and migrations, plus priority chat and phone access. The current price is shown in your cart before you complete checkout.

    Self-Managed VPS - Premium Support
     

  6. AI Credits:

    You can add a HostGator AI Credits package, an optional paid add-on that lets you connect your application to supported LLM providers, including Claude, GPT, Gemini, and Grok, using one API key and a single bill. Supported models may change over time. The current price is shown in your cart before you complete checkout.

    Self-Managed VPS - AI Credits
     

  7. In Advanced options, you can set these up if you want:
    • Extra IPs: Add more IP addresses for an extra cost. The price depends on how many you add, and the current price is shown in your cart before you complete checkout.
    • Hostname: Give your server a custom name. This is optional.
    • SSH Key: If you want to log in without a password, add your SSH public key here. This is optional.

      Self-Managed VPS - Advanced Options
       

  8. Choose a billing term, check your Order Summary, then click Continue to Checkout.

    Self-Managed VPS - Initial Continue to Check Out
     

  9. Review your HostGator cart. Some add-ons may be included by default. Review each item, remove any you don't want, then click Continue to Checkout again.

    Self-Managed VPS - Continue to Checkout
     

  10. On the Checkout page, do the following:

    If you are new to HostGator:

    1. Fill in your billing information and contact details. If you don't want marketing emails, uncheck the box at the bottom.

      Self-Managed VPS - Billing Information
       

    2. Create a password for your account.

      Self-Managed VPS - Account Password
       

    3. Choose how you want to pay—credit card or PayPal—and enter your payment details.

      Self-Managed VPS - Payment Method Options
       

    If you already have an account, your HostGator login details will show up once you log in to your Customer Portal. If you are not logged in, click Log In.

    Self-Managed VPS - HostGator Login
     

  11. Review your payment method and order total. If you have a promo code, click Add Promo Code and enter your code. If you need to make changes, click Edit or Add Payment Method. When everything looks correct, click Submit Payment to complete your purchase. By clicking Submit Payment, you agree to the Auto Renewal Terms, Terms of Service, Cancellation Policy, and Privacy Notice.

    Self-Managed VPS - Submit Payment
     

After checkout, your Self-Managed VPS will begin setting up. Once it's ready, you can find it under the Hosting tab in your Customer Portal.

If you have questions about purchasing the Self-Managed VPS hosting, please contact us for assistance.

Setting Up and Running a Langflow Server

Langflow is an open-source, low-code platform for building and deploying AI-powered applications and multi-agent workflows. It offers a visual drag-and-drop interface for assembling LLM pipelines and connecting to OpenAI, Anthropic, Ollama, vector stores, and many other data sources.

This guide covers how the server works right out of the box and what you'll need to do to start building your AI pipelines safely.

Phase 1: What Happens Automatically on First Boot

Note: The initial startup takes 2-5 minutes as Langflow sets up its SQLite database and loads frontend assets. A background cloud-init script takes care of all initial provisioning and removes itself afterward so it won't run again.

  1. Security Generation
    The system creates a random superuser password along with a secret key (LANGFLOW_SECRET_KEY) used to encrypt your API keys. These credentials are saved securely to /root/.app_secrets.
  2. HTTPS / SSL Setup
    The server identifies its public IP and requests a Let's Encrypt TLS certificate through Certbot, so your browser shows a secure connection. If it's on a private network, it defaults to a self-signed certificate instead. Nginx is automatically configured to reverse-proxy traffic to the backend.
  3. Application Launch
    Supervisor, a process management tool, starts the Langflow backend (kept safely bound to 127.0.0.1:7860, so it's not directly exposed to the internet).

Phase 2: Reset Your Root Password

  1. Log in to your Customer Portal.
  2. From the left-hand menu, navigate to Hosting and select My Plans.

    Customer Portal - Hosting tab - View Details
     

  3. Locate the server you want to manage, then click View Details in the bottom-left corner to expand the section and access additional server information.

    Customer Portal - Hosting tab - View Details
     

  4. Click the Reset Password button.

    Customer Portal - Hosting tab - View Details - Reset Password
     

  5. In the pop-up window, type your new root password, then click Reset Password again to confirm and save the changes.

    Customer Portal - Hosting tab - View Details - Reset Password
     

Phase 3: Connect To Your Server Through SSH

With the automated setup finished, you're ready to retrieve your generated credentials and sign in.

  1. Connect to your server via SSH.
    Open your computer's terminal (or an SSH client like PuTTY) and run the following command to log into your server as the administrator, using your server's public IP address:
    ssh root@your_server_ip
    
    Follow the prompts and enter the new root password you created in the step above.
  2. Your login credentials appear in the MOTD (Message of the Day) whenever you connect, or you can display them by running:
    cat /root/.app_secrets

    Example Output:

    root@server-646882:~# cat /root/.app_secrets
    LANGFLOW_SUPERUSER=admin
    LANGFLOW_SUPERUSER_PASSWORD=abc1234e47e30fe7
    LANGFLOW_SECRET_KEY=T3abc1234ea300d130fa00f408bfa86af22aef9be6a6
    SITE_URL=https://12.3.456.789
    
    

Phase 4: Access the Web Panel

You can now step away from the terminal and switch over to your web browser. 

  1. Navigate to the panel:  Open your browser and go to https://<server-ip>. HTTP (port 80) redirects to HTTPS automatically. Note: If you're using a private IP with a self-signed certificate, you'll need to accept your browser's security warning to continue.

    Example: [https://12.3.456.789] (https://12.3.456.789)

  2. Log in: Use the admin username and the password you retrieved in Phase 3, Step 2, to reach your dashboard.

    Self-Managed - Langflow - Log In
     

Phase 5: Building Flows and Connecting LLMs

  1. Create your first flow
    Click Create first flow to begin with a blank canvas, or pick a starter template from the gallery to get familiar with the interface. Drag components from the left sidebar onto the canvas and link their inputs and outputs together.

    Self-Managed - Langflow - Create - First Flow
     

  2. Connect an LLM provider
    Add an OpenAI, Anthropic, Ollama, or other model component to your flow by clicking Configure Model Providers.

    Self-Managed - Langflow - Configure Model Providers
     

  3. Enter your API keys
    Paste your API key into the api_key field.

    Example formats:

    OpenAI key: sk-...
    Anthropic key: sk-ant-...
    Ollama base URL: http://localhost:11434  (if installed on the same host)
    
    

Phase 6: Post-Deployment Configurations

The automated setup covers the essentials, but you may eventually want to change your password or manually renew your SSL certificate.

  1. Change your superuser password
    1. Sign in to your server via SSH and open the environment file for editing:
      nano /etc/default/langflow
    2. Update the password field:
      LANGFLOW_SUPERUSER_PASSWORD=yournewpassword
    3. Save your changes ( Ctrl + O, Enter, Ctrl + X) and restart the service:
      supervisorctl restart langflow
  2. Manually Re-request an SSL Certificate
    Should you need to manually renew an SSL certificate tied to a public IP after your initial deployment, run:
    /opt/certbot/bin/certbot certonly --webroot --webroot-path /var/www/letsencrypt -m [email protected] --agree-tos --non-interactive --ip-address your_server_ip
    Then test and reload Nginx:
    nginx -t && systemctl reload nginx

Phase 7: Day-to-Day Management

This image also comes equipped with tools to help you manage the server over time. The firewall (UFW) is already set up to allow only essential traffic (Ports 22, 80, and 443), and weekly log rotation is turned on. Note: For more stable performance, we recommend at least 4 vCPUs and 8 GB of RAM.

Whenever you need to troubleshoot, update, or back up the system, these core commands will come in handy:

  • Check health status:
    supervisorctl status langflow
  • Reboot the application:
    supervisorctl restart langflow
  • View live application logs:
    tail -f /var/log/langflow/langflow.log
  • Upgrade Langflow to the newest version:
    sudo -u langflow /opt/langflow/venv/bin/pip install --upgrade langflow
    Then restart Langflow:
    supervisorctl restart langflow
  • Back up your persistent data. First, stop Langflow:
    supervisorctl stop langflow
    Create the backup:
    tar -czf langflow-backup.tar.gz /opt/langflow/data /root/.app_secrets
    Then start Langflow again:
    supervisorctl start langflow

    The backup file includes your login credentials and secret key, so store it somewhere secure.

Additional Information and Examples

You can run cat /root/README.md to see more information and useful commands:

Example Output:

root@server-123456:~# cat /root/README.md
# Langflow

## Description

Langflow is an open-source low-code platform for building and deploying AI-powered applications and multi-agent workflows. It provides a visual drag-and-drop interface for composing LLM pipelines and integrating with OpenAI, Anthropic, Ollama, vector stores, and dozens of other data sources and tools.

This image ships Langflow on Ubuntu 24.04, installed in a Python virtual environment and managed by Supervisord. Nginx sits in front as a reverse proxy with automatic TLS termination. On first boot, a Let's Encrypt certificate is provisioned (or a self-signed fallback for private networks).


## Services

| Service    | Port     | Purpose                                                   |
|------------|----------|-----------------------------------------------------------|
| Langflow   | 7860     | Langflow FastAPI backend (internal only, bound to 127.0.0.1) |
| Nginx      | 80, 443  | Reverse proxy, TLS termination, WebSocket upgrade         |
| Supervisor | n/a      | Process supervisor managing the Langflow backend          |
| OpenSSH    | 22       | Remote access (UFW rate-limited)                          |


## How to Use

### 1. Access Langflow

Wait 3-5 minutes after first boot while Langflow initialises its database and serves frontend assets. Then open your browser to:

```
https://
```

HTTP (port 80) redirects to HTTPS automatically. If the server has a public IP, a Let's Encrypt certificate is issued. On private networks a self-signed certificate is used; accept the browser warning to proceed.

### 2. Log in

A superuser account is created automatically at first boot. Retrieve your credentials with:

```bash
cat /root/.app_secrets
```

The credentials are also shown in the MOTD each time you SSH in. Log in with the `admin` username and the generated password.

### 3. Create your first flow

Click **New Flow** to start from a blank canvas, or choose a starter template from the gallery to explore the interface. Drag components from the left sidebar onto the canvas and connect their inputs and outputs.

### 4. Connect an LLM provider

Add an **OpenAI**, **Anthropic**, **Ollama**, or other model component to your flow and paste your API key into the `api_key` field. Keys are encrypted at rest using `LANGFLOW_SECRET_KEY`.

```
OpenAI key     : sk-...
Anthropic key  : sk-ant-...
Ollama base URL: http://localhost:11434  (if Ollama is installed on the same host)
```

### 5. Change your password

To update the superuser password, edit `/etc/default/langflow` and set a new value:

```
LANGFLOW_SUPERUSER_PASSWORD=yournewpassword
```

Then restart the service:

```bash
supervisorctl restart langflow
```

### 6. SSL / HTTPS certificate behaviour

On first boot, TLS is provisioned automatically:

- **Public IP** - certbot requests a Let's Encrypt certificate tied to the server's public IP. No browser warning.
- **Private IP** - a self-signed certificate is generated as a fallback. HTTPS still works but browsers will warn.

To manually re-request a certificate after deployment:

```bash
/opt/certbot/bin/certbot certonly \
  --webroot --webroot-path /var/www/letsencrypt \
  -m [email protected] --agree-tos --non-interactive \
  --ip-address 

nginx -t && systemctl reload nginx
```

## Useful Commands

```bash
# Service management
supervisorctl status langflow           # Check Langflow status
supervisorctl restart langflow          # Restart Langflow
supervisorctl stop langflow             # Stop Langflow
supervisorctl start langflow            # Start Langflow
systemctl restart nginx                 # Restart nginx

# Logs
tail -f /var/log/langflow/langflow.log        # Live application log
tail -f /var/log/langflow/langflow-error.log  # Live error log
tail -f /var/log/nginx/access.log             # Nginx access log
tail -f /var/log/nginx/error.log              # Nginx error log

# Health check
curl http://127.0.0.1:7860/health       # Backend health endpoint

# Upgrade Langflow
sudo -u langflow /opt/langflow/venv/bin/pip install --upgrade langflow
supervisorctl restart langflow

# Backup persistent data
supervisorctl stop langflow
tar -czf langflow-backup.tar.gz /opt/langflow/data /root/.app_secrets
supervisorctl start langflow

# Check UFW firewall rules
ufw status
```

## First Boot Behaviour

On first boot the cloud-init per-instance script `/var/lib/cloud/scripts/per-instance/001_onboot`:

1. Generates a random superuser password and secret key
2. Writes credentials to `/root/.app_secrets` (mode 0600)
3. Patches `/etc/default/langflow` with the generated values
4. Detects the server's public IP address
5. Requests a Let's Encrypt TLS certificate via certbot (falls back to self-signed if unreachable)
6. Rewrites the nginx config with the full HTTPS reverse-proxy block and reloads nginx
7. Writes the site URL to `/root/.app_secrets`
8. Starts Supervisor and brings up the Langflow backend
9. Self-deletes to prevent re-running on cloud-init reset

Initial startup takes 2-5 minutes while Langflow initialises its SQLite database and generates a secret key.


## Configuration Files Reference

| File                                           | Purpose                                         |
|------------------------------------------------|-------------------------------------------------|
| `/etc/default/langflow`                        | Environment variables (port, auth, DB, secrets) |
| `/opt/langflow/run.sh`                         | Wrapper script that loads env file and starts Langflow |
| `/etc/supervisor/conf.d/langflow.conf`         | Supervisor program definition                   |
| `/etc/nginx/sites-available/langflow`          | Nginx site config (rewritten at first boot)     |
| `/etc/logrotate.d/langflow`                    | Log rotation config (weekly, 5 backups)         |
| `/opt/langflow/data/`                          | SQLite database, flow exports, cache, secret key |
| `/root/.app_secrets`                           | Site URL written at first boot                  |
| `/var/log/langflow/langflow.log`               | Application stdout log                          |
| `/var/log/langflow/langflow-error.log`         | Application stderr log                          |


## Security Hardening

| Hardening       | Detail                                                          |
|-----------------|-----------------------------------------------------------------|
| UFW firewall    | Only ports 22, 80, 443 open - default deny inbound             |
| SSH             | Password authentication disabled, key-only access              |
| Langflow        | Bound to 127.0.0.1:7860 - not reachable directly from outside  |
| Secret key      | `LANGFLOW_SECRET_KEY` encrypts API keys stored in flows        |
| Auth            | Login required by default; superuser credentials generated at first boot |
| TLS             | HTTPS enforced; HTTP redirects to HTTPS                        |


## Image Contents

This image installs and configures:

- Langflow (latest) in a Python virtual environment at `/opt/langflow/venv`
- Supervisord managing the Langflow process as the `langflow` system user
- Nginx as a reverse proxy with HTTP -> HTTPS redirect and WebSocket support
- Certbot (via pip) for automatic Let's Encrypt TLS certificates
- UFW firewall with ports 22, 80, and 443 open
- Log rotation at `/etc/logrotate.d/langflow`
- This README at `/root/README.md`


## Minimum Resources

| Resource | Minimum  | Recommended |
|----------|----------|-------------|
| CPU      | 2 vCPUs  | 4 vCPUs     |
| RAM      | 4 GB     | 8 GB        |
| Disk     | 20 GB    | 30 GB       |

> Langflow loads a significant number of ML-related Python packages at startup. 4 GB RAM is the practical minimum for a stable instance; 8 GB is comfortable for running larger flows or multiple concurrent users.


## Links

- Manage: [https://SERVER_IP/](https://SERVER_IP/)
- Documentation: [https://docs.langflow.org](https://docs.langflow.org)
- Quickstart guide: [https://docs.langflow.org/get-started-quickstart](https://docs.langflow.org/get-started-quickstart)
- Components reference: [https://docs.langflow.org/components-overview](https://docs.langflow.org/components-overview)
- Integrations (LLM providers): [https://docs.langflow.org/integrations-langchain](https://docs.langflow.org/integrations-langchain)
- GitHub: [https://github.com/langflow-ai/langflow](https://github.com/langflow-ai/langflow)

Loading...