UNPKG

@light-merlin-dark/tok

Version:

Fast token estimation and cost calculation for enterprise LLMs with CLI and MCP support

21 lines (16 loc) 685 B
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [0.1.0] - 2025-06-16 ### Added - Initial release - Fast character-based token estimation (chars/4) - Optional exact token counting with tiktoken - Cost calculation with per-model pricing - CLI interface for token estimation and cost tracking - MCP server for AI agent integration - Support for major LLM models (GPT-4, Claude, Llama, etc.) - Real-time cost aggregation and tracking - Comprehensive documentation