Databases

Last updated 29 October 2026

View .md

SQLite databases your program opens by name from any machine: statements run on a local copy at the speed of SQLite, and when the machine goes away, another one opens the database and carries on.

What people build with it

  • An agent that outlives its sandbox

    The next process opens the same database by name and finds every confirmed commit.

  • A durable agent harness

    A Pi Durable Harness whose conversation another machine resumes.

  • A database per agent, task or tenant

    Created and deleted through the API (see One database per agent run).

  • A call made once

    An email or a payment recorded before it is made (see Run side effects once).

  • A service without a database server

    SQL at local speed in a Node.js or Python program, kept when it moves.

A good fit, and not

A good fit:

  • One process writing each database at a time: an agent, a worker, one tenant’s instance.
  • A Node.js or Python program with a local disk, short-lived ones included (see Short-lived processes).
  • Many small databases, each up to 256 MiB compressed.

Not a good fit:

  • Many processes writing one database at once (see When two instances run).
  • Edge runtimes, browsers, and languages other than Node.js and Python.
  • Opening its files with other SQLite tools: export a copy instead.

Compared with other kinds of database

Tonbo DatabasesA hosted PostgresA SQLite file on a disk
Where statements runOn your machine, on a local copyOn the server, a round trip eachOn your machine
When the machine is lostAnother opens the database; every commit synced() confirmed is thereClients reconnect to the serverThe data goes with the disk
WritersOne process at a timeMany connectionsThe processes of one machine
You pay forWrites and storage; reads are freeUsually a server by the hourYour own disk

For history that only grows and that many programs read, use a stream instead.

What it costs

Every account gets $5 of usage free each month. After that you pay for writes and storage, and reads are free. See Pricing.

Where it runs

Your program runs wherever you run it, from a laptop to a serverless function, and reaches Tonbo over HTTPS with an API key. The exact versions and platforms are under Node.js and Python, and the regions under Regions and URLs.

Get started

Next steps