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 geminillm-usage daily --source droidllm-usage daily --source opencodellm-usage daily --source openclawllm-usage daily --source claudellm-usage daily --source copilotllm-usage daily --source goosellm-usage daily --source ampllm-usage daily --source qwenllm-usage daily --source kimillm-usage daily --source clinellm-usage daily --source roocodellm-usage daily --source kilocodellm-usage daily --source antigravityIf OpenCode or Goose is expected, provide an explicit DB path:
llm-usage daily --source opencode --opencode-db /path/to/opencode.dbllm-usage daily --source goose --goose-db /path/to/goose/sessions.dbRuntime requirements
Section titled “Runtime requirements”SQLite-backed source parsing for OpenCode, Goose, and Antigravity requires Node.js 24+ runtime with built-in node:sqlite.
Path override errors
Section titled “Path override errors”--source-dirsupports onlypi,codex,gemini,droid,openclaw,claude,copilot,amp,qwen,kimi,cline,roocode,kilocode, andantigravity.--pi-dir,--codex-dir,--gemini-dir,--droid-dir,--claude-dir,--copilot-dir,--amp-dir,--qwen-dir,--kimi-dir,--cline-dir,--roocode-dir,--kilocode-dir, and--antigravity-dirmust point to valid directories.- For OpenCode, use
--opencode-db. - For Goose, use
--goose-db.
Correct examples:
llm-usage daily --source-dir pi=/path/to/pi --source-dir codex=/path/to/codex --source-dir gemini=/path/to/.gemini --source-dir droid=/path/to/.factory/sessions --source-dir openclaw=/path/to/.openclaw/agents --source-dir claude=/path/to/.claude/projects --source-dir copilot=/path/to/.copilot/otel --source-dir amp=/path/to/amp/threads --source-dir qwen=/path/to/.qwen/projects --source-dir kimi=/path/to/kimi/sessions --source-dir cline=/path/to/cline/tasks --source-dir roocode=/path/to/roocode/tasks --source-dir kilocode=/path/to/kilocode/tasks --source-dir antigravity=/path/to/antigravity/conversationsllm-usage daily --pi-dir /path/to/pi --codex-dir /path/to/codex --gemini-dir /path/to/.gemini --droid-dir /path/to/.factory/sessions --claude-dir /path/to/.claude/projects --copilot-dir /path/to/.copilot/otel --amp-dir /path/to/amp/threads --qwen-dir /path/to/.qwen/projects --kimi-dir /path/to/kimi/sessions --cline-dir /path/to/cline/tasks --roocode-dir /path/to/roocode/tasks --kilocode-dir /path/to/kilocode/tasks --antigravity-dir /path/to/antigravity/conversationsllm-usage daily --opencode-db /path/to/opencode.dbllm-usage daily --goose-db /path/to/goose/sessions.dbPricing load failures
Section titled “Pricing load failures”Default LiteLLM pricing works without a warm cache because the CLI includes a bundled LiteLLM snapshot. If you see this warning, the run succeeded from that snapshot:
Pricing: using the bundled LiteLLM snapshot from 2026-07-08 (run online to refresh).Run once without --pricing-offline to refresh the local cache from LiteLLM:
llm-usage monthlyIf pricing still fails, check for a custom --pricing-url, a bad
--pricing-overrides file, or a network failure while using a custom pricing
URL. Custom pricing URLs use their matching cache or network source and do not
fall back to the bundled default snapshot.
Schema 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