Data Sources
llm-usage-metrics supports five built-in sources:
picodexgeminidroidopencode
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 directoriesgemini: JSON session discovery under~/.gemini/tmp/*/chats/*.json(or--gemini-dir)droid: session settings discovery under~/.factory/sessions/**/*.settings.json(or--droid-dir)opencode: single SQLite DB (auto-discovered or explicit--opencode-db)
Source filtering
Section titled “Source filtering”llm-usage monthly --source pillm-usage monthly --source pi,codex,gemini,droidllm-usage monthly --source gemini --gemini-dir /path/to/.geminillm-usage monthly --source droid --droid-dir /path/to/.factory/sessionsllm-usage monthly --source opencode --opencode-db /path/to/opencode.dbSee per-source pages for details.