Skip to content

Install and quick start

The server

Container image (linux/amd64 and linux/arm64), on GitHub's registry and on Docker Hub:

docker run -d --name oliviadb -p 8443:8443 -p 5432:5432 -v oliviadb-data:/data ghcr.io/oliviadb/oliviadb:0.1
# or: docker.io/oliviadb/oliviadb:0.1
docker exec oliviadb cat /data/api-key        # the generated API key

Then open https://localhost:8443/console (a self-signed certificate unless you mount one) and enter the key. Add -e OLIVIADB_NATIVE=1 -p 7655:7655 for the native protocol. What the image holds, its variables and /data: the container image.

Binaries: each GitHub Release has archives of oliviadb (command line), oliviadb-server, oliviadb-sql-server, oliviadb-lsp, the DL/I library liboliviadb_dli (shared and static) with its header and liboliviadb_dli_jni (the same library for the Java DL/I API), for Linux x86_64 and aarch64 (glibc, and static musl builds without the library), and macOS aarch64 and x86_64, with SHA256SUMS and an SPDX SBOM.

tar -xzf oliviadb-v0.1.0-x86_64-unknown-linux-gnu.tar.gz
cd oliviadb-v0.1.0-x86_64-unknown-linux-gnu
./oliviadb-server --config config.json

The configuration file is described in the network API.

From source: cargo build --release -p oliviadb-server -p oliviadb-ops in a clone of OliviaDB/oliviadb (Rust as pinned in rust-toolchain.toml).

A first call

KEY=$(docker exec oliviadb cat /data/api-key)
curl -k -H "Authorization: Token $KEY" -H 'content-type: application/json' \
  -d '{"thread":"t1","text":"Ann works at Acme.","entities":["Ann"]}' https://localhost:8443/v1/memory/remember
curl -k -H "Authorization: Token $KEY" -H 'content-type: application/json' \
  -d '{"query":"Where does Ann work?","budget":300}' https://localhost:8443/v1/memory/recall

Next: agent memory, the network API, MCP, client libraries.