TOKEN-TRACKER REV. v0.2.0

Single-binary, aggregate-only token usage telemetry for local AI coding agents. Runs on hardware you control. Exposed only on your tailnet.

01

what the server stores

usage_hourly — one row per (device, project, agent, model, quality, hour)
fieldtypestored
devicename, chosen at pairingyes
projectnameyes
agentenum: codex, claude, pi, factory, cursoryes
modelnameyes
qualityenum: exact, estimated-time, lower-boundyes
hourUTC hour bucketyes
input_tokenscounteryes
output_tokenscounteryes
reasoning_tokenscounteryes
cache_read_tokenscounteryes
cache_write_tokenscounteryes
session_startscounteryes
never stored, at any layer
  • prompts
  • transcript content
  • file paths
  • session or event identifiers

Raw events stay on the device, in the collector's local ledger. The server never receives them.

02

install

curl -fsSL https://tokens.col-agents.com/install.sh | sh
03

host / node

host

Runs the server on one machine. Binds 127.0.0.1. Exposed via Tailscale Serve — no Funnel, no public port. --lan binds the local network directly instead, no tailnet required.

node

Pairs to a host with a browser-approved code. Collects and reports on a 5-minute interval.

04

adapters

agentquality
codexexact
claude codeexact
piexact
factory / droidestimated-time
cursorlower-bound
05

agent prompt

Setup instructions for an agent running on the target machine: /prompt

curl -fsSL https://tokens.col-agents.com/prompt
06

platforms