
Deploy MaxKB Agents
MaxKB RAG agents with pgvector, Redis and a generated admin password
MaxKB
Just deployed
/opt/maxkb
Data
PostgreSQL
Just deployed
/var/lib/postgresql/data
Redis
Just deployed
/data
Deploy and Host MaxKB Agents on Railway
MaxKB is an open-source platform for knowledge-base question answering and AI agents. Upload documents or crawl a website into a knowledge base, and MaxKB splits and vectorizes them; agents you build in its console then answer from that knowledge with the language model you connect, through a shareable chat page, an embeddable widget or an OpenAI-compatible API. Workflows, custom tools and MCP tools extend what an agent can do.
About Hosting MaxKB Agents
The template runs the official MaxKB v2.10.9-lts community image, pinned by digest, with PostgreSQL 17 and pgvector for records, vectors and uploaded files, and Redis 8 for sessions, cache and the background vectorization queue. Each service has its own volume. The official image would start its own databases with published passwords and seed the admin user with the published password MaxKB@123..; here MaxKB connects only to the private PostgreSQL and Redis services, and the admin user gets a generated password before MaxKB is reachable, which you copy from the MaxKB service variables. Custom tool code cannot reach the project's private network. MaxKB's bundled embedding model works without any API key; add your own model provider for answers.
Why Deploy MaxKB Agents on Railway
Railway gives MaxKB an HTTPS domain, private networking to its database and cache, persistent volumes, generated secrets and health-checked deploys. Only MaxKB is public; PostgreSQL and Redis are reachable only inside the project.
Common Use Cases
- Answer customer or employee questions from your manuals, policies and help-center pages
- Build an internal knowledge assistant over documents your team uploads
- Embed a support chat widget in your website or product
- Give other systems an OpenAI-compatible API that answers from your own documents
Dependencies for MaxKB Agents Hosting
The deployment uses MaxKB, PostgreSQL with pgvector, and Redis.
Deployment Dependencies
- MaxKB v2.10.9-lts (documentation)
- PostgreSQL 17 with pgvector 0.8.7 on a 5 GB volume, and Redis 8 on a 1 GB volume
- An API key for the language model provider you add (OpenAI, Claude, Gemini, DeepSeek, Ollama or any OpenAI-compatible endpoint)
- Optional: an SMTP provider on port 465 or 587 for password-reset email
Template Content

