cd /news/ai-tools/how-to-track-pi-and-oh-my-pi-token-u… · home › topics › ai-tools › article
[ARTICLE · art-144383] src=usageatlas.com ↗ pub= topic=ai-tools verified=true sentiment=· neutral

How to track Pi and Oh My Pi token usage

UsageAtlas now tracks Pi and Oh My Pi (OMP) token usage by reading local session logs, with Pi sessions typically stored under `~/.pi/agent/sessions` and OMP under `~/.omp/agent/sessions`. The reader supports Anthropic and OpenAI Codex usage formats, and a custom root can be set via the `PI_CODING_AGENT_SESSION_DIR` environment variable. UsageAtlas estimates the API value of recorded input, cache, and output tokens using known model prices, but does not collect subscription quotas or match subscription bills.

read1 min views1 publishedSep 30, 2026
How to track Pi and Oh My Pi token usage
Image: source

Track Pi and OMP sessions #

  1. Run Pi or Oh My Pi locally to create session logs.
  2. Install UsageAtlas on that computer and check Pi / OMP in Settings → Sources.
  3. Refresh, then select Pi / OMP in Today or History to inspect recorded activity.

Find your session directory #

Pi commonly stores JSONL sessions under ~/.pi/agent/sessions; OMP uses supported stores such as ~/.omp/agent/sessions. UsageAtlas also discovers supported OMP profiles. For a custom root, start the app with PI_CODING_AGENT_SESSION_DIR set to that directory. See the supported locations for the complete list.

Check backend coverage #

The current reader supports Anthropic and OpenAI Codex usage formats. Other backend records can leave history partial. Recorded input, cache, and output tokens stay under Pi / OMP, even when the model comes from another company. Known prices produce API-equivalent estimates; the reader does not collect subscription quotas.

Questions, answered #

Does Pi usage also count under Codex or Claude?

Pi events stay under Pi / OMP. UsageAtlas's Codex and Claude readers do not scan Pi session roots.

Does the estimated cost equal my subscription bill?

No. It estimates the API value of recorded tokens using known model prices. Subscription charges are separate, and unknown prices remain unavailable.

── more in #ai-tools 4 stories · sorted by recency
── more on @usageatlas 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/how-to-track-pi-and-…] indexed:0 read:1min 2026-09-30 · —