---
title: "Deploy Moltis"
description: "Personal AI assistant server in Rust: tools, memory, chat channels"
category: "AI/ML"
url: https://railway.com/deploy/moltis-2
---

# Deploy Moltis

Personal AI assistant server in Rust: tools, memory, chat channels

**[Deploy Moltis on Railway](https://railway.com/template/moltis-2)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/moltis-2/manifest.json

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### Moltis https://raw.githubusercontent.com/moltis-org/moltis/20261023.01/website/favicon-512.png

- **Source:** https://github.com/aalfath/moltis-railway-template
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# 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:**

1. Open the service's **Variables** tab and copy `MOLTIS_PASSWORD`.
2. Open the public URL and log in with it.
3. Change the password in **Settings → Authentication** if you like, and add a passkey there. The variable is only read on the very first boot.
4. 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_KEY` or `VERCEL_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 with `moltis auth login` through `railway 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.



## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/moltis-2
