Deploy Moltis
A personal AI gateway written in Rust. One binary, no runtime, no npm.
moltis
Just deployed
/data
Deploy and Host Moltis on Railway
Moltis is a personal AI gateway written in Rust — a single binary with no runtime dependencies. It sits between you and multiple LLM providers (OpenAI Codex, GitHub Copilot, local models), offering streaming responses, tool execution in sandboxed containers, memory, hooks, and a built-in web UI.
About Hosting Moltis
Deploying Moltis involves running its pre-built Docker image (ghcr.io/moltis-org/moltis:latest) with the --no-tls flag, since Railway handles TLS termination. Moltis needs persistent storage for its configuration and data (SQLite databases, session history, memory). On first run, a one-time setup code is printed to logs — you'll use it to set a password or register a passkey. You'll also want to set MOLTIS_PASSWORD as an environment variable for cloud auth. Note that sandboxed command execution requires Docker socket access, which isn't available on Railway — chat and tool-calling still work, but shell-based tools won't.
Common Use Cases
- Running a private, multi-provider AI chat gateway accessible from anywhere with built-in authentication, session persistence, and a web UI
- Connecting to LLM providers with agent capabilities — tool calling, sub-agent delegation, web browsing, and memory-powered context injection
- Integrating AI into workflows via Telegram, webhooks, scheduled tasks, and MCP tool servers without managing complex infrastructure
Dependencies for Moltis Hosting
- Pre-built Docker image:
ghcr.io/moltis-org/moltis:latest(multi-arch: amd64/arm64) - Persistent volume mounted at
/data
Deployment Dependencies
Implementation Details
Set the following environment variables in your Railway service:
MOLTIS_PASSWORD=your-secure-password
The start command binds to all interfaces on port 8080 with TLS disabled (Railway handles TLS termination):
moltis --bind 0.0.0.0 --port 8080 --no-tls
Mount a persistent volume at /data to preserve configuration, databases, sessions, and memory across deployments.
Why Deploy Moltis 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 Moltis 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