Skip to content
SocialMate
Knowledge base Self-hosting (server & VPS)

Install SocialMate without Docker (systemd, from SocialMate 3)

Prefer not to run Docker? From SocialMate 3, a one-line installer sets up Node, a dedicated user, and a hardened systemd service that starts on boot. Here's the whole flow.

4 min read Updated November 27, 2026

If you’d rather not use Docker, SocialMate’s native installer (published with every release from SocialMate 3) runs it as a normal Linux service under systemd. It sets up everything for you and the service starts automatically on every boot. Use a 64-bit Linux server (Ubuntu/Debian recommended). If you’re comfortable with Docker, the Docker guide is a little simpler — this is the alternative.

Step 1 — Run the installer

SSH into your server and run:

curl -fsSL https://github.com/micbwilliam/socialmate-releases/releases/latest/download/install.sh | sudo bash

This one command:

  • makes sure the server runs on Node.js 22: it uses the system’s Node when that is Node 22, installs Node 22 when there is no Node at all, and on a server already on another version (say Node 20 or 24) installs a private Node 22 under /opt/socialmate/node and leaves the system’s own Node alone,
  • creates a locked-down socialmate system user,
  • unpacks the latest release to /opt/socialmate,
  • writes a secrets file at /etc/socialmate/socialmate.env (readable only by root) with a generated admin password and vault key,
  • installs the service, enables it to start on boot, starts it, and waits until it answers — if it doesn’t within a minute, the installer prints the service log and stops instead of reporting success.

The data folder /var/lib/socialmate is readable by the socialmate user only, and the program files under /opt/socialmate belong to root.

With HTTPS on your own domain

Point the domain’s DNS A record at the server, open ports 80 and 443, then run:

curl -fsSL https://github.com/micbwilliam/socialmate-releases/releases/latest/download/install.sh | sudo bash -s -- --domain socialmate.example.com

--domain installs Caddy, which fetches a free Let’s Encrypt certificate and serves the console at https://socialmate.example.com/admin. It also binds the server to 127.0.0.1, so port 3456 stops answering from outside and your password and API keys only ever travel over HTTPS. Until the certificate is issued, reach the console through an SSH tunnel: ssh -L 3456:127.0.0.1:3456 you@your-server, then open http://localhost:3456/admin.

Without usage analytics

The server sends usage analytics by default (never messages, contacts or numbers). Add --no-telemetry (it combines with --domain) to switch it off before the service first starts: … | sudo bash -s -- --no-telemetry. On an existing install, add SOCIALMATE_TELEMETRY=0 (or DO_NOT_TRACK=1) to /etc/socialmate/socialmate.env and restart, or turn it off in the console under Settings → Privacy & data.

Step 2 — Note your admin password

The installer prints your generated admin password once, at the very end — copy it. Missed it? Read it back (root only):

sudo grep ADMIN_PASSWORD /etc/socialmate/socialmate.env

Step 3 — Verify it’s running

systemctl status socialmate          # should say: active (running)
systemctl is-enabled socialmate      # should say: enabled
curl -fsS http://localhost:3456/health && echo OK

enabled means it will come back on its own after a reboot — you don’t have to do anything.

Step 4 — Log in

Open http://YOUR_SERVER_IP:3456/admin, sign in with the password from Step 2, and link your WhatsApp under Accounts → Add account (scan the QR from your phone). The console is identical to the Docker install and the desktop app.

Reading the logs

The service logs to the systemd journal — follow them live with:

journalctl -u socialmate -f

The same lines are kept as daily files in /var/lib/socialmate/.wa-agent-server/logs/sm-YYYY-MM-DD.log. Set SM_LOG_LEVEL=debug (or warn, error; the default is info) in /etc/socialmate/socialmate.env and restart to change how much is logged.

Updating

sudo socialmate-update

This downloads the latest release, verifies its checksum, swaps it in, installs that release’s service file and its own newer version, keeps a private Node.js copy on Node 22’s latest release, and restarts the service. Your accounts, database, and license seat are untouched — they live in /var/lib/socialmate, separate from the program files.

Installed on SocialMate 2.0? A 2.0.x install still has the old updater, which can’t refresh itself. Re-run the installer once (the Step 1 command) — it keeps your data, settings and admin password — and sudo socialmate-update works as above from then on.

Persist /var/lib/socialmate. That’s your data dir — DB, WhatsApp sessions, and the machine id your license is bound to. The installer puts it in the right place; just don’t delete it, or the server will drop to Free on the next start.

Next steps

Was this helpful?

Still stuck — open a ticket · Back to all articles

Free forever · no card Download free