{"slug": "how-to-track-pi-and-oh-my-pi-token-usage", "title": "How to track Pi and Oh My Pi token usage", "summary": "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.", "body_md": "## Track Pi and OMP sessions\n\n1. Run Pi or Oh My Pi locally to create session logs.\n2. [Install UsageAtlas](https://usageatlas.com/#download) on that computer and check Pi / OMP in Settings → Sources.\n3. Refresh, then select Pi / OMP in Today or History to inspect recorded activity.\n\n## Find your session directory\n\nPi 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](https://github.com/SRX9/UsageAtlas/blob/main/docs/LOCAL_PROVIDERS.md) for the complete list.\n\n## Check backend coverage\n\nThe 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.\n\n## Questions, answered\n\n### Does Pi usage also count under Codex or Claude?\n\nPi events stay under Pi / OMP. UsageAtlas's Codex and Claude readers do not scan Pi session roots.\n\n### Does the estimated cost equal my subscription bill?\n\nNo. It estimates the API value of recorded tokens using known model prices. Subscription charges are separate, and unknown prices remain unavailable.", "url": "https://wpnews.pro/news/how-to-track-pi-and-oh-my-pi-token-usage", "canonical_source": "https://usageatlas.com/guides/how-to-track-pi-omp-usage", "published_at": "2026-09-30 00:00:00+00:00", "updated_at": "2026-10-03 09:39:56.468116+00:00", "lang": "en", "topics": ["ai-tools", "ai-agents", "developer-tools"], "entities": ["UsageAtlas", "Pi", "Oh My Pi", "Anthropic", "OpenAI Codex"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/how-to-track-pi-and-oh-my-pi-token-usage", "markdown": "https://wpnews.pro/news/how-to-track-pi-and-oh-my-pi-token-usage.md", "text": "https://wpnews.pro/news/how-to-track-pi-and-oh-my-pi-token-usage.txt", "jsonld": "https://wpnews.pro/news/how-to-track-pi-and-oh-my-pi-token-usage.jsonld"}}