Drachometer banner
JamesDBartlett3 JamesDBartlett3

Drachometer

Data community

Description

A Claude Code hook that logs every turn and tool call to a local SQLite database, with a browser dashboard for exploring token usage, costs, and cache efficiency. Features model-aware pricing, multi-sort tables, date filtering, live SSE refresh, and rich charts. No API keys or external services.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Drachometer

Drachometer logo

Drachometer: "drachma" (ancient Greek currency) + "meter" = a token usage meter for Claude Code.

A Claude Code hook that logs every turn and tool call to a local SQLite database, with a browser dashboard for exploring token usage, costs, and cache efficiency. Features model-aware pricing, multi-sort tables, date filtering, live SSE refresh, and rich charts. No API keys or external services.

![Dashboard](https://img.shields.io/badge/dashboard-localhost:9873-c87533)

Dashboard screenshot

One-Line Install (Windows PowerShell)

irm https://raw.githubusercontent.com/JamesDBartlett3/drachometer/main/drachometer-install.ps1 | iex

One-Line Install (Mac, Linux, and WSL2)

curl -fsSL https://raw.githubusercontent.com/JamesDBartlett3/drachometer/main/drachometer-install.sh | bash

These bootstrap scripts resolve the latest published release via the GitHub Releases API, download the single packaged zip artifact to a temporary directory, extract it, and then run the existing installer. The installer finds your Python interpreter, copies hook scripts to `~/.claude/hooks/drachometer/`, registers them in `~/.claude/settings.json`, creates the database, and runs a smoke test.

Customizing the Install

The bootstrap scripts accept environment variables so you can point them at a fork, a private mirror, or a locally built zip:

Variable Default Purpose
DRACHOMETER_REPO JamesDBartlett3/drachometer GitHub owner/repo used to resolve releases