Alma Server
Alma Server is Alma without the desktop window: the same backend, running on a Linux machine you control. Threads, skills, MCP servers, scheduled tasks and tools all run on the server, and you use it from the phone apps, from a browser, or from a terminal. It is the way to keep Alma running in the cloud or on a home server.
Install
Download alma-server-<version>-linux-x64.tar.gz (or -arm64) from the latest release:
tar -xzf alma-server-<version>-linux-<arch>.tar.gz
sudo mv alma-server-<version>-linux-<arch> /opt/alma-server
sudo ln -sf /opt/alma-server/bin/alma-server /usr/local/bin/alma-server
alma-server --versionNode.js, the native modules, bun and uv are included; there is nothing else to install.
With Docker
curl -fsSLO https://raw.githubusercontent.com/yetone/alma-releases/main/docker/compose.yaml
docker compose up -dThe image is ghcr.io/yetone/alma-server (amd64 and arm64). Everything it keeps lives in the alma volume. It uses the host's network, so a phone on the same Wi-Fi or Tailscale network can reach it directly.
Run
alma-serverData lives in ~/.local/share/alma (--data-dir or ALMA_DATA_DIR to change it). The server listens on 127.0.0.1:23001 only (--port or ALMA_PORT).
To keep it running, use a systemd service that runs as your own user:
[Unit]
Description=Alma server
After=network-online.target
Wants=network-online.target
[Service]
User=alma
ExecStart=/usr/local/bin/alma-server
Restart=on-failure
[Install]
WantedBy=multi-user.targetAdd providers: the web UI
Forward the port from your own computer and open it in a browser:
ssh -N -L 23001:127.0.0.1:23001 you@your-server
# then open http://127.0.0.1:23001It is the full Alma interface: add providers and models in Settings, then chat.
Subscription providers (Codex, Cursor) sign in through a browser. On a server, Connect shows the sign-in link to open on your computer. Codex then redirects to localhost:1455, which fails to load: paste that page's address back into the dialog, or forward that port too (-L 1455:127.0.0.1:1455).
Use it from your phone
- Copy a relay token from community.alma.now.
- On the server:
alma-server pair --token <token>(with Docker:docker exec -it alma alma-server pair --token <token>). - Scan the QR code it prints with the Alma app.
| Command | What it does |
|---|---|
alma-server pair | Print the pairing code again |
alma-server pair --new-code | New code; every paired phone is signed out |
alma-server unpair | Turn the relay off |
alma-server status | Show what is connected |
alma-server chat | Chat in the terminal |
Updates
The server updates itself. Every 30 minutes it checks for a release, downloads and verifies it, and restarts into it once no reply is being written, no scheduled task is due and no herdr agent is working. If a new version fails to start, the previous one keeps running. The phone app's Settings shows the server's version and can install an update right away.
Set ALMA_AUTO_UPDATE=download to download only and install when you ask, or ALMA_AUTO_UPDATE=0 to turn background checks off.
Tool approval
ALMA_TOOL_APPROVAL decides what happens when a tool needs approval:
auto(default): run itask: ask the open web UI or the paired phone; refuse when neither is connecteddeny: refuse it
Security
Anyone who can reach the port controls the server, including running shell commands as its user. Keep it on 127.0.0.1 (the default) and use SSH forwarding or the relay. Don't put it behind a public reverse proxy without authentication.
