The hierarchical database that stores your business the way your app sees it.

One read per customer. Not twenty joins.

Customers, orders, policies: each one lives on disk as a single tree, children next to their parent. Read it whole in one call, change it in a serializable transaction, and let your AI agents use the same data under field-level permissions.

docker run -p 8443:8443 -v oliviadb-data:/data oliviadb/oliviadb:0.1.2
  1. The object
  2. The tree
  3. On disk
  4. One read

The same customer, three ways to keep it.

Pick a job and watch each kind of database do it. Tables keep every entity apart; documents keep it together until it grows too big; OliviaDB keeps the tree together and still lets each part change on its own.

Relational tables + ORM

0

Document NoSQL

0

OliviaDB hierarchical

0

Customer 42: 2 accounts, 3 cards, 8 transactions.

Every ORM already thinks in trees. Only the database doesn't.

Hibernate, Entity Framework, ActiveRecord, Prisma, SQLAlchemy: you declare a customer that has accounts that have cards. The ORM then cuts that tree into tables and glues it back together on every read. Lazy loading turns one screen into a stream of queries; eager loading turns it into joins that repeat the parent on every row. OliviaDB stores the tree you declared.

What you write

A model that is already a hierarchy.

@Entity class Customer {
  @OneToMany List<Account> accounts;
}
@Entity class Account {
  @OneToMany List<Card> cards;
}
@Entity class Card {
  @OneToMany List<Txn> txns;
}

On tables

The ORM cuts the tree into four tables and fetches it back piece by piece.

     

    On OliviaDB

    The tree you declared is the tree on disk, read back in one call.

     

    What changes when the database stores the tree

    1 call

    for a whole customer, however many accounts and cards it holds. No lazy loading, no N+1.

    0 joins

    Children are stored under their parent, so no parent row is repeated and nothing has to be reassembled.

    1 model

    The schema is the class you code against and the layout on disk. No mapping layer, no fetch plans to tune per screen.

    Faster where your app spends its time.

    OliviaDB over its native protocol against PostgreSQL 16 on the same machine: 16 clients, TLS on both sides, both clients decoding every field. Where we are level, the table says so.

    WorkloadThroughput against PostgreSQLOliviaDBRatio

    Docker containers with 4 CPUs and 2 GiB each, two rounds in opposite order, PostgreSQL measured fresh each round; the dossier answers are checked equal. The PostgreSQL line marks 1×. A whole customer is 10 KB over the native protocol against 30 KB from PostgreSQL. Methodology and raw records are in the benchmark notes.

    In developmentEnterprise edition

    A distributed database that grows past one machine and keeps ACID transactions.

    OliviaDB is built to run as a distributed database. Path keys are ordered, so the key space cuts cleanly into ranges, and a range never cuts an aggregate in two. Each range is its own replicated group. Add machines and the ranges spread over them; a customer still comes back in one read, and a payment is still one ACID transaction.

    Scale out In development

    Each range is a Raft group with its own storage. A range that grows or runs hot splits, and the placement driver moves replicas and leaders onto new nodes while every range keeps serving. Capacity grows with the number of machines, not with the size of the biggest one.

    Stay ACID In development

    Most work touches one aggregate, so it commits inside one range in a single Raft round. A transaction that spans ranges commits with two-phase commit over replicated groups and hybrid logical clocks, and stays serializable.

    Survive failures Enterprise edition

    A write commits once a majority of its range's replicas has it, so losing a node loses no committed data; the survivors elect a new leader and carry on. Ranges keep three replicas, five for critical databases, spread over zones. Available now: a primary, a semi-synchronous standby and a witness that fail over without losing an acknowledged write.

    Today the open-source 0.1 server runs on one node. The distributed engine is built step by step against Raft's published safety rules and checked by a deterministic simulator and a linearizability checker; follow it in the multi-Raft plan and high availability.

    One engine for the system of record, its agents and its past.

    The same store serves your application, the AI agents that work beside it, and the programs you brought over from the mainframe.

    Model the business, not the tables

    Describe an aggregate once: its key, its fields and its children. Reads come back as the tree you described, with no mapping layer between you and the data. Transactions are serializable.

    aggregate Customer {
      key id: string(16)
      1 name: string(80)
    
      child Account [no: string(12)] {
        1 balance: decimal(15,2)
        child Card [pan: string(16)] {
          child Txn ordered { 1 amount: decimal(13,2) }
        }
      }
    }

    Safe for AI agents by construction

    Agents read the system of record directly, through grants that hide or mask fields and filter rows, with memory, search and an MCP server built in. No ETL, no second copy.

    Bring your COBOL along

    OliviaDB also speaks IMS DL/I. Programs that call CBLTDLI run unchanged, with their DBDs, PSBs and status codes, while new services read the same data over the network.

           CALL 'CBLTDLI' USING GU-FUNC
                                DB-PCB
                                CUST-SEG
                                CUST-SSA.

    Your schema becomes your API.

    Generate typed clients from the same schema the database runs, and read a whole customer as a typed object.

    
        

    Your agents see what they are allowed to see. Nothing else leaves.

    The system of record holds names, tax ids and balances. OliviaDB enforces who sees which of them inside the database, so a prompt, a plugin or a buggy agent cannot reach past its grant. It runs on your servers, in your cloud or on-premises.

    Each agent gets a profile: which aggregates and fields it may read, which rows (by the attributes of the user it acts for), and how fields are masked: redacted, shown in part, or replaced by a keyed pseudonym. A database with no row rule is refused, and a user without the attribute sees nothing.

    Masked values never appear in results, search or change streams, and a record outside the grant answers exactly like one that does not exist.

    Agent memory is encrypted per record with XChaCha20-Poly1305 under keys per tenant, person, thread and agent, wrapped by a master key your KMS can supply. Erasing a person destroys their key: every copy of their data, backups included, becomes unreadable, and stays so after a restart.

    Export and erase endpoints answer access and erasure requests (GDPR articles 15 and 17).

    OAuth 2.1 bearer tokens checked against your identity provider's keys, and token exchange (RFC 8693) so every call names both the agent and the person it acts for. API keys are stored only as SHA-256 digests and compared in constant time; failed attempts back off per client.

    TLS 1.3 only. Plain connections are refused except on loopback.

    One JSON line per request: the agent, the user it acted for, the route, the status and the trace id. DL/I programs run under access profiles leave the same record, so a mainframe program and an AI agent are audited the same way.

    Release checksums are signed with Sigstore and ship with an SPDX bill of materials. Dependencies are checked against security advisories on every pull request and every night; CodeQL and OpenSSF Scorecard run on the public repository. Vulnerabilities are reported privately and acknowledged within three working days.

    The same two customers, read by your app and by a support agent acting for Anna (branch: Stockholm)

    Your appid C42
    name Maria Lindqvist
    taxId 850412-2291
    branch Stockholm
    balance 12 480.00
    Support agentid C42
    name Maria Lindqvist
    taxId 850412-2291
    branch Stockholm
    balance 12 480.00
    Your appid C57
    name Jonas Berg
    branch Oslo
    Support agentid C57
    name Jonas Berg
    branch Oslo
    404: not found, as if it never existed

    Agent memory on disk: every record sealed under the keys of the people it is about

    The token an agent presents, and what OliviaDB makes of it

    {
      "iss": "https://id.bank.example",
      "aud": "https://db.bank.example",
      "sub": "anna",
      "act": { "sub": "support-agent" },
      "scope": "oliviadb.read",
      "branch": "Stockholm"
    }
    user Anna, the person the call is for
    principal the support agent, whose profile applies
    profile read only
    rows branch = Stockholm

    The audit log as requests arrive

      What every release carries

      • SHA256SUMS signed with Sigstoreverify any archive before you run it
      • SPDX bill of materialsevery crate and version inside the binaries
      • Advisory checks on every pull request and nightlycargo-deny against the RustSec database
      • CodeQL and OpenSSF Scorecardon the public repository
      • Private vulnerability reportingacknowledged within three working days

      Not a new idea. A proven one, made the default.

      The fastest transactional systems keep related data together. OliviaDB makes that layout the default instead of an expert trick.

      Google F1 and Spanner

      AdWords clusters each advertiser's tables under it; Spanner calls the same idea interleaving.

      F1, VLDB 2013
      Amazon DynamoDB

      AWS teaches one rule first: keep related data together, under one key.

      DynamoDB design guide
      Banking cores

      Hierarchical stores run account systems with tens of millions of accounts.

      IBM IMS
      Domain-driven design

      Load and save whole aggregates, and keep transactions inside them.

      Martin Fowler

      Open source at the core.

      Run it on your laptop, in your cloud or on your own iron. The engine is open; a commercial licence and the enterprise layer are there when you need them.

      Engine and serverAGPL-3.0, or a commercial licence
      SDKs and specsApache-2.0
      DL/I librariesApache-2.0 bindings over the AGPL engine
      Enterprise layerFast Path, HALDB, migration tooling, by agreement
      OliviaDB

      Run OliviaDB in one command.

      One container gives you the server with its HTTP and native APIs. Clients for Rust, Java, TypeScript and Python, and the DL/I library for COBOL, install from their usual registries.

      docker run -p 8443:8443 -v oliviadb-data:/data oliviadb/oliviadb:0.1.2