Deploy FastGPT Knowledge Base + Workflows

FastGPT knowledge base and AI workflows, factory root password replaced

Deploy FastGPT Knowledge Base + Workflows

Just deployed

Just deployed

Just deployed

Just deployed

Just deployed

Just deployed

Just deployed

Just deployed

Deploy and Host FastGPT on Railway

FastGPT is an open source platform for building AI knowledge bases and agent workflows. Import documents, web pages or APIs into datasets, then build chat apps and visual workflows on top of them with retrieval, tool calls, HTTP and MCP nodes, and JavaScript or Python code nodes. It works with OpenAI, Anthropic, DeepSeek, Ollama and other OpenAI compatible providers.

About Hosting FastGPT

This template runs the full open source FastGPT stack: the app, MongoDB (as a replica set), Postgres with pgvector, Redis, RustFS object storage, the plugin service, the code sandbox and AI Proxy for model channels. Every secret is generated at deploy time. FastGPT normally creates its admin account with the password 123456; this template replaces it with a generated one before the app goes online, so a fresh instance cannot be claimed by someone who guesses the default.

First steps after deploy:

  1. Open the FastGPT service, copy ROOT_PASSWORD from its Variables tab, then open its public domain.
  2. Log in as root with that password. FastGPT asks you to set your own password; do it.
  3. Open the model provider settings from the account menu, add a channel with your provider API key, then enable a chat model and an embedding model.
  4. Create a knowledge base, upload a document, and build an app or workflow that uses it.

Common Use Cases

  • Company or product knowledge base chat with cited answers
  • Customer support bots embedded on a website or connected to messaging channels
  • Visual AI workflows that mix retrieval, HTTP calls, MCP tools and code

Dependencies for FastGPT Hosting

  • FastGPT: the web app and API (public).
  • MongoDB: apps, datasets, chats and users, as a single node replica set, with a volume.
  • Postgres (pgvector): vector search, plus AI Proxy tables, with a volume.
  • Redis: queues, locks and sessions, with a volume.
  • RustFS: S3 compatible storage for uploaded files and images, with a volume. Its S3 endpoint is public so avatars and tool icons load; anonymous users can only read the public bucket.
  • FastGPT Plugin: system tools and the model provider catalog (private).
  • Code Sandbox: runs workflow code nodes in isolation (private).
  • AI Proxy: stores model channels and provider keys (private).

Deployment Dependencies

Key Variables

ServiceVariablePurpose
FastGPTROOT_PASSWORDInitial password for the root user. Only applied while root still has the factory password
FastGPTAES256_SECRET_KEYEncrypts stored secrets. Never rotate after first use
FastGPTROOT_KEY, FILE_TOKEN_KEY, INVOKE_TOKEN_SECRETGenerated secrets
FastGPTCHECK_INTERNAL_IPBlocks workflows from calling private addresses (on by default here)
MongoDBWIREDTIGER_CACHE_GBMongo cache size, 0.25 GB by default; raise on bigger plans
Code SandboxSANDBOX_POOL_SIZEPre-warmed code workers (2)

Notes: plan for Hobby or higher. The app and code sandbox need more than the Free plan's 0.5 GB of RAM, and real datasets outgrow Trial volumes quickly. The Agent Sandbox (virtual machine) feature is not included because it needs a Docker socket. Each boot of the FastGPT service initializes twice (once on loopback to secure the root account), so restarts take a little longer.

Why Deploy FastGPT 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 FastGPT 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.


Template Content

More templates in this category

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

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

zer0person
1
View Template
Möbius v0.1 Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

bento
1