SQLite Option A ConfigurationΒΆ
Last Updated: 2026-06-22
Option A stores all conversation logs in a local SQLite database. The database can be shared across tools and supports a lightweight connection pool for improved concurrent writes.
Enable connection poolingΒΆ
With the environment variable set, thesrc.codex.db.sqlite_patch module
patches sqlite3.connect to reuse a connection per thread and applies helpful
PRAGMA settings such as journal_mode=WAL.
Selecting the database pathΒΆ
Tools look for CODEX_LOG_DB_PATH or CODEX_DB_PATH to locate the SQLite file.
If unset, .codex/session_logs.db is used.