Peter Steinberger 6/15/2025

Vibe Meter 2.0: Calculating Claude Code Usage with Token Counting

Read Original

The article details the development of Vibe Meter 2.0, a tool created to monitor usage of the Claude Code subscription. Since no official API exists, the author built a solution that parses large JSON-L log files and implements a custom, high-performance token counter using SIMD-accelerated Byte Pair Encoding (BPE). The project, written in Swift with high test coverage, explores technical challenges like file parsing, performance optimization with SIMD operations, and approximating costs and usage limits for the AI coding assistant.

Vibe Meter 2.0: Calculating Claude Code Usage with Token Counting

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser