SuperAPIAI Directory

TokLens

github.com · AI coding

TokLens is a local-first desktop analytics application for analyzing usage metadata from AI coding clients such as Codex and Claude Code. It collects client data in a read-only manner, uses no telemetry or network access by default, stores data in a local SQLite database, can track token usage, models, sessions and trends, and supports exporting CSV, JSON and Markdown statistics reports.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

TokLens is a local-first desktop application for analyzing usage metadata from AI coding clients. Its data is stored in a local SQLite database; it reads client data in a read-only manner without modifying it, and uses no telemetry or network access by default.

Purpose and main capabilities: provides an overview, trends, model rankings, session metadata and data source status; offers read-only collectors for Codex, Claude Code, OpenCode, DSH, Kimi Code, MiMoCode, Pi Desktop, WorkBuddy, GitHub Copilot, Gemini CLI, Grok CLI and MCode; clearly distinguishes measured, derived, estimated, unknown and partial data; supports local data clearing, configurable data source collection, and migration of statistics and settings storage to another drive; supports user-triggered export of CSV, JSON and Markdown statistics reports, filterable by date and client and including a metrics version, without exporting session text; model icons are bundled locally and matched by model family, with unknown models retaining their original names and using a neutral fallback icon.

Usage: the storage directory can be changed in Settings → Data & Privacy; existing statistics and preferences are migrated along with it, resetting preferences preserves the selected directory, and a small location file is kept in the system application directory; window state and OS/WebView caches are still managed by the desktop runtime. The development environment requires Node.js 20.19+ or 22.12+, pnpm 10+, Rust stable with edition 2024 support, and the Tauri 2 platform prerequisites; pnpm dev runs only the web frontend and does not provide Tauri commands. See AGENTS.md for the repository layout and development rules, and docs/README.md for the documentation index; stable tags use the form vX.Y.Z, and pushing a matching tag triggers a signed release workflow for Windows x64, macOS Intel and Apple Silicon; see docs/releases.md for the release process.

Use cases and limitations: suitable for users who want to view AI coding client token usage, model distribution, sessions and trends on their own machine. The current material does not provide details on pricing, cost, or platform support beyond the specifics listed, and none are currently available.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools