Skip to content

Get started

This path takes you from nothing to an application that reads and writes its data in OliviaDB: run the server, connect, create a database, write its schema, connect an application in Rust, Java, TypeScript or Python. Each step is one page; every command and program on them runs in CI, in this order (tools/docs-snippets.py, groups start and app-*).

What kind of database OliviaDB is

OliviaDB is a hierarchical database. You describe your data as aggregates: a root record (a customer) with its children (accounts), their children (account entries), and so on. Each aggregate is stored as one ordered run of keys: the customer first, then everything under it, in the order you would walk the tree. Reading a whole customer is one range read, not a join per table (how OliviaDB stores data).

  • Transactions. Every write is a serializable transaction; several writes commit together, all or none. A transaction writes within one aggregate record (one customer and everything under it).
  • Profiles. Every client works under an access profile declared in the schema: which paths it may read or change, which fields it sees, which values are masked, which rows it may touch. The server enforces it on every call.
  • One schema file. Aggregates, indexes and profiles are written in the schema language (.olv, specification) and given to the server.

If you know IMS: the aggregate is the DBD, the profile is the PSB.

IMS DBD and PSB beside OliviaDB's aggregate and profile IMS OliviaDB DBD: the data's structure segments, parents, sequence fields, fields, access method, randomizer PSB: a program's view PCBs, SENSEG, SENFLD, PROCOPT; bound to a load module aggregate node types, parents, keys, typed fields, placement, partition, history, indexes profile grants per path, fields, masks, rows, txn scope; bound to a service or agent

The DBD and the PSB beside their OliviaDB counterparts
IMS OliviaDB
The data's structure DBD: segments, their parents, sequence fields, fields, access method, randomizer aggregate: node types, their parents, keys, typed fields, placement, partition, history
A program's view PSB: PCBs, SENSEG, SENFLD, PROCOPT profile: grants per path (get, list, insert, update fields(...), delete, lookup, search, watch), fields(...) and except per grant, mask, rows ... where, txn scope, consistency
Bound to a load module (PSB name) an identity: a service, an agent or a program (API key, token)
Units of work sync points (CHKP, program end) one transaction per call or per POST /v1/txn
Programs COBOL, PL/I, assembler calling DL/I applications over the network API or the native protocol; DL/I programs too (below)

Existing IMS programs keep calling DL/I: liboliviadb_dli takes CBLTDLI calls against OliviaDB databases (migrate from the mainframe).

Step 0: give your coding agent the OliviaDB skills

Most code is written through a coding agent today. OliviaDB ships two skills for them: oliviadb-develop (run the server, model aggregates, write schemas and profiles, use the clients and transactions, test) and oliviadb-migrate (move a relational schema or an IMS/DL/I application). Install them into Claude Code with one command:

mkdir -p ~/.claude/skills && curl -fsSL https://github.com/OliviaDB/oliviadb/archive/refs/heads/main.tar.gz | tar -xz -C ~/.claude/skills --strip-components=2 oliviadb-main/skills

For other agents (Codex, Cursor, Gemini CLI, ...), and for a project-level installation: skills for coding agents. Then ask, for instance:

Ask your agent

Using the oliviadb-develop skill, run an OliviaDB server locally with a bank schema (customers, accounts, entries) and write a Python program that posts an entry to an account and updates its balance in one transaction.

Each page below says what to ask at that step, and shows the commands the agent will run, so you can check its work.

The path

The Get started path: skills, run, connect, database, schema, application 0 Skills for your agent 1 Run the server 2 Connect 3 Database and tenants 4 Write a schema 5 Connect an application

The Get started path

Each step says what it does, how to do it by hand (every command, file and program), and what to ask your coding agent.

  1. Run the server: the container image, the release binaries, or from source.
  2. Connect: the API key, health checks, the console, a first call.
  3. Databases and tenants: what a database is in OliviaDB and how to create one.
  4. Write a schema: aggregates, an index, a profile; deploy it; change it later.
  5. Connect an application: Rust, Java, TypeScript and Python, reading a tree, writing, a transaction; typed clients.

Then: the guides (a banking application end to end, migrating from a relational database or from the mainframe), the platforms and languages OliviaDB runs on, and the protocols it speaks.