Deploy Moltis
Personal AI assistant server in Rust: tools, memory, chat channels
Just deployed
/data
Deploy and Host Moltis on Railway
Moltis is an open-source personal AI assistant server written in Rust. It runs as one binary with a built-in web UI. It connects to LLM providers such as OpenAI, Anthropic, Gemini or OpenRouter, and gives the assistant tools, long-term memory, scheduled tasks, MCP servers and chat channels such as Telegram, Discord and Slack.
About Hosting Moltis
This template runs the official Moltis image (ghcr.io/moltis-org/moltis, release 20261023.01, pinned by digest). It builds from a small public GitHub wrapper repo. The single Moltis service serves plain HTTP on port 8080 behind Railway's HTTPS edge and has a /health check.
Everything Moltis stores lives on one Railway volume at /data: moltis.toml, its SQLite databases, sessions, memory, skills and the vault. A redeploy or restart keeps it.
The login password is generated at deploy time, so the setup page is never public. You supply only one LLM provider API key. Moltis idles at about 100 MB of RAM and fits Railway's 0.5 GB plan.
Common Use Cases
- A private, always-on AI assistant with memory that you reach from any browser or phone (PWA)
- An assistant on Telegram, Discord, Slack, Matrix or WhatsApp that uses your own model API key
- Scheduled agent jobs, webhooks and MCP tool servers, driven from one self-hosted gateway
Dependencies for Moltis Hosting
- An API key for one LLM provider (OpenAI by default; Anthropic, Gemini, OpenRouter, Groq, Mistral, DeepSeek and others also work)
- A Railway volume for
/data(included in the template)
Deployment Dependencies
- Moltis source and releases: https://github.com/moltis-org/moltis/releases
- Moltis documentation: https://docs.moltis.org
- Template wrapper repo: https://github.com/aalfath/moltis-railway-template
Implementation Details
Services: one Moltis service, built from aalfath/moltis-railway-template. Its Dockerfile is FROM ghcr.io/moltis-org/moltis:20261023.01@sha256:… plus a start script. The script hands the volume to the image's unprivileged moltis user, sets cloud mode (MOLTIS_NO_TLS, MOLTIS_BEHIND_PROXY, MOLTIS_DEPLOY_PLATFORM=railway) and starts the gateway on PORT. If Moltis exits unexpectedly, the service exits non-zero, so Railway restarts it.
Variables:
| Variable | Default | What it does |
|---|---|---|
MOLTIS_API_KEY | (you enter it) | API key for the provider in MOLTIS_PROVIDER |
MOLTIS_PROVIDER | openai | Provider for that key: openai, anthropic, gemini, openrouter, groq, mistral, deepseek, xai… |
MOLTIS_PASSWORD | generated | Your login password, set once on first boot |
MOLTIS_EXTERNAL_URL | https:// + the Railway domain | Public URL, used for passkeys and links |
PORT | 8080 | Port Moltis listens on |
After deploy:
- Open the service's Variables tab and copy
MOLTIS_PASSWORD. - Open the public URL and log in with it.
- Change the password in Settings → Authentication if you like, and add a passkey there. The variable is only read on the very first boot.
- Add more providers, channels (Telegram, Discord…) and MCP servers in Settings. Keys you enter there are stored encrypted in the vault on the volume.
If you add a custom domain, set MOLTIS_EXTERNAL_URL to it so passkeys work on that hostname.
Not included:
- The Docker-socket sandbox for shell tools. Railway has no Docker socket, so Moltis falls back to its restricted-host sandbox. For full container isolation, set
DAYTONA_API_KEYorVERCEL_TOKEN(see Moltis' remote sandbox docs). - Local LLMs and Ollama. They are hidden on cloud deploys.
- OAuth providers that redirect to
localhost(OpenAI Codex, GitHub Copilot). Log in to those withmoltis auth loginthroughrailway ssh.
Updates: the template builds from the GitHub repo above. When a new Moltis release is pinned there, Railway shows an "update available" notice on your project, and you choose when to apply it. Read CHANGELOG.md in the repo first. Your data stays on the volume.
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
MOLTIS_API_KEY
API key for your LLM provider (the one named in MOLTIS_PROVIDER, OpenAI by default). Required for the assistant to answer.

