Railway

Deploy FlowiseAI [Updated Aug '26]

Flowise [Aug '26] (Visual Builder for LLM Apps & AI Agents) Self Host

Deploy FlowiseAI [Updated Aug '26]

/var/lib/postgresql/data

Just deployed

/home/node/.flowise

Deploy and Host Flowise-self-hosted on Railway

Flowise is the open-source drag-and-drop builder for LLM apps, chatbots, and multi-agent workflows. It's the tool teams reach for when they want LangChain-style power without writing LangChain boilerplate by hand every time they test a new prompt or model combination.

About Hosting Flowise-self-hosted

Every flow you build in Flowise stores something sensitive: an OpenAI or Anthropic API key, a connection string to your vector store, sometimes credentials for a tool your agent calls out to. That's the same category of thing an internal admin tool touches, and it's worth treating with the same seriousness.

Flowise Cloud is a reasonable option if you want zero infrastructure to manage, but its pricing is metered by predictions, not just seats. The Starter plan is $35/month, and Pro jumps to $65/month once you cross the metering threshold, a moderately busy customer-facing chatbot can burn through 10,000 predictions in a month without much effort. Self-hosting removes that ceiling entirely. Your cost becomes flat infrastructure plus whatever LLM API usage your flows actually generate, the same API cost you'd pay regardless of where Flowise itself runs.

There's a real implementation detail worth knowing before you deploy this template. Flowise 3.0.1 and later quietly removed the old FLOWISE_USERNAME/FLOWISE_PASSWORD basic-auth env vars in favor of a proper multi-user system with JWT sessions and a real signup flow. Confirmed against Flowise's own current .env.example on GitHub, those two variables aren't even mentioned anymore. If you're following an older tutorial or reference template that still lists them, they'll simply be ignored, real setup now happens through a browser-based admin signup screen the first time you open your instance, the same "first visitor becomes admin" pattern several other modern self-hosted tools use.

Common Use Cases

  • Customer-facing AI chatbots: Build and embed a support or sales chatbot without hand-writing LangChain code.
  • Internal RAG assistants: Connect a vector store to your internal docs and ship a Q&A tool your team actually opens.
  • Multi-agent workflows: Chain multiple LLM calls, tools, and memory together on one visual canvas.
  • AI feature prototyping: Test a model, prompt, and tool combination visually before committing to custom code.
  • API-first AI backends: Expose any flow as a REST endpoint other services in your stack can call directly.
  • Internal tooling teams building AI features fast: Skip the boilerplate of wiring a model, memory, and vector store together in raw code.

Dependencies for Flowise-self-hosted Hosting

  • A database for flows, credentials, and chat history, Postgres, MySQL, or SQLite are all supported.
  • Persistent storage for the encryption key that protects stored credentials and any uploaded file blobs.

Deployment Dependencies

Reference: Flowise GitHub Repository, Flowise Docs, Flowise Environment Variables Reference.

Implementation Details

This template runs flowiseai/flowise:3.1.4, pinned to a specific numbered version confirmed against Docker Hub's tags API as the current stable release at authoring time. It uses Railway's native Postgres plugin rather than Flowise's default embedded SQLite, since SQLite isn't built for the concurrent access pattern a real deployment sees, and Railway's own managed Postgres is a better fit than trying to keep a SQLite file consistent on a Railway volume. Flowise's official image runs as a non-root node user, confirmed directly in its own Dockerfile and its docker-compose.yml's own comment ("Ensure the host directory is writable by that user"). Railway creates fresh volumes owned by root, so this template's Dockerfile adds a small wrapper entrypoint that fixes ownership on /home/node/.flowise before Flowise itself starts, the exact same class of fix this project's pgAdmin template needed, applied proactively here instead of waiting to discover the crash live.

How Flowise Compares to the Alternatives

Vs. Langflow: Both are open-source and free to self-host, and both come from the same LangChain-adjacent world. Langflow's managed cloud option (via DataStax) actually shut down in April 2026, so self-hosting is now the primary way to run it, not just an option. Flowise leans more toward production deployment with built-in API endpoints for every flow; Langflow leans more toward LangChain-native prototyping.

Vs. Dify: Dify is a strong choice if you're building a polished, end-user-facing AI app with a more opinionated UX out of the box. Flowise trades some of that polish for flexibility, more raw building blocks, and a bigger integration surface for agent experimentation. Dify's cloud Professional tier runs $59/month, but its self-hosted version is also free with no meaningful limits, similar to Flowise's own self-hosted story.

Vs. n8n: n8n is a broader workflow automation platform where AI is one node type among dozens, useful if your actual need is "automate this multi-step business process, and one step happens to call an LLM." Flowise is purpose-built specifically around LLM chains, agents, and chat, if the core of what you're building is the AI logic itself, Flowise's canvas is more directly suited to that than n8n's general automation model.

Getting Started

Open your Railway domain once the deploy finishes, and you'll land on an admin setup screen rather than a login form, this is expected, it's how Flowise 3.x's first-boot flow works now. Create your admin account here, this becomes the instance owner, so make sure it's you.

Once you're in, click "Add New" to create your first chatflow. Drag a Chat Model node onto the canvas, connect your LLM provider's API key (OpenAI, Anthropic, or whichever you're using), and wire it directly to a Chat Trigger node. This two-node setup is the fastest way to confirm the whole pipeline actually works, model, credential storage, and the visual canvas itself, before building anything more complex.

From there, add a Memory node if you want the chatbot to remember context across a conversation, or a Vector Store node if you're building a RAG assistant over your own documents. Each flow can be tested directly in Flowise's built-in chat panel before you ever expose it externally.

Once a flow is ready, use the API endpoint Flowise generates automatically for it, found under the flow's own API panel, to call it from any other service in your stack. This is what makes Flowise useful as more than a prototyping tool, a flow you build visually becomes a real callable backend without extra deployment work.

One thing worth testing deliberately, not assuming: redeploy the service once early, before you've built anything you'd be upset to lose, and confirm your flows, credentials, and admin account all survive. That's the real proof persistence is wired up correctly.

Why Deploy Flowise-self-hosted on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying Flowise-self-hosted on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

Frequently Asked Questions

Why don't I see a username/password login screen on first boot?

Flowise 3.0.1 and later replaced that with a real admin-signup flow. You'll see a setup screen instead of a login form the first time you visit, create your account there, it becomes the instance owner automatically.

Do I need to bring my own LLM API keys?

Yes, Flowise doesn't include model access itself. You connect your own OpenAI, Anthropic, or other provider API keys inside each flow, the same as any self-hosted LLM tooling.

Will my flows survive a redeploy?

Yes, flows and chat history live in the Postgres database, and the encryption key protecting stored credentials lives on the persistent volume, both independent of the app service's own redeploys.

Can I connect this to a database that isn't on Railway?

Yes, Flowise can connect to any reachable Postgres, MySQL, or (less commonly for production) SQLite instance, set the DATABASE_* variables to point wherever your database actually lives.

Is there a limit on how many flows or predictions I can run self-hosted?

No, unlike Flowise Cloud's metered prediction limits, self-hosting has no artificial ceiling. Your only real constraint is your own server resources and whatever usage limits your LLM provider itself imposes.

What happens to the very first person who completes admin setup?

They become the instance owner, similar to how several other self-hosted tools treat the first real signup. Make sure that's you, not a teammate testing the link first while you're still setting things up.

Can I run more than one AI agent or chatbot from the same Flowise instance?

Yes, each chatflow or agent flow is independent, with its own API endpoint and credentials. No per-flow limit on a self-hosted instance, build as many as you need.

What's the difference between a "chatflow" and an "agentflow" in Flowise?

A chatflow is a linear, predictable sequence, good for Q&A or RAG. An agentflow gives the model more autonomy over its own steps and tool calls. Start with a chatflow, move to agentflows once you need that flexibility.

Does this template include any LLM provider or vector database?

No, this template deploys Flowise and its Postgres database only. You bring your own LLM provider API keys and, if your flow needs one, connect to any vector store Flowise supports, either a separate Railway service or an external managed one.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
113
View Template
stella
Self-host stella with web, API, Postgres, Redis, and object storage.

Jan Kubica
1
View Template
Hermes Agent | OpenClaw Alternative with Dashboard
Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

codestorm
56