Windows

Codex usage tracker for Windows

Track Codex five-hour and weekly limits, credits, and token history on Windows 10 and 11 in a free tray app, with Claude Code and Cursor beside it.

Quick answer

Codex stores sessions in `%USERPROFILE%\.codex\sessions`, or under `%CODEX_HOME%\sessions` if you set that variable. UsageAtlas runs on Windows 10 and 11, reads the folder locally, and shows both usage windows from the system tray. If you run Codex in WSL, its sessions live in the Linux home directory, not the Windows one.

Find the Windows session folder

echo %USERPROFILE%
 dir "%USERPROFILE%\.codex\sessions"
echo %CODEX_HOME%
SetupSession path
Native Windows`%USERPROFILE%\.codex\sessions`
Custom home`%CODEX_HOME%\sessions`
WSL`\\wsl$\<distro>\home\<user>\.codex\sessions`
ContainerInside the container filesystem

Set up tracking

  1. Download the Windows installer from UsageAtlas.
  2. Launch it and let detection find Codex.
  3. If you use WSL, add the Linux path manually.
  4. Pin the app to the tray so the windows stay visible.
  5. Set an alert at the remaining percentage you care about.

The app does not need administrator rights for a home-directory folder. If it asks, you pointed it at a protected path.

The WSL split

Running Codex inside WSL is common on Windows, and it is the main reason people see no usage. The CLI is writing to /home/<user>/.codex, which is a different filesystem from C:\Users\<you>\.codex.

  • Add the WSL path as a second source.
  • Or set CODEX_HOME to a Windows path mounted into WSL.
  • Avoid copying session files back and forth; duplicates inflate totals.

Where Codex keeps data on Windows

On Windows the session files sit under your user profile, in a hidden application data folder. PowerShell can list them without changing Explorer settings, which is useful when a tracker cannot detect the install.

  1. Open PowerShell and list the Codex folder under your profile.
  2. Confirm JSONL session files are present and recent.
  3. Check that your user account can read them.
  4. If you use WSL, remember the files are in the Linux home, not C:\Users.
Get-ChildItem $HOME\.codex\sessions -Recurse | Select-Object -First 5

The WSL case is the usual reason a tracker shows nothing. UsageAtlas runs natively on Windows; the Linux guide covers the WSL path.

Questions, answered

Where does Codex store usage on Windows?

In %USERPROFILE%\.codex\sessions by default, or %CODEX_HOME%\sessions when that variable is set.

Does UsageAtlas support Windows 11?

Yes, and Windows 10. The app runs in the system tray and starts with Windows if you enable it.

Why does Codex usage show zero under WSL?

WSL has a separate home directory. Point the tracker at the Linux path or share CODEX_HOME between the two environments.

Browse by topic