.db file — no external database required.
Quick Start
1
Simple Usage
2
With Configuration
Choose sync or async when using the factory directly:
How It Works
Connections go through the hardened
sqlite_connect factory, which prefers WAL and falls back to DELETE on network and container filesystems.Sync vs Async
Configuration Options
URL formats
Best Practices
Use sync mode for multi-agent scripts
Use sync mode for multi-agent scripts
The
sync_sqlite backend (mode="sync") uses per-call connection locking for multi-threaded agents.Use absolute paths in production
Use absolute paths in production
Set the database path via environment variables and use absolute paths for deployments.
WAL is applied automatically
WAL is applied automatically
Every core SQLite store applies WAL through the hardened
sqlite_connect factory, with a safe DELETE fallback on network and container filesystems — you no longer run PRAGMA journal_mode=WAL yourself.Migrate to PostgreSQL at scale
Migrate to PostgreSQL at scale
SQLite handles thousands of conversations; move to PostgreSQL for multi-instance deployments.
Related
PostgreSQL Persistence
Scale up when you outgrow SQLite
Database Persistence
Compare all persistence backends

