Skip to content

VPS Setup

phucmpham edited this page Mar 16, 2026 · 1 revision

VPS / Headless Setup

Option A: QR via browser (recommended)

zalo-agent login
# Output: QR available at http://your-vps-ip:18927/qr

Open the URL in your browser, scan with Zalo app > QR Scanner.

Server auto-detects public IP and tries ports 18927, 8080, 3000, 9000. Make sure at least one port is open in your firewall.

Option B: Export/import credentials

# On local machine
zalo-agent login
zalo-agent account export --output ./creds.json

# Transfer to server
scp ./creds.json user@server:~/

# On server (no QR needed)
zalo-agent login --credentials ~/creds.json

Clone this wiki locally