Epilykos Wiki

Run with Node.js

Clone Epilykos, run it with Node.js, and keep it running in the background with pm2 or systemd.

Epilykos is a Node.js app, so you can run it straight from its source: no Docker, no installer. This suits a Linux server or a Mac you already look after. On a Raspberry Pi, EpilykosOS is easier, and on Windows the installer is.

Watch it first

A short walkthrough, with captions and no sound: cloning the code, installing, starting it, and keeping it running in the background with pm2. The steps are written out below as well.

Watch on YouTube

What you need

  • Node.js 26 (the LTS release). It's the version the Docker image and the Windows installer use. Get it from nodejs.org, or with nvm install 26.
  • Git.
  • Optional extras, only if you use them:
    • Bluetooth batteries and inverter modules: Python 3.12 or newer, BlueZ running (Linux), and pip install -r modules/ble/requirements.txt from inside the Epilykos folder.
    • Tuya devices: pip install tinytuya tuya-device-sharing-sdk "qrcode[pil]".
    • Remote access: install Tailscale and/or cloudflared yourself. Epilykos looks for tailscale, tailscaled and cloudflared on the PATH.

Install

git clone --depth 1 https://github.com/ashipaek0/Epilykos.git
cd Epilykos
npm ci --omit=dev

npm may warn about install scripts

Recent npm versions print 3 packages have install scripts not yet covered by allowScripts. That's fine: the database and serial-port modules ship ready-made binaries for Linux, macOS and Windows, so nothing needs compiling. If your npm is older and starts compiling and fails, install your system's build tools (build-essential python3 on Debian and Ubuntu), or use Node.js 26.

Start it

node server.js

When you see Energy dashboard running on port 3000, open http://localhost:3000/setup in a browser on the same computer. From another PC or phone on your network, open http://<this computer's IP>:3000/setup instead (on Linux, hostname -I shows the address). The setup wizard walks you through the password, your equipment and a first dashboard.

Press Ctrl+C to stop it; it shuts down cleanly. To use another port, or to set the admin password up front instead of in the wizard:

PORT=3002 SETTINGS_PASSWORD='choose-a-long-password' node server.js

The password has to be at least 12 characters for remote access to accept it. See First-run setup for how the wizard treats it.

Keep it running in the background

node server.js stops when you close the terminal. Use one of these to keep it running and start it again after a reboot.

pm2 works on Linux and macOS (on Windows, use the installer instead). Run these from inside the Epilykos folder:

npm install -g pm2
pm2 start server.js --name epilykos
pm2 save
pm2 startup

pm2 startup prints one command. Copy it and run it (it needs sudo), and Epilykos then starts by itself after a reboot. Day to day:

pm2 status                 # is it running?
pm2 logs epilykos          # the live log
pm2 restart epilykos       # after an update

Where your data is

Everything Epilykos stores is in the data folder inside the Epilykos folder: the database (energy.db), its keys, and the automatic snapshots. git pull never touches it. Back that folder up, or use Settings → Backup.

Update

cd Epilykos
git pull
npm ci --omit=dev
pm2 restart epilykos               # or: sudo systemctl restart epilykos

Settings → Updates can tell you a newer version exists, but with a source install it can't install it for you, and Settings → System has no Restart button. Use the commands above.

What differs from Docker

  • Tailscale and Cloudflare Tunnel aren't bundled. Install them yourself, as listed under "What you need".
  • Bluetooth and Tuya need their Python packages, which the Docker image already contains.
  • The time zone is the computer's own (or the TZ environment variable).
  • Updates are manual, as above.

Last updated on

On this page