Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

tokmon

Latest version: v0.35.0

Overview

Last scanned
10 Nov 2026
Published
10 Nov 2026
npm package Publisher: davidilie
0 Stars
2 Forks
7 Versions
124 Downloads
TypeScript Repo language

Scan summary

tokmon was last scanned on 10 Nov 2026 at version 0.35.0. Risk score 45 of 100 (medium). High-severity rules fired.

  • Releases: 7 versions; the latest 3 were published within 2 days (9 and 10 Nov 2026).
  • Findings: 1 rule fired in version 0.35.0 (1 high). The score describes this version only.
  • Downloads: 124 downloads.

Versions

7 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.35.0 LATEST 10 Nov 2026 1 rule fired
0.34.1 10 Nov 2026 1 rule fired
0.34.0 9 Nov 2026 1 rule fired
0.32.2 25 Aug 2026 Not shown
0.32.1 11 Aug 2026 Not shown

Rules fired in 0.35.0: 1

Findings

1 High

Findings for v0.35.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

Encoded data placed in a DNS lookup

A DNS lookup command (nslookup, dig or host) takes its query name from a subshell that first encodes the data, for example with base64 or xxd. Encoding the name turns a lookup into a way to send data to the nameserver of the queried domain. Ordinary diagnostic lookups have no encoding step.

HIGH
Checking access…

🔒 Create a free account to see all 1 finding with descriptions and instance counts

The score describes 0.35.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

Tokmon collects the usage data your coding tools already keep locally, then shows it in a terminal dashboard, a local web app, and a desktop tray app. The three clients use one local daemon, so their totals, account names, limits, and settings stay in sync.

It currently understands Claude Code, Codex, Cursor, Copilot, opencode, pi, Antigravity, Gemini, and Grok.

Install

Run the terminal dashboard without installing anything:

npx tokmon

Or install the CLI globally:

npm install -g tokmon
tokmon

The first run detects supported tools and lets you choose what to track. Node.js 20 or newer is required; Node.js 24 or newer is recommended.

For the menu-bar/tray app, download the macOS, Windows, or Linux build from GitHub Releases. macOS builds are signed and notarized. Windows builds are currently unsigned.

Three ways to use it

Surface Best for Start it
Terminal A fast overview while coding tokmon
Web dashboard Charts, filtering, all-time history, and exports tokmon serve
Desktop A customisable menu-bar summary and quick account details Install from Releases

Pin up to two providers directly from their desktop cards, then decide exactly what the macOS menu bar shows: provider marks, usage or today's tokens, optional progress lines, and comfortable, compact, or tight spacing. Auto layout adapts to smaller displays; Custom mode exposes half-point edge and gap controls. Clicking the item opens a compact view of every enabled provider and account, including usage, reset times, token totals, spend, cache savings, and recent history. The Desktop App settings can also launch Tokmon silently at login on macOS and Windows, with native approval state shown in the app.

The web dashboard is bundled with the npm package and runs locally. It has overview, analytics, model, and history views with 7d, 30d, 90d, MTD, 6M, and all-time ranges.

Providers

Tokmon has two kinds of integrations. Usage providers expose local token and cost history; quota providers expose current plan limits or spend.

Usage and cost
Provider Local source Data shown
Claude ~/.claude/projects/**/*.jsonl Tokens, cost, cache savings, session/weekly/model limits
Codex ~/.codex/sessions/**/rollout-*.jsonl Tokens, cost, plan, session/weekly limits, credits
Cursor Cursor usage events and local composer data Tokens, cost, plan, spend, on-demand caps
opencode ~/.local/share/opencode/opencode.db Tokens and the costs recorded by opencode
pi ~/.pi/agent/sessions/**/*.jsonl Tokens and the costs recorded by pi
Grok ~/.grok/logs/unified.jsonl and session metadata Tokens, cost, SuperGrok limits, credits
Quota and billing
Provider Data shown
Copilot Plan, premium requests, and chat quota
Antigravity Plan and per-model-pool quota
Gemini Plan and Google Cloud Code quota

Cached input is priced at each model's cache-read rate. It is not counted as full-price input or treated as free. See the provider guide for detection, multiple-account, and API details.

Useful commands

The CLI can query the same daemon without opening the interactive dashboard:

tokmon usage
tokmon usage --period week --provider codex
tokmon usage --model opus --json
tokmon usage --period all --json --compact
tokmon providers --json
tokmon snapshot --refresh
tokmon config get

JSON reports include a schema version, provider and account source IDs, model token/cost fields, and the local source paths behind each row. Start with docs/cli.md for filters and automation examples.

What is included

  • Daily, weekly, monthly, and all-time usage by provider, account, and model
  • Live quota bars with reset countdowns or exact reset dates
  • Burn rate, cache savings, token composition, and recent activity graphs
  • Multiple account homes, automatic discovery, and per-account opt-out
  • Shared privacy mode and themes across terminal, web, and desktop
  • Machine-readable CLI queries for scripts and coding agents
  • A local daemon that prevents every client from polling providers separately

Privacy

Tokmon is local-first and reads provider files without modifying them. SQLite databases are opened read-only. Credentials are used only to ask the provider's own API for your quota or billing data; tokens are never rendered or logged.

The daemon listens on loopback by default. LAN access is optional and clearly marked unsafe in settings. See privacy and security for the exact files, network calls, and trust boundaries.

How It Works

One daemon owns collection, parsing, settings, and the stable RPC contract. The TUI, browser dashboard, desktop renderer, and CLI query commands are clients of that contract. Whichever client starts first owns the daemon; compatible clients attach to it instead of starting another collector.

Local history is cached by file modification time and size, so repeat launches do not parse every session again. Usage history and live billing refresh on separate schedules. Development commands use a tagged daemon channel and cannot collide with an installed release.

The architecture and daemon lifecycle are documented in docs/how-it-works.md.

Documentation

Guide Covers
Getting started Installation, first run, and requirements
Providers Sources, detection, accounts, billing, and limits
Terminal UI Views and keybindings
CLI queries usage, providers, snapshot, and JSON output
Web dashboard Local server, filters, exports, and LAN mode
Desktop app Pins, popover, updates, and daemon attachment
Configuration Settings, themes, discovery, accounts, and files
Privacy and security Local data and network boundaries
How it works Daemon, RPC contracts, caching, and client ownership
Development Repository layout, checks, and development channels
Releasing Tags, signing, artifacts, and package publication

Development

pnpm install
pnpm --prefix web install
pnpm --prefix site install
pnpm run check
pnpm run check:desktop
pnpm run check:site
pnpm run build

This repository is a pnpm workspace for the published CLI and Electron app. The web dashboard and marketing site have isolated lockfiles because they ship through different paths and should not enter the npm or Electron dependency graphs. The layout is intentional; it is not a conventional apps/* monorepo.

Read the development guide before changing daemon ownership, shared contracts, packaging paths, or release workflows.

Acknowledgements

The desktop interaction was researched against OpenUsage, CodexBar, and ccusage. Provider vector marks and compact reset formatting adapted from OpenUsage are used under its MIT license. See THIRD_PARTY_NOTICES.md for details.

Tokmon is built with Ink, React, Effect, Astro, and Electron.

License

MIT © David Ilie

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm tokmon

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Frame 2085668439 (1)
Group 1261154229