opencode Source
Data format
Section titled “Data format”- SQLite database
Path selection
Section titled “Path selection”- explicit
--opencode-db - deterministic OS-specific default candidates
llm-usage daily --source opencode --opencode-db /path/to/opencode.dbParsing notes
Section titled “Parsing notes”- database is opened in read-only mode
- assistant message rows are parsed into normalized events
- malformed rows are skipped and surfaced in diagnostics
- busy/locked DB errors use bounded retry before failing with actionable guidance