… Why SQLite Specifically?
The choice of SQLite over a heavier database like PostgreSQL or MySQL is characteristic of OpenClaw's design philosophy: optimize for the single-node, self-hosted deployment first.
SQLite gives you:
•**Zero external dependencies:** No separate database server to configure, secure, or monitor
•**ACID transactions:** Every state update is atomic, consistent, isolated, and durable
•**Single-file portability:** Your entire state lives in one `.db` file you can backup, move, or version-control
•**No network overhead:** Local disk I/O beats TCP round-trips for agent-local state
•**Familiar tooling:** `sqlite3` CLI for debugging, standard libraries for every language
For Linux operators running OpenClaw on a VPS, homelab, or local workstation, this is the right trade-off. You get database-grade reliability without database-grade operational complexity.
⬇️👇