All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

toktrack: Open-Source CLI Tool for Tracking AI Coding Costs Across Multiple Models

By

New User

3mo ago· 1 min readenProduct

Summary

toktrack is a free, open-source command-line tool that tracks AI coding CLI spending across multiple models including Claude Code, Codex CLI, Gemini CLI, and OpenCode. It scans session files to show spending per model and per day, with fast performance (scans 3,500+ files in ~40ms) and independent cost history caching that preserves data even when AI services delete sessions.

Key quotes

· 4 pulled
toktrack scans your AI coding CLI session files and shows exactly how much you're spending — per model, per day
Built in Rust with SIMD JSON parsing — scans 3,500+ session files in ~40ms
It also caches your cost history independently, so even after Claude Code deletes sessions (default 30 days), your data is preserved
Free and open source (MIT)
Snippet from the RSS feed
toktrack scans your AI coding CLI session files and shows exactly how much you're spending — per model, per day. Works with Claude Code, Codex CLI (including gpt-5.3-codex), Gemini CLI, and OpenCode. One command: npx toktrack. Built in Rust with SIMD JSON

You might also wanna read