Data Sources
llm-usage-metrics supports three built-in sources:
picodexopencode
Each source is parsed by a dedicated adapter and normalized into the same UsageEvent schema before pricing/aggregation.
Discovery model
Section titled “Discovery model”piandcodex: recursive JSONL discovery in their session directoriesopencode: single SQLite DB (auto-discovered or explicit--opencode-db)
Source filtering
Section titled “Source filtering”llm-usage monthly --source pillm-usage monthly --source pi,codexllm-usage monthly --source opencode --opencode-db /path/to/opencode.dbSee per-source pages for details.