> ## Documentation Index
> Fetch the complete documentation index at: https://docs.springwinter.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy Langflow

> Set up Langflow and connect its dependencies with Spring Winter.

## Deploy with an agent

Copy agent prompt

Help me deploy Langflow. Read [https://docs.springwinter.dev/deploy/open-source/langflow](https://docs.springwinter.dev/deploy/open-source/langflow.md), [https://docs.langflow.org/deployment-docker](https://docs.langflow.org/deployment-docker), and [https://docs.springwinter.dev/api-reference/agents](https://docs.springwinter.dev/api-reference/agents.md). Fetch the public OpenAPI specification from my Spring Winter origin. Use my local SPRINGWINTER\_TOKEN or existing SPRINGWINTER\_API\_TOKEN. Keep credentials out of chat, logs and source.

Confirm my project, AWS connection, Region and budget. Pin a release. Check its required services, container port, health path, network access and durable storage. Data requirements for this deployment: PostgreSQL for application data. File-dependent features can also need durable storage.

1. Create a private PostgreSQL database. Wait for the writer and obtain its host, port and application credentials from Connect.
2. Set LANGFLOW\_DATABASE\_URL to the PostgreSQL writer connection. Keep authentication enabled, set an initial admin password securely, and preserve the release’s secret key across deploys.
3. Use langflowai/langflow on port 7860. Check what the release stores under LANGFLOW\_CONFIG\_DIR. Provide supported durable storage or use a persistent host if those files must survive task replacement.
4. Start Langflow after the database is ready. Wait for startup and schema initialization before creating flows. Connect external model and vector services before running any flow that uses them.

Show me the planned resources, database and migration order, secret names and estimated cost. Identify components that require separate hosting. Wait for approval before making changes. Include any planned restart, task replacement or restore in that approval. Use documented Spring Winter operations and wait for each workflow to finish. Sign in, save a small flow, run it with a test input and confirm that the flow survives replacement. Report resource links and anything you could not verify.

## Before you start

[Connect your AWS account](https://docs.springwinter.dev/connect-aws.md) and choose a project. Review the [upstream deployment instructions](https://docs.langflow.org/deployment-docker) for the release you plan to pin.

## Data dependencies

PostgreSQL for application data. File-dependent features can also need durable storage. See [SQL databases](https://docs.springwinter.dev/deploy/databases.md) for private writer access and connection details.

## Deployment order

1. Create a private PostgreSQL database. Wait for the writer and obtain its host, port and application credentials from Connect.
2. Set `LANGFLOW_DATABASE_URL` to the PostgreSQL writer connection. Keep authentication enabled, set an initial admin password securely, and preserve the release’s secret key across deploys.
3. Use `langflowai/langflow` on port 7860. Check what the release stores under `LANGFLOW_CONFIG_DIR`. Provide supported durable storage or use a persistent host if those files must survive task replacement.
4. Start Langflow after the database is ready. Wait for startup and schema initialization before creating flows. Connect external model and vector services before running any flow that uses them.

Use [Runtime variables](https://docs.springwinter.dev/concepts/environment-variables.md) for runtime credentials. For a [Spring Winter web server](https://docs.springwinter.dev/deploy/web-servers.md), set an app-supported health path that returns HTTP 200 without credentials. Check **History** before running the application check.

## Verify the deployment

Sign in, save a small flow, run it with a test input and confirm that the flow survives replacement.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.