Token Receipt — AI skill for Claude Code
把某一天 AI 编程用量打成一张小票(Claude Code / Codex / WorkBuddy),输出静态 HTML 与 PNG,附 Claude Code skill.
How to install Token Receipt
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open 2562771185/token-receipt and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Token Receipt does
把某一天 AI 编程用量打成一张小票(Claude Code / Codex / WorkBuddy),输出静态 HTML 与 PNG,附 Claude Code skill.
Alternatives in AI
- Codeburn — Free, local tool to track AI coding token usage and cost across 37 tools and agents (Claude Code, Cursor, Code 9.7k ★
- Dashboard Icons — 3,400+ curated icons and logos for dashboards and AI agents 8.9k ★
- Token Monitor — Local-first desktop widget for tracking token usage, costs, and limits across 32+ AI coding tools—including Cl 1.8k ★
README
token-receipt
把某一天的 AI 编程用量打成一张小票:Claude Code、Codex、WorkBuddy 按模型列出 token、缓存读写、按 API 标价折算的金额,以及订阅额度用满的次数。输出是一个自包含的静态 HTML(任何人打开即看),并可截成 PNG。
A receipt for a day of AI coding usage: tokens by model (Claude Code, Codex, WorkBuddy), cache reads and writes, API-list-price estimates, and plan-limit hits. Outputs a self-contained static HTML page and a PNG screenshot. Chinese and English, six scenes.
案例
下面是 `--demo` 生成的一天虚构用量(不读取任何本机日志)。六种场景各一张,版面与真实输出一致:
打印机出纸 · 木桌 · 软木板
手账胶带 · 账单夹板 · 纯净背景
英文版(`--lang en`):
**怎么读这张小票**
- 每个模型一栏:请求数,以及输入、输出、缓存读、缓存写的 token 数和按 API 标价折算的金额。
- 「小计」是该来源的 token 与金额合计;「TOTAL TOKEN」「API equivalent」是全部来源的合计。
- 「5 小时额度用满 × 3」表示当天 Claude Code 撞了 3 次 5 小时限额,后面的时间是各次的重置点。
- 「Weekly limit used 36%」是 Codex 记录的周额度占用,以及下一次重置的时间。
- 标「not priced」的 WorkBuddy 没有公开单价,只列 token。
运行 `python3 receipt.py --demo --lang all --scene all` 可以在自己机器上生成这十二份样例。
特点
- 只读本机:读取
~/.claude/projects、~/.codex/sessions、~/.workbuddy/projects下的会话记录,只取 token 数、模型名、时间和额度信息,不保存提问与回答。 - 不联网出数据:数据全部来自本机日志。只有
--price与--check-prices会访问 OpenRouter 的公开价目表。 - 只用标准库:一个 Python 3 文件,无需安装依赖。
- 六种场景:热敏打印机(纸从出纸口吐出)、木桌、软木板、手账(胶带)、账单夹板、纯净。底纹与动画全部是 CSS,不含图片文件。
- 中英文:
--lang zh|en|all。
安装
需要 Python 3.10+。PNG 需
Related Skills
UsageBar
macOS 菜单栏工具,聚合显示多个 AI 编程/Agent工具(Claude Code / Codex / Cursor / Qoder / 悟空/ Workbuddy 等)的 token 用量,全本地直读零配置
Token Watcher
⏱ Token Watcher — local real-time token usage & quota dashboard for AI coding agents (Claude Code, ccmr, Codex
Warden Receipt
Show token-warden rule receipts — the per-rule verdict card with token savings vs. rent, per-task pass/fail, t
Vibereceipt
Print a store receipt for your AI coding: tokens, what they'd cost at API prices, and how many times the agent
Garl Receipt Action
Cryptographic verification for AI-authored code. ECDSA-signed receipts (secp256k1, RFC 6979 deterministic) for
Svelte Markdown
📝 Markdown and HTML renderer for Svelte 5 — built for streaming AI agent output from Claude Code, ChatGPT, an
Related Agents
Paf Reviewer
Runs one phone-a-friend relay or review command in the background and reports back a receipt plus the findings
Comic Panel Illustrator
給定 panel spec 與角色 ref 圖路徑,呼叫 codex exec 產出 panel PNG(含內嵌對話框文字)。Trigger ONLY by comic-pipeline orchestration(主
Asset Creator
Creates code-based visual assets — SVG icons, OG image HTML, social banners, icon sets. Code-only output (not