Introducing Render Sandboxes: a computer for every agent.
Why deploy Langflow on Render?
Langflow is a visual development tool for building AI agents and workflows using a drag-and-drop editor. It lets developers design, test, and deploy LLM-based applications as APIs or MCP servers without building the orchestration logic from scratch.
This template wires Langflow's visual AI builder to a managed Render Postgres 16 instance and a 5 GB persistent disk out of the box, so your flows, user accounts, and uploaded files survive restarts and redeploys without you provisioning or connecting anything. Render auto-generates LANGFLOW_SECRET_KEY and LANGFLOW_SUPERUSER_PASSWORD, flips the production-critical settings Langflow ships wrong by default (like disabling the auto-login that makes every visitor an admin), and runs database migrations on first boot—turning a multi-step Docker, database, and security hardening setup into one click. You get a pinned official Langflow image you can upgrade by editing a single tag in render.yaml, a locked-down Postgres with no external access, and a /health_check endpoint already configured for Render's health monitoring.
Architecture
What you can build
You'll have a private Langflow instance running at a public URL, with a Postgres database and persistent disk already wired up and an admin account created with a generated password. Sign in, add your model provider keys, and you can build AI agents and workflows in the visual editor, then call them as APIs or connect to them as MCP servers. Auto-login is off and new accounts stay inactive until you approve them, so the instance isn't open to anyone who finds the URL.
Key features
- Pinned Docker image: Runs the official langflowai/langflow:1.13.1 image from Docker Hub with version upgrades controlled by editing a single tag in render.yaml.
- Secure auth defaults: Disables auto-login, generates an admin account with a random password, and keeps new users inactive until an admin activates them.
- Encrypted secret persistence: Generates LANGFLOW_SECRET_KEY once so stored API keys and global variables stay decryptable across redeploys.
- Managed Postgres and disk: Wires in a Postgres 16 database for flows and messages plus a 5 GB persistent disk mounted at /app/data for config and uploaded files.
- Locked-down components and CORS: Restricts custom Python component editing to admins and scopes CORS to the service's external URL instead of a wildcard.
Use cases
- Startup founder prototypes a customer-support chatbot flow, exposed as API
- ML engineer serves a RAG pipeline to internal apps via MCP
- Product team visually tests prompt chains across multiple LLM providers
- Developer deploys a secured, multi-user Langflow instance with Postgres persistence
What's included
Service | Type | Purpose |
|---|---|---|
langflow | Web Service | Visual editor, flow runtime, API, and MCP server |
langflow-db | PostgreSQL | Users, flows, messages, and global variables |
langflow-data | Persistent Disk | Config folder and uploaded files at /app/data |
Next steps
- Open your service URL and sign in as
adminusing theLANGFLOW_SUPERUSER_PASSWORDvalue from the service's Environment page — You should land on the Langflow dashboard with the flow list and a 'New Flow' option, confirming the admin account was created on first boot - Configure a model provider key under Settings → Global Variables, then build a flow from a starter template and click Run — You should see the flow execute end-to-end and return a response from your LLM provider, confirming the stored key was encrypted with LANGFLOW_SECRET_KEY and used successfully
- Test the API by running
curl -fsS "https://<langflow>.onrender.com/health_check"against your service — You should get a successful response confirming the container is Live and serving the API alongside the visual editor
Resources
Repository
For AI agents
Drop into your coding agent to explore and deploy this template.