Skip to content

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:

bash
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 --version

Node.js, the native modules, bun and uv are included; there is nothing else to install.

With Docker ​

bash
curl -fsSLO https://raw.githubusercontent.com/yetone/alma-releases/main/docker/compose.yaml
docker compose up -d

The 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 ​

bash
alma-server

Data 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:

ini
[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.target

Add providers: the web UI ​

Forward the port from your own computer and open it in a browser:

bash
ssh -N -L 23001:127.0.0.1:23001 you@your-server
# then open http://127.0.0.1:23001

It 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 ​

  1. Copy a relay token from community.alma.now.
  2. On the server: alma-server pair --token <token> (with Docker: docker exec -it alma alma-server pair --token <token>).
  3. Scan the QR code it prints with the Alma app.
CommandWhat it does
alma-server pairPrint the pairing code again
alma-server pair --new-codeNew code; every paired phone is signed out
alma-server unpairTurn the relay off
alma-server statusShow what is connected
alma-server chatChat 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 it
  • ask: ask the open web UI or the paired phone; refuse when neither is connected
  • deny: 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.