albkhachikyan

Tokscope — Data skill for Claude Code

Data community

Local, open-source dashboard for Claude Code token usage and cost: today by hour, 7/30/90-day trends, per-model breakdown (Opus, Sonnet, Haiku).

How to install Tokscope

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

What Tokscope does

Local, open-source dashboard for Claude Code token usage and cost: today by hour, 7/30/90-day trends, per-model breakdown (Opus, Sonnet, Haiku). Self-hosted, read-only, no data leaves your machine.

Alternatives in Data

README

tokscope

tokscope: Claude Code usage and cost dashboard

tokscope is a free, open-source, self-hosted dashboard that reads your local Claude Code transcripts and shows how many tokens you used today, per hour, per day and per model (Opus, Sonnet, Haiku), with an estimated API cost.

It runs on 127.0.0.1, mounts your transcripts read-only, makes no LLM calls, and no data leaves your machine.

[![CI](https://github.com/albkhachikyan/tokscope/actions/workflows/ci.yml/badge.svg)](https://github.com/albkhachikyan/tokscope/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE) ![Python 3.12](https://img.shields.io/badge/python-3.12-blue.svg) ![Next.js 16](https://img.shields.io/badge/next.js-16-black.svg)

tokscope dashboard, Today section: Claude Code token usage per hour, model by hour heatmap, busiest hour and estimated LLM cost

Why

Claude Code does not show how many tokens you spend per day or per hour. If you are on a subscription (Pro, Max, Team), you are not billed per token, but you may still want to know what the same usage would cost at Anthropic API pricing. tokscope is a local-first token tracker that answers both questions from files already on your disk.

Features

  • Today section, always on top: today's estimated cost and total tokens, the busiest hour, tokens per hour (UTC), and a model by hour heatmap. It is the first thing you see when you open the dashboard.
  • Trends section below it: a 7, 30 or 90 day range (30 by default) with cost, total tokens, daily average, tokens per day and a model by week heatmap.
  • Per-mod