Repository navigation
Highlights
- OpenCode v2 support: reads the new
session_v2/session_messagetables. If you upgraded OpenCode to v2, earlier versions of ocmonitor showed nothing after the upgrade date. On upgraded databases, older sessions that OpenCode's migration didn't copy are still read from the legacy tables, so your full history and output-speed stats are kept. - models.dev remote pricing now works: the fallback previously loaded no prices at all.
- Provider-aware pricing and display:
models.jsonkeys useprovider/model-id, and reports show separate Provider and Model columns. - Interaction-date attribution: daily, weekly and monthly reports count usage on the day it happened, not the day the session started.
- Refreshed bundled
models.json: current models added, stale prices fixed, and retired models kept so historical sessions stay priced.
See the CHANGELOG for full details.
Upgrade
pipx upgrade opencode-monitor # or: pip install --upgrade opencode-monitorAcknowledgements
Thanks to @mgoeppe (#41, #42) and @Nopparuj-an (#51, continued in #52).