---
title: Install
description: Run Aruvi from one binary or one Docker image. Everything it keeps lives in one data directory.
---

## With the binary

Binaries for Linux and macOS, on x64 and arm64, are on [GitHub Releases](https://github.com/praveenjuge/aruvi/releases/latest), with a `SHA256SUMS` file to check them against.

```bash
curl -LO https://github.com/praveenjuge/aruvi/releases/latest/download/aruvi-linux-x64
chmod +x aruvi-linux-x64
ARUVI_DATA_DIR=/var/lib/aruvi ./aruvi-linux-x64
```

The binary includes the web app and everything else it needs. Search by meaning uses `sqlite-vec`, which is built in for every target.

:::note
On macOS, Apple's built-in SQLite can't load extensions. Aruvi uses Homebrew's SQLite when it's installed (`brew install sqlite`); without it, everything works except search by meaning.
:::

To keep it running, use your system's service manager. A systemd unit:

```ini /etc/systemd/system/aruvi.service
[Unit]
Description=Aruvi
After=network-online.target

[Service]
ExecStart=/usr/local/bin/aruvi
Environment=ARUVI_DATA_DIR=/var/lib/aruvi
Environment=ARUVI_PUBLIC_URL=https://aruvi.example.com
User=aruvi
Restart=on-failure

[Install]
WantedBy=multi-user.target
```

## With Docker

The image is on GHCR and Docker Hub, for amd64 and arm64. It keeps its data in `/data`.

```yaml compose.yaml
services:
  aruvi:
    image: ghcr.io/praveenjuge/aruvi:latest
    restart: unless-stopped
    ports:
      - "4100:4100"
    environment:
      ARUVI_PUBLIC_URL: https://aruvi.example.com
    volumes:
      - aruvi-data:/data

volumes:
  aruvi-data:
```

```bash
docker compose up -d
```

## First run

Open Aruvi in your browser. The first account you create becomes the admin, who can turn sign-ups off, set up AI and manage accounts. The admin can't see anyone else's library.

## Back up

Everything lives in the data directory: `aruvi.db`, the `files` folder, and `auth-secret`, which signs sign-ins and encrypts stored API keys. Copying the directory is a full backup. For a copy while Aruvi runs, use SQLite's backup so the database is consistent:

```bash
sqlite3 /var/lib/aruvi/aruvi.db ".backup /backups/aruvi.db"
```

Then copy `files` and `auth-secret` next to it. Keep `auth-secret` private: anyone with it can sign sessions for your instance.

If you store files in S3 (see [Configuration](/configuration)), back up the bucket too.

## Update

Replace the binary, or pull the new image, and start Aruvi again. Database changes run by themselves on start.

```bash
docker compose pull && docker compose up -d
```
