PRIVATE BY CONSTRUCTION

Your AI usage,
kept in your ledger.

A local-first macOS app that turns Codex and Claude Code usage logs into clear token, model, cache, session, and API list-price trends.

macOS 14+ · Apple Silicon & Intel · MIT licensed

Agent Ledger
THIS MONTH12.8Mtotal tokens
API EQUIVALENT$18.42list-price estimate
9.7MInput
2.4MCache read
3.1MOutput
84Sessions

Illustrative data

Zeronetwork uploads
Field allowlistno prompt or code storage
HMAC-SHA256private local identifiers
SQLiteincremental local index

ONE QUIET PLACE

Useful numbers.
None of the surveillance.

01

Token clarity

Separate uncached input, cache reads, cache writes, output, and reasoning without double counting.

02

Model & cost trends

Compare models over day, week, month, or all time with clearly labeled API list-price estimates.

03

Native macOS experience

A warm SwiftUI dashboard, menu bar glance view, launch-at-login option, and universal binary.

04

Resilient indexing

Resume from byte offsets, preserve partial lines, and rebuild only the log that was replaced or truncated.

05

Honest source status

Tools without a verifiable local token schema show “unsupported” instead of a misleading zero.

06

Extensible inbox

Import a small documented JSONL usage schema for other local agents without granting app access.

PRIVACY BOUNDARY

It counts usage.
It does not watch you.

Agent Ledger reads

  • Event timestamps
  • Agent and raw model names
  • Structured token counters
  • Hashed file and session identity

Agent Ledger skips

  • Prompts and responses
  • Code and tool payloads
  • Project paths and Git metadata
  • Credentials and settings files

LOCAL PIPELINE

Read-only logs in.
Small aggregates out.

1DiscoverSupported local JSONL logs
2AllowlistOnly model, time, usage
3NormalizeDelta and stream dedupe
4ProtectMachine-local HMAC IDs
5SummarizePrivate SQLite + SwiftUI
Agent Ledger app icon

OPEN SOURCE

Own the numbers.
Keep the context private.

Download Agent Ledger