Installation

Installing a node means running the Varen node software on the machine you've chosen. The software runs as a Docker Compose stack — the node itself plus Qdrant (the vector index) and Ollama (local embeddings) — managed as a unit. You don't need to know Docker in detail to run it, but Docker must be installed on the host machine before you begin.

First start

The first docker compose up pulls several images and downloads the nomic-embed-text embedding model before the node starts, so the initial start takes noticeably longer than later ones — allow several minutes depending on your connection. The node also needs NET_ADMIN and /dev/net/tun for its encrypted connection back to Varen.

Choosing your platform

Varen requires a compatible Docker environment. The current Add Node flow provides Linux, Windows, and a generic Docker/manual path; compatibility depends on networking and privilege support. Three installation paths are documented, each suited to a different setup:

  • Linux — the supported shell-installer path. The host must provide Docker Compose, persistent storage, NET_ADMIN, and /dev/net/tun.
  • Windows — a single setup program (varen-node.exe) run from an ordinary Terminal installs WSL2, Docker Engine inside it, and the node stack. The node starts automatically when the user logs in; it does not start before login, so restarts (Windows Update, shutdowns) leave it offline until the node's user logs back in.
  • Generic Docker — a manual Compose path for compatible NAS, Proxmox, server, or other Docker environments. Compatibility depends on TUN, privileges, persistent volumes, architecture, and outbound connectivity.

In all cases, the node software that's installed is the same. The difference is only in how you get it running and how you manage it day-to-day. Once the node is running and connected, the experience in the Varen desktop is identical regardless of what hardware it's on.

Prerequisites

  • Docker Engine 24+ with docker compose v2
  • Outbound HTTPS to varen.tech and UDP 51820 (WireGuard)
  • /dev/net/tun available (default on most Linux hosts)

Install

Open a terminal on the target machine and paste this command — the installer asks for your licence key and node name as flags:

curl -fsSL https://varen.tech/downloads/varen-node -o /tmp/varen-node
sh /tmp/varen-node --install --license "<your-licence-key>" --name "<your-node-name>"

The script creates ~/varen/<safe-name>/ — the node name lower-cased, hyphenated and stripped to a filesystem-safe form — writes the compose file and environment configuration, pulls the images, and starts the stack. The first run also downloads the embedding model, so it can take several minutes depending on your connection and host.

Start

Start the node stack using the convenience script, or using Docker Compose directly.

cd ~/varen/<safe-name>
 ./varen-node start

or manually

cd ~/varen/<safe-name>
docker compose --env-file varen.env up -d

Stop

Stop the node stack gracefully.

cd ~/varen/<safe-name>
 ./varen-node stop

or manually

cd ~/varen/<safe-name>
docker compose --env-file varen.env down

Logs

Follow the node log output in real time. Useful for diagnosing connection problems.

cd ~/varen/<safe-name>
 ./varen-node logs

or manually

cd ~/varen/<safe-name>
docker compose --env-file varen.env logs -f varen-node

Upgrade / Reinstall

--install re-runs the installer against this tenant: refreshes the wrapper, varen.env, and Compose file; pulls the latest image; and brings the stack back up. Your node data, workspaces, and volumes are preserved.

cd ~/varen/<safe-name>
 ./varen-node --install

or manually

curl -fsSL https://varen.tech/downloads/varen-node -o /tmp/varen-node
sh /tmp/varen-node --install

Uninstall

Uninstall is destructive and gated: running it first prints what will be deleted and refuses to proceed without the confirmation flag. It removes the Qdrant and Ollama named volumes and deletes the installation directory, including the data/ bind mount containing durable node content. Export or back up the node before uninstalling; sudo is required to remove bind-mounted data written by the container.

cd ~/varen/<safe-name>
 ./varen-node --uninstall

When you have a backup and are ready, re-run with the confirmation flag:

./varen-node --uninstall --i-have-a-full-backup

or manually

cd ~/varen/<safe-name>
systemctl --user disable --now varen-node-watcher.timer
rm -f ~/.config/systemd/user/varen-node-watcher.service ~/.config/systemd/user/varen-node-watcher.timer
( crontab -l | grep -v varen-node-watcher ) | crontab -
docker compose --env-file varen.env down -v
cd ~ && sudo rm -rf ~/varen/<safe-name>

Older installs may still carry root-level watcher units under /etc/systemd/system/; the installer retires those legacy units itself.

Prerequisites

  • Windows 10 (version 2004, build 19041 or later) or Windows 11
  • Virtualization (VT-x / AMD-V) enabled in BIOS/UEFI — the installer checks this and warns you if it is off
  • Outbound HTTPS to varen.tech and UDP 51820 (WireGuard)
  • Docker Desktop is not required — the installer sets up WSL2 with Docker Engine inside it, and the node then starts automatically when you log in

Install

Open a Terminal window (search for “Terminal” in the Start menu — no administrator rights are required; the installer requests elevation itself if needed), then download and run the installer:

Invoke-WebRequest -Uri https://varen.tech/downloads/varen-node.exe -OutFile $env:TEMP\varen-node.exe
& $env:TEMP\varen-node.exe --install

The installer asks for your licence key and a node name, then enables WSL2, installs Debian and Docker Engine inside it, sets up the node stack, and registers the scheduled tasks that start the node when you log in and keep it up to date. If the WSL features are not enabled yet, a reboot is required and the installer resumes automatically afterwards.

For an unattended install you can pass the details instead of typing them:

& $env:TEMP\varen-node.exe --install -license "<your-licence-key>" -name "<your-node-name>"

Start

Start the node stack using the convenience command.

cd $env:USERPROFILE\Varen\<node-name>
.\varen-node.exe start

Stop

Stop the node stack gracefully.

cd $env:USERPROFILE\Varen\<node-name>
.\varen-node.exe stop

Logs

Follow the node log output in real time.

cd $env:USERPROFILE\Varen\<node-name>
.\varen-node.exe logs

Reload

Restart the running containers in place — no pull, no config change.

cd $env:USERPROFILE\Varen\<node-name>
.\varen-node.exe reload

Uninstall

Uninstall is destructive and protected by a confirmation flag: it stops the stack, removes the Docker volumes (embedding model and Qdrant data) and deletes the install directory, including all node data. Running it without the flag prints a warning and stops:

cd $env:USERPROFILE\Varen\<node-name>
.\varen-node.exe --uninstall

When you have a backup and are ready, re-run with the confirmation flag:

.\varen-node.exe --uninstall --i-have-a-full-backup

Add --full-uninstall to also remove the shared WSL keepalive scheduled task — only do this if no other Varen node remains on the machine.

Prerequisites

  • Docker on your NAS — typically provided by Synology Container Manager, QNAP Container Station, TrueNAS Apps, Unraid Docker, or Proxmox LXC with Docker installed.
  • TUN device support (/dev/net/tun) — available on most modern NAS firmware.
  • Outbound HTTPS to varen.tech and UDP 51820 (WireGuard).

Install steps

NAS user interfaces typically can't pipe a remote script into a shell. SSH into your NAS (or use its terminal app) and run the steps below. Exact paths vary by platform — adapt the directory to match your NAS conventions (for example, /volume1/docker/varen-<node-name> on Synology).

1. Create a directory for this node and change into it:

mkdir -p ~/varen/<node-name>
cd ~/varen/<safe-name>

2. Download the Varen compose file:

curl -fsSL https://varen.tech/downloads/varen-node.yml -o docker-compose.yml

3. Create a varen.env file with these contents (the same eight-key file the Linux and Windows installers write). Substitute your actual licence key and node name; leave DISTRO and TZ empty on a non-WSL host:

LICENSE_KEY="<your-licence-key>"
NODE_NAME="<your-node-name>"
SAFE_NAME="<your-safe-name>"
DISTRO=""
SAAS_ENDPOINT="varen.tech:50051"
SAAS_HTTP_ENDPOINT="https://varen.tech"
BASE_URL="https://varen.tech"
TZ=""

4. Start the stack (compose reads varen.env via --env-file):

docker compose --env-file varen.env up -d

Start

Start the node stack.

cd ~/varen/<safe-name>
docker compose --env-file varen.env up -d

Stop

Stop the node stack gracefully.

cd ~/varen/<safe-name>
docker compose --env-file varen.env down

Logs

Follow the node log output in real time.

cd ~/varen/<safe-name>
docker compose --env-file varen.env logs -f varen-node

Upgrade

Pull the latest image and restart the node.

cd ~/varen/<safe-name>
curl -fsSL https://varen.tech/downloads/varen-node.yml -o docker-compose.yml
docker compose --env-file varen.env pull
docker compose --env-file varen.env up -d

Uninstall

Uninstall is destructive. down -v removes the qdrant_data and ollama_data volumes, and deleting the directory removes the data/ bind mount containing durable node content. Back up first. sudo may be required depending on your NAS user setup.

cd ~/varen/<safe-name>
docker compose --env-file varen.env down -v
cd ~ && sudo rm -rf ~/varen/<node-name>

Verifying your node is connected

After starting the stack, the node establishes an encrypted tunnel back to Varen. In the desktop, the status dot next to your node in the navigator turns green within a minute or two. If it stays grey after several minutes, check the following:

  • Docker is running — docker ps should show the node containers
  • Outbound UDP 51820 is not blocked by your firewall or router
  • Your licence key is correct — it's set in the varen.env file or as an environment variable during install
  • The node logs don't show an error — use the Logs command above to check

Automatic upgrades

On Linux and Windows, the installer schedules a background watcher that keeps the node up to date. On Linux it is a user-level systemd timer (varen-node-watcher.timer, running every 15 minutes — OnUnitActiveSec=15min), with a cron fallback (*/15 * * * *) on hosts without a user systemd manager. On Windows they are scheduled tasks named Varen Node Start <safe-name> and Varen Node Watcher <safe-name>.

The watcher polls Varen for a pending reload request for this node's licence and, when one is present, runs docker compose --env-file varen.env pull and docker compose --env-file varen.env up -d to recreate the stack on the new image, then clears the request. You can run it manually at any time with ./varen-node watcher (Linux) or .\varen-node.exe watcher (Windows). On the Generic Docker path there is no scheduled watcher; upgrade manually with a Compose pull.

Use ./varen-node status (or .\varen-node.exe status) to show the running containers.

The node directory

After installation, the node lives in ~/varen/<safe-name>/ — the sanitised form of your node name: lower-cased, hyphenated, stripped to a filesystem-safe form — (or %USERPROFILE%\Varen\<safe-name>\ on Windows). Understanding what's in this directory makes maintenance easier:

  • docker-compose.yml — the stack definition
  • varen.env — the single unified config file (licence key, node name, safe name, distro, SaaS endpoints, base URL, timezone). SAFE_NAME is derived from your node name — sanitised, not chosen by you. Same file, same eight keys, same quoting on Linux, WSL, and manual Docker/NAS installs; must never be shared or committed to version control
  • varen-node (Linux) or varen-node.exe (Windows) — a single unified command on both platforms: start|stop|status|logs|watcher, plus --install, --uninstall (gated by --i-have-a-full-backup), --export/--inspect/--import, --version, --help. reload and --full-uninstall are Windows-only — the Linux launcher has no reload verb and rejects --full-uninstall
  • data/ — the bind-mounted node data directory (durable content: conversations, files, memories, indexes)
  • On Linux, varen-node-watcher.service and varen-node-watcher.timer (installed as a user-level systemd timer, or scheduled via cron); on Windows, Varen Node Start <safe-name> and Varen Node Watcher <safe-name> scheduled tasks
Warning

The varen.env file contains your licence key. Don't check it into version control or share it. Durable node content lives in the data/ bind mount inside this directory; the Qdrant vector index and Ollama models live in the qdrant_data and ollama_data Docker volumes. Back up the directory (and volumes) if the host machine is not backed up through another mechanism.

Backup & restore

Your node holds all your durable content, so moving it — to new hardware, a new host, or back after a failure — should not mean losing it. The varen-node command has three portable-archive flags:

  • --export <path> — export the complete portable node data set to a .varenbackup archive and exit.
  • --inspect <archive> — inspect a portable .varenbackup archive without a running node: list the workspaces it contains, with counts, and the profile, without restoring anything.
  • --import <archive> — import a .varenbackup archive into this node. Add --dry-run to validate an import without changing node data.

The archive is deliberately portable: it carries your workspaces, their files and knowledge, and your profile — the content that makes the node yours. It never archives operational identity, credentials, preferences, or control-plane state, so a restored node is your content on fresh plumbing, not a clone of the old machine's configuration. That is what makes it the migration path: export on the old hardware, import on the new.

The same flow is available from the desktop app without a terminal. In Node Settings → Tools, the Backup / Restore panel works in phases:

  • Export — tick the workspaces to include, or tick nothing for the explicit full-node export; the button reads Export selected with a selection, or Export complete node without one (Select all (N) is offered alongside). When the archive is built, Download .varenbackup saves it with a filename of the pattern <slug>-<YYYYMMDD>-<token>.varenbackup — your node's slug, the date, and a short export token.
  • Import backup… — choosing a .varenbackup file first inspects it: the panel shows how many workspaces the archive contains and its size, lists each workspace with its vector and file counts, and lets you tick which to restore (Select all offered). When the archive carries a profile, an Also restore profile checkbox appears — "Profile Statement and approved Profile Inputs (empty node only)". Nothing is restored until you press Restore selected (N).
  • The pre-import confirmation — restoring asks you to confirm that a pre-import backup exists: Restore the selected portable data? Confirm that a pre-import backup exists. Only the approved selected scope will be changed. It means it: restore replaces the selected scope, it does not merge into it.

The panel reports the outcome per workspace — vectors and files restored, or the failure — and "Profile restored (Profile Statement and approved Profile Inputs)" when the profile was included. Backup and restore are unavailable while the node is offline.

The Search Engine URL tool

Also in Node Settings → Tools, the Search Engine URL section shows this node's search URL:

https://varen.tech/search?node=<slug>&q=%s

Copy it into your browser's custom search engine settings with a Copy button, then search your node from the address bar:

  • Chrome: Settings → Search engine → Manage → Add
  • Firefox: Address bar search settings → Add
  • Safari: Custom search engines not natively supported
Warning

Uninstall is destructive and there is no undo. Export a .varenbackup archive first — from the varen-node command or the Node Settings backup panel — and keep it somewhere other than the machine you're uninstalling from. The pre-uninstall backup is a requirement, not a suggestion: without an archive, the node's content is gone with it.

Multiple nodes

A single Varen account can have multiple nodes. Each appears separately in the navigator. Workspaces are created on a specific node and their data lives on that node — there's no automatic sync between nodes. This lets you keep completely separate environments: a home node for personal workspaces and a work node for professional ones, each running on different hardware, each with its own isolated data.

To add a second node, click Add Node in the navigator again. You can use the same licence key or a different one depending on your account setup.