Troubleshooting
No sessions found
Section titled “No sessions found”Run a scoped check first:
llm-usage daily --source pillm-usage daily --source codexllm-usage daily --source opencodeIf OpenCode is expected, provide an explicit DB path:
llm-usage daily --source opencode --opencode-db /path/to/opencode.dbPath override errors
Section titled “Path override errors”--source-dirsupports onlypiandcodex.- For OpenCode, use
--opencode-db.
Correct examples:
llm-usage daily --source-dir pi=/path/to/pi --source-dir codex=/path/to/codexllm-usage daily --opencode-db /path/to/opencode.dbPricing load failures
Section titled “Pricing load failures”If pricing resolution fails:
- retry with network enabled
- or use a cache that already exists with
--pricing-offline
llm-usage monthly --pricing-offlineSchema drift / OpenCode parsing errors
Section titled “Schema drift / OpenCode parsing errors”OpenCode runtime parsing is read-only and CLI-independent. For schema inspection, use OpenCode CLI tooling:
opencode db "select name from sqlite_master where type='table'"opencode db --format json "<sql>"Need a reproducible report
Section titled “Need a reproducible report”Pin source and date range explicitly:
llm-usage monthly --source opencode --opencode-db /archives/opencode-2026-01.db --since 2026-01-01 --until 2026-01-31