Skip to content

agent-usage-radar: Track Local AI Agent Token Spend Without Cloud Upload

AINewss Editorial

agent-usage-radar is a zero-dependency Node.js CLI that reads local agent session logs across macOS, Windows, Linux and WSL. This guide documents its scan, UI, JSON, HTML and MCP commands, its date-stamped price catalogue, the licensing boundary, and the self-reported 14.68-billion-token audit claim.

View 2 references
0 views 0 likes

Allow the functional cookie to save your likes. Privacy details

A terminal window showing a token usage chart with separate cache and cost columns, representing local agent spend tracking.

What is agent-usage-radar?

agent-usage-radar is a local-first CLI that reads token and credit usage from AI coding tools installed on your machine. It uses Node.js 24 built-in node:sqlite, so the core scan needs no npm dependencies and uploads nothing. Results can be printed, exported or served on a local loopback dashboard.

The project is published by Kestrel DevTools. Its MIT-licensed core is free, while history, export, dashboard and MCP features require a trial or signed licence. The split matters: scan and price sync stay available after a trial expires, but the richer views do not.

Which platforms and agents does agent-usage-radar read?

The tool reads usage sources on the host machine and inside accessible WSL distributions on Windows. It covers macOS, Windows, Linux and WSL, with separate accounting for tools that report credits rather than tokens. Dreamina credits and WorkBuddy activity are kept apart from token spend.

Platform support documented in the repository:

Platform Notes
macOS Double-click launcher or terminal commands
Linux Host scan, no WSL layer
Windows Host plus WSL distributions
WSL2 Read-only SQLite queries via distribution Python 3

Inside WSL, the tool uses the distribution's Python 3 standard library for read-only SQLite queries. If that runtime is missing, it raises a source warning rather than guessing values.

How do you install and scan with agent-usage-radar?

Run npx agent-usage-radar scan for a local summary, or use the node bin/agent-radar.mjs entry point from a checkout. The UI binds to the loopback address, and offline HTML can be opened directly from disk. JSON export is available for local analysis, and WSL scanning can be disabled with scan --no-wsl when you only want the host machine.

npx agent-usage-radar scan
npx agent-usage-radar status
npx agent-usage-radar json --out radar-report.json
npx agent-usage-radar html --out radar-report.html
npx agent-usage-radar ui --no-open
npx agent-usage-radar mcp
npx agent-usage-radar sync-prices

Use scan --no-wsl to restrict the run to the host. WSL scanning reads the default account of each accessible distribution. On macOS, the Agent-Radar.command launcher checks the Node version and falls back to a community scan when no valid licence is present.

How does agent-usage-radar calculate token and cost figures?

Total tokens combine uncached input, cached reads, cached writes, output and unsplit tokens from sources that only report a total. Reasoning tokens are listed separately. Cache hit rate is computed from cached reads as a share of split input, which avoids mixing different vendors' accounting.

Costs are shown in three columns: values logged by the source, estimates from the price catalogue, and unpriced usage. The catalogue uses date-stamped public reference rates and leaves unverified SKUs unpriced instead of guessing. Promotional rates switch on their exact UTC effective dates.

Three details make the accounting more defensible than a simple maximum:

  • Cache buckets. Codex reports cached tokens inside input tokens, while Anthropic and others report them separately. Adding both blindly double-counts cache reads.
  • Log rotation. An identity-keyed SQLite ledger retains usage from rotated-away JSONL sessions.
  • Pricing gaps. Usage with no valid price, split or currency unit stays explicitly unpriced.

What is the 14.68-billion-token audit claim?

In a developer post, the publisher reports scanning 14.68 billion tokens across 29 detected tool entries on one workstation, with a 91.7 percent prompt-cache hit rate and roughly $6,592 of verified priced subtotal. These are self-reported results from the author's own machine, not an independent benchmark.

The same post reports over 95,700 logged Dreamina credits across 1,550 tasks, kept separate from token spend. Treat all of these figures as an illustration of what the tool can surface. There is no audited comparison against provider invoices, and the post itself is a product announcement.

What is free and what needs a licence?

scan and sync-prices work in community mode. Historical totals, exports, the dashboard and MCP require an active trial or a valid signed licence. Version 1.0.1 embeds the publisher's Ed25519 public key and supports online receipts and offline signed licence activation.

The price catalogue is fetched from https://kestreldevtools.site/api/model-prices.json with schema 2 validation; a failed sync falls back to the local catalogue. Reports deliberately keep only usage numbers, public model identifiers and fixed hints, leaving raw session content, paths and account identifiers in local sources.

What are the limits of agent-usage-radar?

It is a measurement tool, not a billing system. Cost figures depend on a public price catalogue and on whether a source exposes a valid token split, so gaps are normal. It also does not make an agent more reliable; it only tells you where activity and spend accumulate.

Is agent-usage-radar the same as Agent Radar?

No. Agent Radar is a separate Mac menu-bar app with a free tier and a one-time Pro purchase. agent-usage-radar is the Node.js CLI described here. The two share a monitoring goal but have different maintainers and different feature boundaries.

Does it send my session data anywhere?

The project states zero telemetry and no cloud upload for scans. Price catalogue sync is an outbound fetch of public rates, not an upload of sessions. The publisher's licensing checks use signed local state.

Bottom line

agent-usage-radar is useful when you run several agents across machines and want one honest view of token and cost accumulation, especially where WSL is involved. Verify its numbers against provider invoices before using them for budgeting decisions, and read the licence terms before relying on history or MCP features.

References

  1. augustfu-droid/agent-usage-radar READMEgithub.com
  2. I Audited 14.68 Billion Local AI Agent Tokens (DEV Community)dev.to