Deploy AnythingLLM on Bifrost: Self Hosted Doc Chat and RAG Agents
Deploy and Host AnythingLLM: Self Hosted Doc Chat and RAG Agents
Bifrost
Just deployed
/app/data
Just deployed
/var/lib/postgresql/data
AnythingLLM
Just deployed
/app/server/storage
Deploy and Host AnythingLLM with Bifrost on Railway
AnythingLLM is an open source AI workspace for chatting with your own documents, running RAG, and building no code agents. This template puts AnythingLLM in front of Bifrost, the open source AI gateway from Maxim AI, so every model call is routed, logged, and governed through one OpenAI compatible endpoint.
About Hosting AnythingLLM with Bifrost
The stack is three services: AnythingLLM, Bifrost, and Postgres. AnythingLLM keeps its workspaces, documents, and embeddings on its own volume using a built in vector store, so no external vector database is needed. Bifrost holds your real provider keys and exposes a single OpenAI compatible API, and AnythingLLM is pre configured to call it through its Generic OpenAI provider over the private network. Postgres backs Bifrost's configuration and request logs. After deploy, open the Bifrost dashboard, add one or more provider keys under Model Providers, then confirm the model name in AnythingLLM matches a model Bifrost serves. Every completion AnythingLLM sends then flows through Bifrost, where you get virtual keys, budgets, failover, and a full request log.
Common Use Cases
- Chat privately with PDFs, docs, and websites while keeping every model call behind one governed gateway.
- Build no code AI agents that switch between providers without touching AnythingLLM config.
- Give a team a shared document workspace with per key budgets, rate limits, and audit logs enforced in Bifrost.
Dependencies for AnythingLLM with Bifrost Hosting
- Postgres for Bifrost configuration and request log storage.
- One or more model provider keys, added in the Bifrost dashboard after deploy.
Deployment Dependencies
- AnythingLLM: https://github.com/Mintplex-Labs/anything-llm
- Bifrost docs: https://docs.getbifrost.ai
- Bifrost Docker Hub: https://hub.docker.com/r/maximhq/bifrost
Why Deploy AnythingLLM with Bifrost 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.
Running AnythingLLM with Bifrost on Railway gives you a private document workspace and a governed model gateway in one deploy, with provider keys, budgets, and logs centralized instead of scattered across apps.
Template Content
Bifrost
maximhq/bifrost:latestAnythingLLM
mintplexlabs/anythingllm:latest
