Eigenheim Status Download

Run your own Eigenheim server

Eigenheim works without a server: your devices sync when they are online at the same time. A server of your own is always online, so they sync any time. It is one small program, eigenheimd. It keeps a full copy of your vault.

The server can't read your passwords, passkeys or 2FA codes. They stay sealed under a key only your devices have. It can read your files and saved links, so run it on a machine you control.

Install

On a fresh Ubuntu or Debian server, as root:

curl -fsSL https://eigenheim.dev/install.sh | sudo bash

The script downloads eigenheimd, checks its SHA-256, and sets it up as a service. It asks two things:

That's it. Your devices list the server under Devices and sync with it.

The script is short, so read it first if you like: https://eigenheim.dev/install.sh.

Update

Run the same command again. It replaces the program, keeps your data and asks nothing.

Check it works

systemctl is-active eigenheimd; journalctl -u eigenheimd -n 20 --no-pager

You should see active and the line eigenheimd: up as "<your name>".

Back up the server

Your devices hold the vault too, but keep a copy of the server's folder /var/lib/eigenheim. With restic:

export RESTIC_REPOSITORY=sftp:user@backup-host:/eigenheim-restic RESTIC_PASSWORD_FILE=/root/.config/restic/password
restic init
systemctl stop eigenheimd && restic backup /var/lib/eigenheim; systemctl start eigenheimd

Run the last line each night from a timer or cron. Keep the restic password somewhere other than this server.

To restore on a new server: run restic restore latest --target /, then chown -R eigenheim:eigenheim /var/lib/eigenheim, then the install command. Your devices find the server again.

Install by hand

If you'd rather see every step:

  1. Create the user and folder:
useradd --system --home-dir /var/lib/eigenheim --shell /usr/sbin/nologin eigenheim
install -d -o eigenheim -g eigenheim -m 700 /var/lib/eigenheim
  1. Download and check the program (ARCH=arm64 on an ARM server). Stop if sha256sum doesn't print OK:
ARCH=x86_64
curl -fsSL https://eigenheim.dev/downloads/latest.json -o /tmp/latest.json
read FILE SUM < <(python3 -c 'import json,sys; s=json.load(open("/tmp/latest.json"))["server"][sys.argv[1]]; print(s["file"], s["sha256"])' "$ARCH")
curl -fsSL "https://eigenheim.dev/downloads/$FILE" -o /tmp/eigenheimd
echo "$SUM  /tmp/eigenheimd" | sha256sum -c
install -m 755 /tmp/eigenheimd /usr/local/bin/eigenheimd
  1. Create /etc/systemd/system/eigenheimd.service (pick your own --name):
[Unit]
Description=Eigenheim server
After=network-online.target
Wants=network-online.target

[Service]
User=eigenheim
Group=eigenheim
ExecStart=/usr/local/bin/eigenheimd run --data-dir /var/lib/eigenheim --name my-server --http 127.0.0.1:8787
Restart=on-failure
RestartSec=5
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
ReadWritePaths=/var/lib/eigenheim

[Install]
WantedBy=multi-user.target
  1. On your Mac, copy the join command (Devices › Add device › Your own server › Copy) and send it:
pbpaste | ssh root@YOUR-SERVER 'sudo -u eigenheim /usr/local/bin/eigenheimd join --data-dir /var/lib/eigenheim'

The command gives full access to your vault, so send it only to your own server. Sending it through ssh keeps it out of the server's shell history.

  1. Start it:
systemctl daemon-reload && systemctl enable --now eigenheimd

A share link opens a file in a browser for someone without Eigenheim. Your server serves that page itself. Add --share-url next to --http in the service:

--http 127.0.0.1:8787 --share-url https://files.example.com

Then point Caddy at the server:

files.example.com {
    reverse_proxy 127.0.0.1:8787
}

Keep --http on 127.0.0.1 and let Caddy handle HTTPS. Browsers only open shared files on https:// pages.

Build it yourself

On a Mac, in the repository:

make setup
make server-linux

make server-linux-arm64 builds for ARM. Copy server/target/x86_64-unknown-linux-gnu/release/eigenheimd to /usr/local/bin/ on the server. make server-deploy SERVER=root@YOUR-SERVER builds, swaps in the new program, and rolls back if it doesn't start.