Products / Windows app
JTokensBeta
See how many tokens Claude Code and Codex used, and what that would cost at API list prices. JTokens reads the logs already on your PC and sends nothing anywhere. Free, open source (MIT), and out now in beta, with the code on GitHub.
Suggested Install with one command
Open PowerShell (press Start, type PowerShell, press Enter), paste this and press Enter:
irm https://raw.githubusercontent.com/Josephivgi/JAgents/main/install.ps1 | iexIt asks yes or no for each JSystems app (Simple Recorder, JAgents, JPerformance, JServer, JMCP, JVoice, App Launcher, JTokens), then installs the ones you pick straight from GitHub, adds them to the Start Menu, pins them to the taskbar and opens them. No admin rights needed. In Command Prompt, use powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/Josephivgi/JAgents/main/install.ps1 | iex" instead.
What beta means
JTokens is released and ready to use. It is still new, so some parts will change and you may hit bugs.
Updates come from GitHub Releases. JTokens checks when it opens and every 30 minutes, and a bar at the top offers Install and restart. Check for updates is at the bottom of the page.
Found a bug? Report it on Discord.
Features
What JTokens does
A fast scanner reads gigabytes of logs in a few seconds, then only rereads the files that changed.
See your use
- TotalsCost, tokens and requests for Today, 7, 30 or 90 days, or All time. Switch between API cost and tokens.
- ChartsDaily cost by model, a By hour of day chart, and a Token mix bar that shows input, output, cache reads and cache writes.
- Sessions and projectsEvery session with its title, and every working folder. Click a column to sort.
Narrow it down
- Click to filterClick a day, a model or a session and everything on the page shows only that. Click again to clear.
- Claude Code or CodexShow both apps, or one at a time.
- LiveTick Live and the numbers refresh on their own while your agents work.
Numbers you can trust
- Counted onceForked Codex sessions and repeated Claude log lines are not added up twice.
- Prices shownThe API prices tab lists every price used, with links to where it came from and the date it was checked.
- PrivateOnly reads files on your PC. Nothing is sent anywhere.
How to install
Install JTokens
JTokens is a single app file. There is no setup to run and no admin rights needed.
Suggested Install with one command
Open PowerShell (press Start, type PowerShell, press Enter), paste this and press Enter:
irm https://raw.githubusercontent.com/Josephivgi/JAgents/main/install.ps1 | iexIt asks yes or no for each JSystems app (Simple Recorder, JAgents, JPerformance, JServer, JMCP, JVoice, App Launcher, JTokens), then installs the ones you pick straight from GitHub, adds them to the Start Menu, pins them to the taskbar and opens them. No admin rights needed. In Command Prompt, use powershell -NoProfile -ExecutionPolicy Bypass -Command "irm https://raw.githubusercontent.com/Josephivgi/JAgents/main/install.ps1 | iex" instead.
Or install it by hand
1. Download the app
Click Download for Windows. Your browser saves JTokens.exe to your Downloads folder.
2. Put it in a folder
Move JTokens.exe to a folder of your own, for example Documents\JTokens. It keeps its settings in %LOCALAPPDATA%\JTokens, so any folder works.
3. Open it
Double-click JTokens.exe. Windows may show Windows protected your PC, because the app is not signed by a known publisher. Click More info, then Run anyway. JTokens reads your logs and shows your totals in a few seconds.
Get JTokens
Download the app
Get the newest version from this site, then follow the install steps above.
From this website
Downloads the newest JTokens.exe straight from this site.
Checking the latest release...
From GitHub Releases
Always the newest build. Older versions and release notes are on the Releases page.
Published as a GitHub Release on every update.
From source
Clone the repo and build it with Rust (MSVC toolchain and Visual Studio Build Tools).
git clone https://github.com/Josephivgi/jtokens.git
cd jtokens
cargo build --release
Your files
Where everything goes
| What | Folder |
|---|---|
| The app | %LOCALAPPDATA%\Programs\JTokens (installer), or wherever you put JTokens.exe |
| Settings | %LOCALAPPDATA%\JTokens |
| Logs it reads | %USERPROFILE%\.claude\projects and %USERPROFILE%\.codex |
Uninstall
Close JTokens and delete JTokens.exe. Delete %LOCALAPPDATA%\JTokens too to remove its settings. Your Claude Code and Codex logs are never changed.
System requirements
Windows 10 or Windows 11, 64 bit, with the Microsoft Edge WebView2 Runtime. Windows 11 already has it. If it is missing, JTokens says where to get it.
Command line
JTokens.exe --export out.html saves the dashboard as one HTML file with your numbers in it. --json data.json writes the raw data, and --version prints the version.
FAQ
Common questions
How much would my Claude Code use cost on the API?
Open JTokens. It reads the Claude Code logs in your user folder and prices every request at Anthropic's API list prices, including cache reads and writes and fast mode. The total for today, 7, 30 or 90 days or all time is at the top.
Am I billed the cost JTokens shows?
No. It is what the same tokens would cost on the pay-as-you-go API. If you use a Claude or ChatGPT subscription, you are not billed that amount.
Does JTokens send my data anywhere?
No. It only reads files on your PC. The only time it goes online is to ask GitHub whether a new version is out, and it sends none of your data. Settings stay in %LOCALAPPDATA%\JTokens.
Which agents does it read?
Claude Code (~/.claude/projects) and Codex (~/.codex/sessions and ~/.codex/archived_sessions). If you set CLAUDE_CONFIG_DIR or CODEX_HOME, it reads those folders instead.
Why are my Codex numbers lower than other tools show?
A forked Codex session copies the token events of the session it came from. JTokens counts each event once, so the same tokens are not added up several times. Repeated Claude log lines for one request are also counted once.
Is JTokens open source?
Yes. JTokens is free and open source under the MIT license. The code is at github.com/Josephivgi/jtokens, and you can build it yourself with Rust.
How do I update it?
It updates itself. JTokens checks GitHub Releases when it opens and every 30 minutes. When a new version is out, a bar at the top offers Install and restart; it checks the download against the release checksum before it restarts. Check for updates is at the bottom of the page. The first release cannot update itself, so install the newest version once with the command above.