Self-hosting

Run it on your own box.

Rivelo is a single Go binary with an embedded dashboard and a local SQLite database. No external queue, no managed control plane.

Early development. Build from source or build the container image locally. No release tag or public registry image exists yet.

Requirements

  • Go 1.27 or newer to build the binary
  • Node.js 22.22.1 or newer and npm to build the dashboard
  • A local filesystem for SQLite and logs
  • A reverse proxy for HTTPS in managed mode

Quick start

Build

The build embeds the dashboard into the binary. Node.js is not needed at runtime.

build
npm ci
npm run build

Try the prototype

Prototype mode does not open the management API and does not read or write the managed configuration database.

prototype mode
./dist/rivelo -prototype -addr 127.0.0.1:8080

Run managed mode

Managed mode reads its configuration from the process environment. Rivelo does not load a .env file automatically.

managed mode
./dist/rivelo -addr 127.0.0.1:8080

The default listen address is loopback. Use -addr only when the network boundary is deliberate.

Environment

Managed mode starts only when the required values are present and valid.

VariablePurpose
RIVELO_MASTER_KEYrequiredBase64-encoded random 32 bytes. Startup fails if the value is missing, malformed, or cannot decrypt existing data.
RIVELO_ADMIN_TOKENrequiredIndependent random admin token, 32 to 256 printable ASCII characters. It must not reuse the master key or a Project Key prefix.
RIVELO_PUBLIC_URLrequiredPublic origin for the admin UI and gateway. HTTPS in managed mode. The reverse proxy must preserve the Host header.
RIVELO_DATABASE_PATHoptionalLocal file path. Defaults to data/rivelo.db. SQL statements and DSNs are rejected.
RIVELO_LOGS_PATHoptionalLog directory. Defaults to logs/ next to the database. An existing directory must keep the same identity.
RIVELO_AFFINITY_REDIS_URLoptionalOptional Redis URL for shared prompt-cache affinity across hosts. Leave empty to keep affinity in local SQLite.
RIVELO_AFFINITY_REDIS_PREFIXoptionalKey prefix for the shared affinity store. Defaults to rivelo:affinity:.

Inject these values through your environment secret manager. Do not commit them to the repository. The affinity variables are optional and stay empty on a single host.

Docker

The repository includes a Dockerfile and a compose example. The compose file builds from source, binds to loopback, and stores data in a named volume.

docker-compose.example.yml, excerpt
services:
  rivelo:
    build: .
    restart: unless-stopped
    env_file:
      - .env
    ports:
      - "127.0.0.1:8080:8080"
    volumes:
      - rivelo-data:/data

volumes:
  rivelo-data:

Set the environment values in .env before starting the service.

Operations

HTTPS

Terminate TLS at a reverse proxy. Managed cookies are Secure unless -insecure-dev is used and both the listen address and public host are loopback.

Backup

Back up the database and the master key separately. Changing the key does not re-encrypt existing data.

Health

GET /healthz only means the process can respond. It is not a promise that an upstream model is healthy.

Agent access

Managed mode issues revocable automation keys for your own agents on /admin/agent. The agent access manual covers verification, reachable routes, and the session-only boundary.