Skip to content

Troubleshooting

Run a scoped check first:

Terminal window
llm-usage daily --source pi
llm-usage daily --source codex
llm-usage daily --source opencode

If OpenCode is expected, provide an explicit DB path:

Terminal window
llm-usage daily --source opencode --opencode-db /path/to/opencode.db
  • --source-dir supports only pi and codex.
  • For OpenCode, use --opencode-db.

Correct examples:

Terminal window
llm-usage daily --source-dir pi=/path/to/pi --source-dir codex=/path/to/codex
llm-usage daily --opencode-db /path/to/opencode.db

If pricing resolution fails:

  1. retry with network enabled
  2. or use a cache that already exists with --pricing-offline
Terminal window
llm-usage monthly --pricing-offline

OpenCode runtime parsing is read-only and CLI-independent. For schema inspection, use OpenCode CLI tooling:

Terminal window
opencode db "select name from sqlite_master where type='table'"
opencode db --format json "<sql>"

Pin source and date range explicitly:

Terminal window
llm-usage monthly --source opencode --opencode-db /archives/opencode-2026-01.db --since 2026-01-01 --until 2026-01-31