Skip

Built by Mubashir Jamali · open source · MIT

tikr

Local AI coding token tracker

One local ledger for Claude Code, Codex, Copilot CLI, and Grok. Session files where they exist; a loopback OTEL feed where they don’t. Nothing leaves the machine.

Tracks

  • Claude CodeClaude Code
  • CodexCodex
  • Copilot CLICopilot CLI
  • GrokGrok
tikr live dashboard with Copilot CLI, Codex, and Claude Code

Features

01

Four tools. One dashboard.

Copilot CLI, Codex, Claude Code, and Grok in the same TUI. Share, tokens, messages, estimated cost. Local only.

tikr live dashboard with Copilot CLI, Codex, and Claude Code
tikr dashboard

02

Totals by tool

The same table for every provider. Session-file tools and the Grok OTEL feed fold into one view: input, output, cache, messages, estimated cost.

tikr stats by provider for Copilot, Codex, and Grok
tikr stats --by provider

03

Only tools we can prove

Claude Code, Codex, Copilot CLI, and Grok. Cursor, OpenCode, and Gemini CLI stay untrackable rather than guessed.

tikr providers listing Claude Code, Codex, Copilot CLI, and Grok
tikr providers

04

Optional live feed

Claude Code can push cost metrics; Grok can push api_request logs. Same --otlp receiver on loopback. Session files stay the system of record where they exist.

tikr telemetry help for Claude Code and Grok OTEL env vars
tikr telemetry

05

Local ledger. Nothing sent.

Encrypted, append-only state under ~/.tikr. The OTLP listener binds loopback only.

tikr status showing local state dir
tikr status

Install

tikr

curl -fsSL https://raw.githubusercontent.com/mubashirjamali101/tikr/main/install.sh | bash

Stack

TypeScriptTypeScriptNodeNode